/* ============================================
   Planning & Solution S.A. - Styles
   ============================================ */

* {
    box-sizing: border-box;
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* ── Variables globales ─────────────────────────────── */
/*
 * Design Token System
 * Basado en: 8pt Grid (Google Material / Apple HIG),
 * WCAG 2.1 AA, Tailwind/Material typography scale.
 *
 * Spacing : múltiplos de 8px
 * Type    : escala modular 1.25 (Major Third)
 * Radius  : 4 niveles semánticos
 * Touch   : mín. 44px (Apple HIG / WCAG 2.5.5 AAA)
 */
:root {
    /* ─ Layout ─ */
    --navbar-h:   60px;
    --container:  80rem;      /* 1280px max-width */

    /* ─ Spacing (8pt grid) ─ */
    --space-1:  8px;
    --space-2:  16px;
    --space-3:  24px;
    --space-4:  32px;
    --space-5:  40px;
    --space-6:  48px;
    --space-8:  64px;
    --space-10: 80px;
    --space-12: 96px;

    /* ─ Section padding responsive ─ */
    --section-px: 1rem;       /* 16px  mobile  */
    --section-py: 3rem;       /* 48px  mobile  */

    /* ─ Typography scale (rem, ratio 1.25) ─ */
    --text-xs:   0.75rem;     /* 12px  — meta, captions      */
    --text-sm:   0.875rem;    /* 14px  — labels, badges      */
    --text-base: 1rem;        /* 16px  — body (mínimo WCAG)  */
    --text-lg:   1.125rem;    /* 18px  — card titles         */
    --text-xl:   1.25rem;     /* 20px  — sub-headings        */
    --text-2xl:  1.5rem;      /* 24px  — h3                  */
    --text-3xl:  1.875rem;    /* 30px  — h2 mobile           */
    --text-4xl:  2.25rem;     /* 36px  — h2 desktop          */
    --text-5xl:  3rem;        /* 48px  — h1 desktop          */

    /* ─ Line-height ─ */
    --lh-tight:  1.2;         /* display / grandes headings  */
    --lh-snug:   1.35;        /* card titles                 */
    --lh-normal: 1.5;         /* sub-headings                */
    --lh-relaxed:1.65;        /* body text                   */
    --lh-loose:  1.8;         /* párrafos largos             */

    /* ─ Border-radius ─ */
    --radius-sm:   8px;       /* inputs, tags                */
    --radius-md:   12px;      /* botones, small cards        */
    --radius-lg:   16px;      /* imágenes, cards medianas    */
    --radius-xl:   24px;      /* cards grandes               */
    --radius-full: 9999px;    /* pills / círculos            */

    /* ─ Touch target ─ */
    --touch-min:   44px;      /* Apple HIG / WCAG 2.5.5 AAA */
}

@media (min-width: 600px) {
    :root {
        --navbar-h:   72px;
        --section-px: 2rem;   /* 32px  tablet  */
        --section-py: 4rem;   /* 64px  tablet  */
    }
}

@media (min-width: 1024px) {
    :root {
        --section-px: 3rem;   /* 48px  desktop */
        --section-py: 6rem;   /* 96px  desktop */
    }
}

body {
    margin: 0;
    padding: 0;
    background: radial-gradient(ellipse at 60% 50%, #46718b 0%, #30597a 20%, #284967 40%, #213546 60%, #1f2c35 80%, #1b2326 100%);
    background-attachment: fixed;
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
}

/* ── Navbar ─────────────────────────────────────────── */
.navbar-sticky {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--navbar-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--section-px);
    background: transparent;
    border: none;
    box-shadow: none;
    transition: background 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow  0.4s cubic-bezier(0.4, 0, 0.2, 1),
                height      0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-scrolled {
    background: rgba(40, 73, 103, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
    height: calc(var(--navbar-h) - 8px);
}

/* Efecto de reducción del logo al hacer scroll */
.navbar-sticky img {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-scrolled img {
    transform: scale(0.85);
}

.navbar-sticky .text-white div {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-scrolled .text-white div {
    font-size: 0.9em;
}

/* Padding uniforme + scroll offset en todas las secciones */
section[id] {
    padding: var(--section-py) var(--section-px);
    scroll-margin-top: var(--navbar-h);
}

/* idea-expertos: fondo blanco full-width, padding gestionado por .idea-expertos-section */
#idea-expertos {
    padding: 0;
    scroll-margin-top: var(--navbar-h);
}

/* Secciones temporalmente ocultas */
#testimonios {
    display: none;
}

#servicios {
    display: none;
    background: radial-gradient(ellipse at 60% 50%, #2a4453 0%, #1d3549 20%, #182c3e 40%, #14202a 60%, #131a20 80%, #101517 100%);
}

footer {
    padding: 2.5rem var(--section-px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ── Footer top: 3 columnas ── */
.footer-top {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-col-title {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.25rem;
    letter-spacing: 0.01em;
}

.footer-about-text {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.875rem;
    line-height: 1.75;
    margin-bottom: 1rem;
}

.footer-quote {
    display: block;
    text-align: right;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
    font-style: italic;
    margin-top: 1.5rem;
}

/* Social list */
.footer-social-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.footer-social-link {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-social-link:hover {
    color: #fff;
}

.footer-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    flex-shrink: 0;
    color: #fff;
}

.footer-social-fb { background: #1877f2; }
.footer-social-ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.footer-social-wa { background: #25d366; }
.footer-social-li { background: #0a66c2; }
.footer-social-yt { background: #ff0000; }

/* Contact list */
.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    line-height: 1.65;
}

.footer-contact-icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-top: 0.1rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-contact-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-contact-link:hover {
    color: #fff;
}

/* Barra inferior */
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.5rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.8rem;
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-bottom-links a:hover {
    color: #fff;
}

.footer-bottom-links span {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.75rem;
}

/* Menú Mobile mejorado */
.menu-mobile {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease-out;
    opacity: 0;
    margin: 0 1rem;
}

@media (min-width: 600px) {
    .menu-mobile {
        margin: 0 2rem;
    }
}

@media (min-width: 1024px) {
    .menu-mobile {
        margin: 0 3rem;
    }
}

.menu-mobile.active {
    max-height: 500px;
    opacity: 1;
    margin-bottom: 1rem;
}

/* Animaciones de entrada */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Animación de título principal */
.title-animate {
    animation: titleFadeIn 1s ease-out;
}

@keyframes titleFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Arrow bounce */
.arrow-bounce {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Botón mejorado con efecto ripple */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-ripple:hover::before {
    width: 300px;
    height: 300px;
}

/* WhatsApp float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Scroll to top button */
.scroll-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    z-index: 999;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.4);
}

.scroll-to-top.visible {
    opacity: 1;
    transform: scale(1);
}

.scroll-to-top:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.6);
}

/* ── Hero ────────────────────────────────────────────── */
/* La máscara se aplica SOLO al ::before (imagen) para que el texto no se vea afectado */
#inicio {
    position: relative;
    min-height: calc(100dvh - var(--navbar-h));
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: visible;
}

#inicio::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: image-set(
        url('../images/fondo.webp') type('image/webp'),
        url('../images/fondo.jpg') type('image/jpeg')
    );
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    mask-image:
        linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.3) 10%, rgba(0,0,0,1) 20%, rgba(0,0,0,1) 75%, rgba(0,0,0,0.3) 90%, rgba(0,0,0,0) 100%),
        linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,0.3) 8%, rgba(0,0,0,1) 15%, rgba(0,0,0,1) 85%, rgba(0,0,0,0.3) 92%, rgba(0,0,0,0) 100%);
    -webkit-mask-image:
        linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.3) 10%, rgba(0,0,0,1) 20%, rgba(0,0,0,1) 75%, rgba(0,0,0,0.3) 90%, rgba(0,0,0,0) 100%),
        linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,0.3) 8%, rgba(0,0,0,1) 15%, rgba(0,0,0,1) 85%, rgba(0,0,0,0.3) 92%, rgba(0,0,0,0) 100%);
    mask-composite: intersect;
    -webkit-mask-composite: source-in;
    z-index: 0;
}

