/* Reset y variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #ff7a59;
    --primary-dark: #e5683f;
    --secondary: #2d3e50;
    --secondary-light: #516f90;
    --accent: #00bda5;
    --text: #33475b;
    --text-light: #516f90;
    --bg: #ffffff;
    --bg-light: #f5f8fa;
    --bg-dark: #2d3e50;
    --border: #dfe3eb;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --radius: 8px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Tipografía */
h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--secondary);
    border: 2px solid var(--secondary);
}

.btn-secondary:hover {
    background: var(--secondary);
    color: white;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.125rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: var(--shadow);
    z-index: 1000;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
}

.badge {
    background: var(--primary);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Hero */
.hero {
    padding: 160px 0 100px;
    background: linear-gradient(135deg, var(--bg-light) 0%, white 100%);
}

.hero-content {
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

.hero-cta {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.hero-trust {
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

.hero-trust p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.certifications {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.certifications span {
    color: var(--accent);
    font-weight: 500;
}

/* Secciones */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.125rem;
}

/* Servicios */
.services {
    background: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.service-card ul {
    list-style: none;
    margin-top: 15px;
}

.service-card li {
    padding: 5px 0;
    padding-left: 20px;
    position: relative;
    color: var(--text-light);
    font-size: 0.9rem;
}

.service-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* Por qué nosotros */
.why-us {
    background: white;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.why-card {
    text-align: center;
    padding: 30px;
}

.why-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.why-card p {
    color: var(--text-light);
}

/* Hubs */
.hubs {
    background: var(--bg-light);
}

.hubs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.hub-card {
    background: white;
    padding: 25px;
    border-radius: var(--radius);
    border-top: 4px solid var(--primary);
    box-shadow: var(--shadow);
}

.hub-marketing { border-top-color: #ff7a59; }
.hub-sales { border-top-color: #00bda5; }
.hub-service { border-top-color: #516f90; }
.hub-cms { border-top-color: #f5c26b; }
.hub-operations { border-top-color: #7c98b6; }

.hub-card ul {
    list-style: none;
    margin-top: 15px;
}

.hub-card li {
    padding: 4px 0;
    color: var(--text-light);
    font-size: 0.85rem;
}

.hub-card li::before {
    content: "•";
    margin-right: 8px;
    color: var(--accent);
}

/* FAQ */
.faq {
    background: white;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
}

.faq-item summary {
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::after {
    content: "+";
    font-size: 1.5rem;
    color: var(--primary);
}

.faq-item[open] summary::after {
    content: "-";
}

.faq-item p {
    margin-top: 15px;
    color: var(--text-light);
}

/* CTA Section */
.cta-section {
    background: var(--secondary);
    color: white;
    text-align: center;
    padding: 80px 20px;
}

.cta-section h2 {
    color: white;
}

.cta-section p {
    color: rgba(255,255,255,0.8);
    max-width: 600px;
    margin: 0 auto 30px;
}

/* Contacto */
.contact {
    background: var(--bg-light);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    align-items: start;
}

.contact-info h3 {
    color: var(--secondary);
}

.contact-info ul {
    list-style: none;
    margin: 20px 0;
}

.contact-info li {
    padding: 8px 0;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo-text {
    color: white;
    font-size: 1.75rem;
}

.footer-brand p {
    color: rgba(255,255,255,0.7);
    margin-top: 15px;
}

.footer-links h4 {
    color: white;
    margin-bottom: 15px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    padding: 5px 0;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

.legal-links {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.legal-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s;
}

.legal-links a:hover {
    color: white;
}

/* Páginas legales */
.legal-content {
    padding: 140px 0 80px;
    min-height: 100vh;
}

.legal-content h1 {
    color: var(--secondary);
    margin-bottom: 10px;
}

.legal-updated {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 40px;
}

.legal-section {
    margin-bottom: 40px;
}

.legal-section h2 {
    color: var(--secondary);
    font-size: 1.5rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
}

.legal-section h3 {
    color: var(--secondary);
    font-size: 1.1rem;
    margin: 20px 0 10px;
}

.legal-section p {
    color: var(--text);
    line-height: 1.8;
}

.legal-section ul {
    margin: 15px 0;
    padding-left: 25px;
}

.legal-section li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.legal-section a {
    color: var(--primary);
    text-decoration: none;
}

.legal-section a:hover {
    text-decoration: underline;
}

/* Tabla de cookies */
.cookie-table {
    overflow-x: auto;
    margin: 20px 0;
}

.cookie-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.cookie-table th,
.cookie-table td {
    padding: 12px 15px;
    text-align: left;
    border: 1px solid var(--border);
}

.cookie-table th {
    background: var(--bg-light);
    font-weight: 600;
    color: var(--secondary);
}

.cookie-table tr:nth-child(even) {
    background: var(--bg-light);
}

/* Páginas de ciudad */
.city-hero {
    background: linear-gradient(135deg, var(--bg-light) 0%, white 100%);
    padding: 140px 0 80px;
}

.city-content {
    padding: 60px 0;
}

.city-content h2 {
    color: var(--secondary);
    margin-top: 40px;
    margin-bottom: 20px;
}

.city-content h2:first-child {
    margin-top: 0;
}

.city-content p {
    color: var(--text);
    line-height: 1.8;
    margin-bottom: 20px;
}

.city-content ul {
    margin: 20px 0;
    padding-left: 25px;
}

.city-content li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.benefits-list {
    list-style: none;
    padding-left: 0;
}

.benefits-list li {
    padding: 15px 20px;
    background: var(--bg-light);
    margin-bottom: 10px;
    border-radius: var(--radius);
    border-left: 4px solid var(--primary);
}

.cta-box {
    background: var(--bg-light);
    padding: 40px;
    border-radius: var(--radius);
    text-align: center;
    margin-top: 50px;
}

.cta-box h3 {
    color: var(--secondary);
    margin-bottom: 15px;
}

.cta-box p {
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.25rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .nav-links {
        display: none;
    }

    .hero {
        padding: 120px 0 60px;
    }

    .hero-cta {
        flex-direction: column;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}
