* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #202020;
    --primary-light: #555555;
    --green: #2582d1;
    --green-dark: #1f6cad;
    --dark: #202020;
    --white: #ffffff;
    --gray: #666;
    --light-bg: #f8f9fc;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--dark);
    background: var(--white);
    line-height: 1.7;
    font-size: 18px;
}

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

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--white);
    padding: 16px 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: all 0.3s;
}

header.scrolled {
    padding: 10px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

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

header nav a:hover {
    opacity: 0.8;
}

.logo {
    height: 48px;
}

.mobile-menu-toggle {
    display: none;
}

.mobile-menu {
    display: none;
}

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    font-family: inherit;
}

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

.btn-primary:hover {
    background: var(--green-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(37, 130, 209, 0.4);
}

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

.btn-white:hover {
    background: var(--light-bg);
    transform: translateY(-2px);
}

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

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

.btn-lg {
    padding: 20px 40px;
    font-size: 18px;
}

/* Hero */
.hero {
    min-height: 100vh;
    background: var(--primary);
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(circle, rgba(37, 130, 209, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-tag {
    display: inline-block;
    background: rgba(37, 130, 209, 0.15);
    color: var(--green);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 24px;
    color: var(--white);
}

.hero h1 span {
    color: var(--green);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.75);
    margin-bottom: 40px;
    max-width: 540px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 48px;
}

.hero-stat {
    color: var(--white);
}

.hero-stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--green);
    line-height: 1;
}

.hero-stat-label {
    font-size: 14px;
    opacity: 0.7;
    margin-top: 4px;
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
}

.hero-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: var(--white);
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-badge i {
    font-size: 24px;
    color: var(--green);
}

.hero-badge-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
}

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

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

.section-green {
    background: var(--green);
    color: var(--white);
}

.section-light {
    background: var(--light-bg);
}

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

.section-tag {
    display: inline-block;
    background: rgba(37, 130, 209, 0.15);
    color: var(--green);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-dark .section-tag {
    background: rgba(37, 130, 209, 0.2);
}

h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

.section-dark .section-subtitle {
    color: rgba(255,255,255,0.7);
}

/* Problema */
.pain-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.pain-card {
    background: var(--white);
    padding: 40px 32px;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.06);
    transition: all 0.3s;
}

.pain-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.pain-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: rgba(239, 68, 68, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.pain-icon i {
    font-size: 24px;
    color: #ef4444;
}

.pain-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.pain-card p {
    color: var(--gray);
    font-size: 1rem;
    line-height: 1.7;
}

/* Pilares */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 64px;
}

.pillar {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 32px 24px;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s;
}

.pillar:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-4px);
}

.pillar-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--green);
    color: var(--white);
    font-weight: 700;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.pillar h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.pillar p {
    font-size: 0.95rem;
    opacity: 0.8;
    line-height: 1.6;
}

/* Diferenciadores */
.diff-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.diff-content h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.diff-content p {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 24px;
    line-height: 1.8;
}

.diff-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.diff-feature {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.diff-feature i {
    color: var(--green);
    font-size: 20px;
    margin-top: 4px;
    flex-shrink: 0;
}

.diff-feature span {
    font-size: 1rem;
}

.diff-image {
    position: relative;
}

.diff-image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.12);
}

.diff-image-badge {
    position: absolute;
    top: -16px;
    right: -16px;
    background: var(--green);
    color: var(--white);
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 10px 20px rgba(37, 130, 209, 0.3);
}

/* Equipo */
.team-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.team-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.team-images img {
    width: 100%;
    border-radius: 16px;
    object-fit: cover;
}

.team-images img:first-child {
    aspect-ratio: 3/4;
}

.team-images img:last-child {
    aspect-ratio: 3/4;
    margin-top: 40px;
}

.team-content h2 {
    margin-bottom: 24px;
}

.team-quote {
    font-size: 1.4rem;
    font-style: italic;
    color: var(--green);
    margin-bottom: 32px;
    line-height: 1.6;
    padding-left: 24px;
    border-left: 4px solid var(--green);
}

.team-content p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 20px;
    line-height: 1.8;
}

.team-content strong {
    color: var(--white);
}

/* Forzar texto negro en team-content independientemente de la sección */
.team-content,
.team-content * {
    color: var(--dark) !important;
}

.team-content strong {
    color: var(--dark) !important;
}