#inicio::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

#inicio > * {
    position: relative;
    z-index: 2;
}

/* Hover effects mejorados para nav links */
.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #06b6d4;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Efectos de glow al navbar scrolled */
.navbar-scrolled .nav-link:hover {
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}

.nav-link-active {
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.3);
}

@media (min-width: 1024px) {
    .nav-link-active {
        padding: 0.5rem 1.5rem;
    }
}

.nav-link-active:hover {
    box-shadow: 0 0 25px rgba(6, 182, 212, 0.6);
}

/* Stagger animation para elementos de lista */
.stagger-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.stagger-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.stagger-item:nth-child(1) { transition-delay: 0.1s; }
.stagger-item:nth-child(2) { transition-delay: 0.2s; }
.stagger-item:nth-child(3) { transition-delay: 0.3s; }
.stagger-item:nth-child(4) { transition-delay: 0.4s; }
.stagger-item:nth-child(5) { transition-delay: 0.5s; }

/* ── Sección Experiencia ─────────────────────────────── */
.exp-card {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.22) 0%,
        rgba(255, 255, 255, 0.08) 50%,
        rgba(255, 255, 255, 0.14) 100%
    );
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-top: 1px solid rgba(255, 255, 255, 0.55);
    border-left: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: var(--radius-xl);       /* 24px — token */
    padding: var(--space-4) var(--space-3); /* 32px 24px — 8pt grid */
    position: relative;
    overflow: hidden;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.25),
        0 2px 8px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.exp-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.18) 0%,
        rgba(255, 255, 255, 0.0) 100%
    );
    border-radius: 24px 24px 60% 60%;
    pointer-events: none;
}

.exp-card::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%);
    pointer-events: none;
}

.exp-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.35),
        0 4px 12px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(255, 255, 255, 0.15);
}

.exp-card-img {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-full);
    object-fit: cover;
    margin-bottom: var(--space-3);         /* 24px — 8pt grid */
    border: 2px solid rgba(255, 255, 255, 0.25);
}

.exp-card-title {
    font-size: var(--text-lg);             /* 1.125rem = 18px */
    font-weight: 600;
    color: #ffffff;
    margin-bottom: var(--space-2);         /* 16px — 8pt grid */
    line-height: var(--lh-snug);           /* 1.35 */
}

.exp-card-text {
    font-size: var(--text-base);           /* 1rem = 16px — mínimo WCAG */
    color: rgba(255, 255, 255, 0.72);
    line-height: var(--lh-relaxed);        /* 1.65 */
}

@media (max-width: 599px) {
    .exp-card {
        padding: var(--space-3) var(--space-2); /* 24px 16px — 8pt grid */
    }
    .exp-card-img {
        width: 56px;
        height: 56px;
    }
    .exp-card-title {
        font-size: var(--text-base);       /* 16px mínimo */
    }
}

/* Estilos para sección Expertos Estratégicos */
.expert-card {
    background: #f5f5f5;
    border: 2px solid white;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.expert-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.expert-label {
    background: #000 !important;
    background-color: #000 !important;
    color: white;
    padding: var(--space-2);               /* 16px — 8pt grid */
    text-align: center;
    font-weight: 600;
    font-size: var(--text-base);           /* 1rem = 16px — mínimo WCAG */
}

.expert-portrait {
    width: 100%;
    height: 400px;
    object-fit: cover;
    background: #e5e5e5;
}

@media (max-width: 599px) {
    .expert-portrait {
        height: 250px;
    }
    
    .expert-label {
        font-size: var(--text-sm);         /* 0.875rem = 14px mínimo móvil */
        padding: var(--space-1);           /* 8px — 8pt grid */
    }
    
    .btn-expertos {
        padding: 12px var(--space-3);      /* 12px 24px — touch target 44px+ */
        font-size: var(--text-base);       /* 16px — mínimo WCAG */
    }
}

.btn-expertos {
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    border-radius: var(--radius-full);     /* pill — token */
    padding: var(--space-2) var(--space-4); /* 16px 32px — 8pt grid */
    min-height: var(--touch-min);          /* 44px — touch target */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-expertos:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 20px rgba(6, 182, 212, 0.4);
}

/* Separador visual entre sección blanca (postula) y secciones oscuras */
#experiencia {
    border-top: 4px solid rgba(255, 255, 255, 0.08);
}