.team-content h2 {
    color: var(--dark) !important;
}

.team-content p {
    color: var(--dark) !important;
}

.team-quote {
    color: var(--green) !important;
}

.team-author-name,
.team-author-role {
    color: var(--dark) !important;
}

.team-author {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.team-author img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
}

.team-author-name {
    font-weight: 700;
    font-size: 1.1rem;
}

.team-author-role {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Filtro */
.filter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.filter-card {
    padding: 48px 40px;
    border-radius: 20px;
}

.filter-card.yes {
    background: var(--white);
    border: 2px solid var(--green);
}

.filter-card.no {
    background: var(--light-bg);
    border: 2px solid transparent;
}

.filter-card h3 {
    font-size: 1.4rem;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.filter-card.yes h3 {
    color: var(--green-dark);
}

.filter-card.no h3 {
    color: #888;
}

.filter-list {
    list-style: none;
}

.filter-list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    font-size: 1.05rem;
}

.filter-list li:last-child {
    border-bottom: none;
}

.filter-list li i {
    margin-top: 4px;
    font-size: 18px;
    flex-shrink: 0;
}

.filter-card.yes .filter-list li i {
    color: var(--green);
}

.filter-card.no .filter-list li i {
    color: #ccc;
}

/* Corregir color de texto en tarjetas blancas dentro de section-dark */
.section-dark .filter-card.yes,
.section-dark .filter-card.yes * {
    color: var(--dark) !important;
}

.section-dark .filter-card.yes h3 {
    color: var(--green-dark) !important;
}

.section-dark .filter-card.yes .filter-list li span {
    color: var(--dark) !important;
}

.section-dark .pain-card,
.section-dark .pain-card * {
    color: var(--dark) !important;
}

.section-dark .pain-card h3 {
    color: var(--dark) !important;
}

.section-dark .pain-card p {
    color: var(--gray) !important;
}

/* Regla general para cualquier elemento con fondo blanco dentro de section-dark */
.section-dark [style*="background: white"],
.section-dark [style*="background: #fff"],
.section-dark [style*="background: #ffffff"],
.section-dark [style*="background-color: white"],
.section-dark [style*="background-color: #fff"],
.section-dark [style*="background-color: #ffffff"],
.section-dark [style*="background: rgb(255"],
.section-dark [style*="background-color: rgb(255"],
.section-dark .bg-white,
.section-dark [class*="card"][style*="background"],
.section-dark div[style*="background: white"] *,
.section-dark div[style*="background: #fff"] *,
.section-dark div[style*="background: #ffffff"] *,
.section-dark div[style*="background-color: white"] *,
.section-dark div[style*="background-color: #fff"] *,
.section-dark div[style*="background-color: #ffffff"] *,
.section-dark p[style*="background"],
.section-dark p[style*="background"] *,
.section-dark div[style*="background"]:not([style*="background: var(--primary)"]):not([style*="background: transparent"]):not([style*="background: rgba(0"]) * {
    color: var(--dark) !important;
}

/* Regla específica para tarjetas de servicios generadas por OpenAI */
.section-dark section[class*="section"]:not(.section-dark) {
    color: var(--dark) !important;
}

.section-dark section[class*="section"]:not(.section-dark) * {
    color: var(--dark) !important;
}

/* Asegurar que cualquier div con fondo blanco tenga texto negro */
.section-dark > .container > div[style*="background"]:not([style*="background: var(--primary)"]):not([style*="background: transparent"]) {
    color: var(--dark) !important;
}

.section-dark > .container > div[style*="background"]:not([style*="background: var(--primary)"]):not([style*="background: transparent"]) * {
    color: var(--dark) !important;
}

/* Regla específica para párrafos con fondo claro dentro de team-content */
.section-dark .team-content p[style*="background"],
.section-dark .team-content p[style*="background-color"] {
    color: var(--dark) !important;
}

.section-dark .team-content p[style*="background"] *,
.section-dark .team-content p[style*="background-color"] * {
    color: var(--dark) !important;
}

/* Regla para cualquier párrafo con fondo claro (azul claro, blanco, etc.) */
.section-dark p[style*="background: rgb(173"],
.section-dark p[style*="background: rgb(227"],
.section-dark p[style*="background: rgb(240"],
.section-dark p[style*="background: rgb(250"],
.section-dark p[style*="background-color: rgb(173"],
.section-dark p[style*="background-color: rgb(227"],
.section-dark p[style*="background-color: rgb(240"],
.section-dark p[style*="background-color: rgb(250"] {
    color: var(--dark) !important;
}

.section-dark p[style*="background: rgb(173"] *,
.section-dark p[style*="background: rgb(227"] *,
.section-dark p[style*="background: rgb(240"] *,
.section-dark p[style*="background: rgb(250"] *,
.section-dark p[style*="background-color: rgb(173"] *,
.section-dark p[style*="background-color: rgb(227"] *,
.section-dark p[style*="background-color: rgb(240"] *,
.section-dark p[style*="background-color: rgb(250"] * {
    color: var(--dark) !important;
}

/* CTA Final */
.cta-final {
    text-align: center;
    padding: 120px 0;
}

.cta-final h2 {
    color: var(--dark);
    margin-bottom: 16px;
}

.cta-final p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    font-weight: 500;
}