/* Estilos para sección Contactos / Únete a Nuestro Equipo */
.contactos-section {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle 900px at 0% 100%,
        #5ab4d4 0%,
        #3a8fb5 12%,
        #1e5f80 28%,
        #0d3050 45%,
        #020810 65%,
        #000000 100%
    );
}

.laptop-frame {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    transition: transform 0.3s ease;
}

.laptop-frame:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.laptop-screen {
    background: #000;
    border-radius: 8px 8px 0 0;
    padding: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.laptop-screen-content {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 4px;
    background: #1a365d;
}

.laptop-base {
    background: linear-gradient(to bottom, #2d3748, #1a202c);
    height: 20px;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.btn-mas-info {
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    border-radius: var(--radius-md);       /* 12px — token */
    padding: var(--space-2) var(--space-4); /* 16px 32px — 8pt grid */
    min-height: var(--touch-min);          /* 44px — touch target */
    font-weight: 700;
    font-size: var(--text-base);           /* 1rem = 16px */
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.btn-mas-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.5);
}

.partner-logo {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.partner-logo:hover {
    opacity: 1;
}

@media (max-width: 599px) {
    .laptop-frame {
        transform: none;
        max-width: 100%;
    }
    
    .laptop-screen-content {
        height: 250px;
    }
}

/* Estilos para sección Reviews */
.reviews-section {
    position: relative;
    overflow: hidden;
}

.review-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-xl);       /* 24px — token */
    padding: var(--space-5) var(--space-4); /* 40px 32px — 8pt grid */
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.review-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

.review-avatar {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.3);
    margin-bottom: var(--space-3);         /* 24px — 8pt grid */
}

.review-name {
    font-size: var(--text-2xl);            /* 1.5rem = 24px */
    font-weight: 600;
    color: white;
    margin-bottom: var(--space-2);         /* 16px — 8pt grid */
    line-height: var(--lh-snug);
}

.review-text {
    color: rgba(255, 255, 255, 0.85);
    line-height: var(--lh-loose);          /* 1.8 — párrafo largo */
    font-size: var(--text-base);           /* 1rem = 16px */
}

@media (max-width: 599px) {
    .review-card {
        padding: var(--space-4) var(--space-3); /* 32px 24px — 8pt grid */
    }

    .review-avatar {
        width: 64px;
        height: 64px;
    }

    .review-name {
        font-size: var(--text-xl);         /* 1.25rem = 20px */
    }

    .review-text {
        font-size: var(--text-base);       /* 1rem = 16px — mínimo WCAG */
    }
}

/* ── Botones de servicios ────────────────────────── */
.svc-btn-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 270px;
}

.svc-btn {
    display: flex;
    align-items: center;
    width: 270px;
    height: 80px;
    background: white;
    border: none;
    border-radius: 50px;
    padding: 0 80px 0 28px;
    cursor: pointer;
    text-align: left;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.svc-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.svc-btn-text {
    color: #2a6fa8;
    font-size: var(--text-base);           /* 1rem = 16px */
    font-weight: 600;
    letter-spacing: 0.3px;
    line-height: var(--lh-normal);         /* 1.5 */
    word-break: break-word;
}

.svc-pin-icon {
    position: absolute;
    right: -25px;
    top: 60%;
    transform: translateY(-55%);
    pointer-events: none;
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.25));
}


@media (max-width: 599px) {
    .svc-btn-wrapper {
        width: 100%;
    }
    .svc-btn {
        width: 100%;
        height: 64px;
        padding: 0 72px 0 20px;
    }
    .svc-btn-text {
        font-size: var(--text-base);       /* 1rem = 16px — mínimo WCAG */
    }
    .svc-pin-icon {
        right: -15px;
    }
    .svc-pin-icon svg {
        width: 80px;
        height: 80px;
    }
}

/* Estilos para Sistema de Vistas de Servicios */
.servicios-view {
    display: none;
}

.servicios-view.active {
    display: block;
    position: relative;
    animation: viewFadeIn 0.35s ease-out forwards;
}

@keyframes viewFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.servicios-detail {
    min-height: 400px;
}

/* Paneles de detalle - sangran a los bordes de la sección */
#detail-postula,
#detail-financiamiento,
#detail-crowdfunding {
    border-radius: 0;
    padding: 0;
    margin: calc(-1 * var(--section-py)) calc(-1 * var(--section-px));
    width: calc(100% + 2 * var(--section-px));
}

/* Fondos específicos por panel */

/* Fondo blanco para la vista de Crowdfunding */
#detail-crowdfunding {
    background: white;
}

#detail-financiamiento .detail-content,
#detail-crowdfunding .detail-content {
    padding: 40px;
}

@media (max-width: 599px) {
    #detail-financiamiento .detail-content,
    #detail-crowdfunding .detail-content {
        padding: 24px;
    }
}

/* Botón de volver para fondo blanco */
#detail-crowdfunding .detail-back-btn {
    background: rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(0, 0, 0, 0.2);
    color: #1a202c;
    width: 48px;
    height: 48px;
    padding: 0;
}

#detail-crowdfunding .detail-back-btn:hover {
    background: rgba(0, 0, 0, 0.18);
    border-color: rgba(0, 0, 0, 0.35);
    transform: translateX(-5px) scale(1.1);
}

/* Reproductor de video con forma orgánica */
.video-player-organic {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 0 24px 0 0;
    clip-path: polygon(
        0 0,
        100% 0,
        100% 75%,
        98% 80%,
        95% 85%,
        90% 88%,
        80% 92%,
        65% 95%,
        45% 97%,
        25% 98%,
        10% 99%,
        0 100%
    );
}

.video-player-organic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 599px) {
    .video-player-organic {
        aspect-ratio: 16/10;
    }
}

.detail-back-btn {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
}


.detail-back-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateX(-5px) scale(1.1);
}

.detail-back-btn:active {
    transform: translateX(-5px) scale(0.95);
}

#btn-cerrar-servicios:hover {
    transform: scale(1.1);
}

#btn-cerrar-servicios:active {
    transform: scale(0.95);
}

.detail-content {
    padding-top: 60px;
}

/* Ajuste de padding para Postula tu Idea */
#detail-postula .detail-content {
    padding: 40px;
    padding-top: 60px;
}

@media (max-width: 599px) {
    #detail-postula .detail-content {
        padding: 24px;
        padding-top: 50px;
    }
}

/* Estilos para sección Tu Idea en Manos de Expertos */
.idea-expertos-section {
    background: white;
    border-radius: 0;
    overflow: hidden;
    padding: var(--section-py) var(--section-px);
}

.idea-expertos-title {
    color: #000000;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 600px) {
    .idea-expertos-title {
        font-size: 2.5rem;
    }
}

.idea-expertos-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

.idea-expertos-form {
    background: white;
}