.cta-final .btn {
    padding: 20px 48px;
    font-size: 18px;
}

/* Footer */
footer {
    background: var(--primary);
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 30px;
}

.footer-logo img {
    height: 40px;
}

.footer-links {
    display: flex;
    gap: 32px;
}

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

.footer-links a:hover {
    color: var(--green);
}

.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    color: rgba(255,255,255,0.5);
    font-size: 14px;
}

.footer-bottom a {
    color: var(--green);
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #333;
    padding: 20px;
    z-index: 9999999 !important;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
    display: none;
}

.cookie-banner.show {
    display: block;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cookie-text {
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    flex: 1;
}

.cookie-text a {
    color: var(--green);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-family: inherit;
    transition: all 0.3s;
}

.cookie-btn-accept {
    background: var(--green);
    color: var(--white);
}

.cookie-btn-accept:hover {
    background: var(--green-dark);
}

.cookie-btn-reject {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--white);
}

.cookie-btn-reject:hover {
    border-color: var(--white);
}

/* ==================== RESPONSIVE ==================== */

/* Tablet */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hero-image {
        max-width: 500px;
        margin: 0 auto;
    }

    .hero-badge {
        bottom: -10px;
        left: 10px;
        padding: 12px 16px;
    }

    .pillars-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .diff-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .diff-image {
        order: -1;
        max-width: 500px;
        margin: 0 auto;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    .container {
        padding: 0 16px;
    }

    section {
        padding: 60px 0;
    }

    header {
        padding: 12px 0;
    }

    header .container {
        flex-wrap: nowrap;
        gap: 12px;
    }

    header nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
        background: none;
        border: none;
        color: var(--dark);
        font-size: 24px;
        cursor: pointer;
        padding: 8px;
        z-index: 101;
    }

    .mobile-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.95);
        z-index: 10000;
        display: none;
        flex-direction: column;
        padding: 80px 24px 24px;
        overflow-y: auto;
    }

    .mobile-menu.active {
        display: flex;
    }

    .mobile-menu-close {
        position: absolute;
        top: 20px;
        right: 20px;
        background: none;
        border: none;
        color: var(--white);
        font-size: 32px;
        cursor: pointer;
        padding: 8px;
    }

    .mobile-menu nav {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    .mobile-menu nav a {
        color: var(--white);
        text-decoration: none;
        font-size: 20px;
        font-weight: 500;
        padding: 12px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .logo {
        height: 36px;
    }

    header .btn {
        display: none;
    }

    .hero {
        min-height: auto;
        padding: 100px 0 60px;
    }

    .hero-grid {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .hero-content {
        display: contents;
    }

    .hero-tag {
        font-size: 11px;
        padding: 6px 14px;
        order: 1;
    }

    .hero h1 {
        font-size: 2rem;
        order: 2;
        margin-top: 12px;
        margin-bottom: 12px;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 20px;
        order: 3;
        padding: 0 8px;
    }

    .hero-image {
        max-width: 100%;
        margin: 0 0 24px 0;
        order: 4;
    }

    .hero-cta {
        flex-direction: column;
        margin-bottom: 32px;
        order: 5;
    }

    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 24px;
        order: 6;
    }

    .pain-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .pillars-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .diff-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .filter-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-content {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 12px;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .cookie-buttons {
        width: 100%;
    }

    .cookie-btn {
        flex: 1;
    }
}