.idea-form-intro {
    color: #4a5568;
    font-size: var(--text-base);           /* 1rem = 16px — mínimo WCAG */
    line-height: var(--lh-relaxed);        /* 1.65 */
    margin-bottom: var(--space-4);         /* 32px — 8pt grid */
}

.idea-form-input {
    width: 100%;
    padding: 12px 16px;                    /* 12px vertical para touch target ≥44px */
    min-height: var(--touch-min);          /* 44px — touch target WCAG */
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);       /* 8px — token */
    font-size: var(--text-base);           /* 1rem = 16px — previene zoom iOS */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: white;
}

.idea-form-input:focus {
    outline: none;
    border-color: #06b6d4;
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

.idea-form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);       /* 8px — token */
    font-size: var(--text-base);           /* 1rem = 16px — previene zoom iOS */
    min-height: 120px;
    resize: vertical;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: white;
    font-family: inherit;
}

.idea-form-textarea:focus {
    outline: none;
    border-color: #06b6d4;
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

.idea-form-label {
    display: block;
    font-size: var(--text-sm);             /* 0.875rem = 14px — label semántico */
    font-weight: 600;
    color: #2d3748;
    margin-bottom: var(--space-1);         /* 8px — 8pt grid */
}

.idea-form-file-upload {
    border: 2px dashed #cbd5e0;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    background: #f7fafc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.idea-form-file-upload:hover {
    border-color: #06b6d4;
    background: #f0f9ff;
}

.idea-form-file-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.idea-form-submit-btn {
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    color: white;
    font-weight: 700;
    font-size: var(--text-lg);             /* 1.125rem = 18px */
    padding: var(--space-2) var(--space-6); /* 16px 48px — 8pt grid */
    min-height: var(--touch-min);          /* 44px — touch target */
    border: none;
    border-radius: var(--radius-md);       /* 12px — token */
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.idea-form-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.5);
}

.idea-form-submit-btn:active {
    transform: translateY(0);
}

@media (max-width: 599px) {
    .idea-form-submit-btn {
        width: 100%;
        padding: 14px 32px;
    }
}

/* Responsive para vistas de detalle */
@media (max-width: 599px) {
    .detail-back-btn {
        width: var(--touch-min);           /* 44px — touch target mínimo WCAG */
        height: var(--touch-min);
    }

    .detail-back-btn svg {
        width: 20px;
        height: 20px;
    }

    .detail-content {
        padding-top: var(--space-6);       /* 48px — espacio sobre el botón */
    }

    #detail-postula .detail-content {
        padding-top: var(--space-6);       /* 48px — 8pt grid */
    }
}

/* ============================================
   Botón CREAR - Hero Section
   ============================================ */

.btn-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    padding-left: 22px;
    text-decoration: none;
}

.btn-crear {
    display: inline-flex;
    align-items: center;
    height: 70px;
    padding: 0 80px 0 90px;
    border-radius: 50px;
    border: none;
    outline: none;
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    box-shadow:
        0 4px 20px rgba(0, 160, 220, 0.4),
        0 2px 6px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.btn-wrapper:hover .btn-crear {
    transform: translateY(-2px) scale(1.03);
    box-shadow:
        0 8px 32px rgba(6, 182, 212, 0.55),
        0 4px 12px rgba(0, 0, 0, 0.5);
}

.btn-wrapper:active .btn-crear {
    transform: scale(0.99);
}

/* Shine sweep */
.btn-crear::before {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
    transform: skewX(-20deg);
    animation: btnShine 3s infinite 1.5s;
    pointer-events: none;
    z-index: 1;
}

/* Top gloss */
.btn-crear::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 45%;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 50px 50px 0 0;
    pointer-events: none;
}

.btn-label {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 30px;
    letter-spacing: 0.13em;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    position: relative;
    z-index: 2;
}

/* Círculo con chevrons */
.btn-icon {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    z-index: 10;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-wrapper:hover .btn-icon {
    transform: translateY(calc(-50% - 2px)) scale(1.03);
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.btn-wrapper:active .btn-icon {
    transform: translateY(-50%) scale(0.99);
}

.chevrons {
    display: flex;
    align-items: center;
    gap: 0px;
}

.chevron {
    width: 16px;
    height: 16px;
    border-right: 4px solid #06b6d4;
    border-bottom: 4px solid #06b6d4;
    transform: rotate(-45deg);
    border-radius: 0 2px 0 0;
}

.chevron:first-child { opacity: 0.5; }
.chevron:last-child  { opacity: 1; }

@keyframes btnShine {
    0%        { left: -75%; }
    40%, 100% { left: 130%; }
}

@media (max-width: 640px) {
    .btn-crear {
        height: 46px;
        padding: 0 24px 0 40px;
    }
    .btn-label {
        font-size: 22px;
    }
    .btn-icon {
        width: 50px;
        height: 50px;
    }
}


/* ── Liquid Glass buttons (expertos) ─────────────────── */
.expert-glass-btn {
    position: relative;
    width: auto;
    padding: 18px 28px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.01em;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        inset 0 -1px 0 rgba(0, 0, 0, 0.15);
    text-align: left;
}

.expert-glass-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.18) 0%,
        rgba(255, 255, 255, 0.04) 50%,
        transparent 100%
    );
    pointer-events: none;
}

.expert-glass-btn::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
}

.expert-glass-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-2px) scale(1.01);
    box-shadow:
        0 10px 36px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.expert-glass-btn:active {
    transform: translateY(0) scale(0.99);
}

/* ── Accesibilidad: foco visible ─────────────────────── */
:focus-visible {
    outline: 2px solid #06b6d4;
    outline-offset: 3px;
    border-radius: 4px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #06b6d4;
    outline-offset: 3px;
}

/* ── Prefers-reduced-motion: desactivar animaciones ──── */
@media (prefers-reduced-motion: reduce) {
    .fade-in,
    .slide-in-left,
    .slide-in-right,
    .stagger-item {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .title-animate,
    .arrow-bounce,
    .btn-crear::before,
    .whatsapp-float {
        animation: none;
    }

    .navbar-sticky,
    .navbar-sticky img,
    .exp-card,
    .review-card,
    .svc-btn,
    .btn-expertos,
    .btn-mas-info,
    .scroll-to-top,
    .expert-glass-btn {
        transition: none;
    }
}

/* ── Mejoras responsivas del grid de servicios ────────── */
@media (max-width: 480px) {
    .svc-btn-wrapper {
        width: 100%;
    }

    .svc-btn {
        width: 100%;
        height: 56px;
        padding: 0 60px 0 16px;
    }

    .svc-pin-icon {
        right: -10px;
    }

    .svc-pin-icon svg {
        width: 64px;
        height: 64px;
    }
}



/* Nota Conceptual submit button disabled state */
#nc-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* ── Breakpoint mobile ≤599px | desktop ≥600px ──────────────
   Tailwind usa md=768px por defecto. Estos overrides activan
   el layout desktop desde 600px (en lugar de 768px).
   ───────────────────────────────────────────────────────── */

/* Navbar: ocultar hamburguesa y mostrar nav desktop ≥600px */
@media (min-width: 600px) {
    #menuBtn { display: none !important; }
    #menuMobile { display: none !important; }
    nav[aria-label="Navegación principal"] { display: flex !important; }
}

/* Navbar: ocultar nav desktop en mobile ≤599px */
@media (max-width: 599px) {
    nav[aria-label="Navegación principal"] { display: none !important; }
}

/* Grids y layouts: activar multi-columna desde 600px */
@media (min-width: 600px) {

    /* Sección Experiencia: 3 columnas */
    #experiencia .grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    /* Sección Testimonios: 2 columnas */
    #testimonios .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* Formulario Nota Conceptual: 2 columnas */
    #nota-conceptual-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* Banco de Tiempo: grid interno 2 columnas */
    #detail-banco-tiempo .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* Footer: 3 columnas desde 600px (ya definidas en .footer-top grid) */

    /* Clases Tailwind md: activadas desde 600px */
    .md\:text-base  { font-size: 1rem;      line-height: 1.5rem; }
    .md\:text-lg    { font-size: 1.125rem;  line-height: 1.75rem; }
    .md\:text-xl    { font-size: 1.25rem;   line-height: 1.75rem; }
    .md\:text-2xl   { font-size: 1.5rem;    line-height: 2rem; }
    .md\:text-4xl   { font-size: 2.25rem;   line-height: 2.5rem; }
    .md\:text-5xl   { font-size: 3rem;      line-height: 1; }
    .md\:text-6xl   { font-size: 3.75rem;   line-height: 1; }

    .md\:w-11 { width: 2.75rem; }
    .md\:h-11 { height: 2.75rem; }
    .md\:w-16 { width: 4rem; }
    .md\:h-16 { height: 4rem; }
    .md\:w-10 { width: 2.5rem; }
    .md\:h-10 { height: 2.5rem; }

    .md\:mb-8  { margin-bottom: 2rem; }
    .md\:mb-12 { margin-bottom: 3rem; }
    .md\:mb-14 { margin-bottom: 3.5rem; }
    .md\:mt-16 { margin-top: 4rem; }
    .md\:gap-8  { gap: 2rem; }
    .md\:gap-12 { gap: 3rem; }

    .md\:col-span-2 { grid-column: span 2 / span 2; }

    /* sm: desde 600px (Tailwind sm=640px) */
    .sm\:flex-row    { flex-direction: row; }
    .sm\:items-start { align-items: flex-start; }
}

/* ── Mobile: centrado de todos los elementos ≤599px ─────────── */
@media (max-width: 599px) {

    /* ─ Hero ─ */
    #inicio .flex.flex-col {
        align-items: center;
    }
    #inicio h1 {
        text-align: center;
    }

    /* ─ Servicios: título y botones centrados ─ */
    #servicios-main > div {
        justify-items: center;
        text-align: center;
    }
    #servicios-main h2 {
        text-align: center;
    }
    #servicios-main .flex.flex-col {
        align-items: center;
    }
    /* Botones de servicios: 1 columna centrada en mobile */
    #servicios-main .grid.grid-cols-2 {
        grid-template-columns: 1fr;
        justify-items: center;
    }
    #servicios-main .col-span-2 {
        grid-column: span 1;
    }

    /* ─ Sección Postula ─ */
    #postula h2,
    #postula h3 {
        text-align: center;
    }
    #postula p {
        text-align: center;
    }
    #postula .space-y-4 .flex.items-start {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    #postula .pt-6.flex {
        justify-content: center;
    }

    /* ─ Sección Experiencia ─ */
    #experiencia h2 {
        text-align: center;
    }
    .exp-card {
        text-align: center;
    }
    .exp-card-img {
        margin-left: auto;
        margin-right: auto;
    }

    /* ─ Sección Contactos ─ */
    #contactos h2,
    #contactos p {
        text-align: center;
    }
    #contactos .flex.flex-col {
        align-items: center;
    }
    #contactos .flex.justify-center {
        justify-content: center;
    }

    /* ─ Detalles de Servicios ─ */
    .detail-content h2,
    .detail-content h3,
    .detail-content p {
        text-align: center;
    }
    .detail-content .flex.justify-start {
        justify-content: center;
    }
    .detail-content .space-y-6,
    .detail-content .space-y-4 {
        text-align: center;
    }
    /* Expertos: botones centrados */
    #detail-mentoria .flex.flex-row {
        justify-content: center;
    }

    /* ─ Footer ─ */
    .footer-top {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-quote {
        text-align: left;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

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