/* ==========================================================================
   CEEDI - INSTITUTIONAL PRESTIGE DESIGN SYSTEM (CRISP & ELEGANT)
   ========================================================================== */

:root {
    --bg-body: #f8fafc;
    --bg-surface: #ffffff;
    --bg-panel: #f1f5f9;
    
    --navy-dark: #0f172a;
    --navy-slate: #1e293b;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    
    --gold: #d97706;
    --gold-hover: #b45309;
    --gold-glow: rgba(217, 119, 6, 0.15);
    --gold-light: #fffbeb;
    
    --border-subtle: #e2e8f0;
    --border-highlight: rgba(217, 119, 6, 0.4);
    
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Plus Jakarta Sans', sans-serif;
    
    --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Global Rules */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-body);
    color: var(--navy-dark);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.institutional-theme {
    background-color: var(--bg-body);
    color: var(--navy-dark);
    line-height: 1.65;
}

a, button, select, input[type="checkbox"] {
    cursor: pointer;
}

/* Fixed Floating WhatsApp Button (Bottom-Left Corner for All Sections) */
.whatsapp-float-btn {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 9999;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: #25d366;
    color: #ffffff;
    padding: 0.65rem 1.15rem;
    border-radius: 9999px;
    text-decoration: none;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.82rem;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    transition: transform 0.3s var(--ease-smooth), box-shadow 0.3s ease, background 0.3s ease;
}

.whatsapp-float-btn:hover {
    background: #1eb956;
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.55);
    color: #ffffff;
}

.wa-float-icon {
    width: 20px;
    height: 20px;
}

/* WebGL Subtle Ambient Canvas */
#webgl-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

/* Layout Utilities */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

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

.section-tag {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: var(--font-sans);
    font-size: clamp(1.8rem, 3.8vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--navy-dark);
    margin-bottom: 1rem;
}

.serif-italic {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 500;
    color: var(--navy-slate);
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 680px;
}
.text-center .section-desc { margin: 0 auto; }

.bg-light-panel {
    background: #ffffff;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

/* Buttons */
.btn-inst {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.75rem;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.25s var(--ease-smooth), box-shadow 0.25s ease, background 0.25s ease;
}

.btn-inst i {
    width: 16px;
    height: 16px;
    transition: transform 0.25s ease;
}

.btn-inst:hover i {
    transform: translateX(3px);
}

.btn-primary {
    background: var(--navy-dark);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
}

.btn-primary:hover {
    background: var(--navy-slate);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.2);
}

.btn-gold {
    background: var(--gold);
    color: #ffffff;
    box-shadow: 0 4px 14px var(--gold-glow);
}

.btn-gold:hover {
    background: var(--gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--gold-glow);
}

.btn-outline {
    background: transparent;
    border-color: var(--border-subtle);
    color: var(--navy-dark);
}

.btn-outline:hover {
    border-color: var(--navy-dark);
    background: rgba(15, 23, 42, 0.03);
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
    justify-content: center;
    margin-top: 1.5rem;
}

/* Navbar */
.navbar-inst {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0.6rem 0;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
}

.navbar-inst.scrolled {
    padding: 0.4rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.brand-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-img {
    height: 90px;
    width: auto;
    object-fit: contain;
    transition: height 0.3s ease;
}

.navbar-inst.scrolled .logo-img {
    height: 70px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.nav-link {
    color: var(--navy-slate);
    text-decoration: none;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.nav-link:hover {
    color: var(--gold);
}

.nav-highlight {
    color: var(--gold);
    font-weight: 700;
}

.badge-new {
    font-size: 0.65rem;
    font-weight: 800;
    background: var(--gold);
    color: #ffffff;
    padding: 0.15rem 0.45rem;
    border-radius: 9999px;
    letter-spacing: 0.5px;
}

/* Nav Actions */
.nav-actions {
    margin-left: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.btn-nav-ultra-compact {
    padding: 0.25rem 0.65rem !important;
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    border-radius: 6px !important;
    box-shadow: 0 2px 6px var(--gold-glow) !important;
    gap: 0.25rem !important;
    letter-spacing: 0.1px !important;
    white-space: nowrap !important;
}

.btn-nav-ultra-compact i {
    width: 12px !important;
    height: 12px !important;
}

/* Mobile Hamburger Button & Drawer Styling */
.nav-hamburger {
    display: none;
    align-items: center;
    justify-content: center;
    background: var(--navy-dark);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    width: 38px;
    height: 38px;
    min-width: 38px;
    cursor: pointer;
    transition: background 0.2s ease;
    flex-shrink: 0;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    z-index: 1001;
}

.nav-hamburger * {
    pointer-events: none !important;
}

.nav-hamburger i, .nav-hamburger svg {
    width: 22px;
    height: 22px;
}

.nav-hamburger .icon-close {
    display: none;
}

body.drawer-open .nav-hamburger {
    background: var(--gold) !important;
    border-color: var(--gold) !important;
}

body.drawer-open .nav-hamburger .icon-open {
    display: none !important;
}

body.drawer-open .nav-hamburger .icon-close {
    display: block !important;
}

/* Mobile Nav Drawer Overlay */
.mobile-nav-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--navy-dark);
    z-index: 998;
    padding: 6.5rem 1.75rem 3rem 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s var(--ease-smooth);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

body.drawer-open .mobile-nav-drawer {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
}

body.drawer-open {
    overflow: hidden !important;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.mobile-nav-link {
    color: #ffffff;
    text-decoration: none;
    font-family: var(--font-sans);
    font-size: 1.15rem;
    font-weight: 700;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
    touch-action: manipulation;
}

.mobile-nav-link:hover {
    color: var(--gold);
}

/* Hero Section */
.hero-inst {
    position: relative;
    padding: 10rem 0 5rem 0;
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-container-rel {
    position: relative;
    z-index: 2;
}

.hero-left-globe-bleed {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate(-20%, -50%);
    width: 22vw;
    height: 28vw;
    min-width: 280px;
    min-height: 360px;
    max-width: 380px;
    max-height: 460px;
    z-index: 1;
    pointer-events: auto;
    cursor: grab;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}

.hero-left-globe-bleed:active {
    cursor: grabbing;
}

#hero-globe-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
}

.hero-text-block {
    position: relative;
    z-index: 2;
    padding-left: 2.5rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--gold-light);
    border: 1px solid rgba(217, 119, 6, 0.3);
    padding: 0.4rem 0.9rem;
    border-radius: 9999px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gold-hover);
    margin-bottom: 1.5rem;
}

.gold-dot {
    width: 7px;
    height: 7px;
    background-color: var(--gold);
    border-radius: 50%;
    flex-shrink: 0;
}

.hero-title {
    font-family: var(--font-sans);
    font-size: clamp(2.4rem, 4.8vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.5px;
    margin-bottom: 1.5rem;
    color: var(--navy-dark);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 640px;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    margin-bottom: 3.5rem;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.stat-box {
    text-align: left;
}

.stat-num {
    display: block;
    font-family: var(--font-sans);
    font-size: 2rem;
    font-weight: 800;
    color: var(--navy-dark);
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.stat-divider {
    width: 1px;
    height: 36px;
    background-color: var(--border-subtle);
}

.hero-floating-photo-wrap {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.hero-floating-img {
    width: 100%;
    max-width: 750px;
    height: auto;
    object-fit: contain;
    background: transparent;
    filter: drop-shadow(0 25px 50px rgba(15, 23, 42, 0.15));
    transition: transform 0.3s var(--ease-smooth);
}

.hero-floating-img:hover {
    transform: translateY(-4px) scale(1.02);
}

/* Section Styling */
.section-inst {
    padding: 6rem 0;
}

.section-header {
    margin-bottom: 3.5rem;
}

/* Timeline */
.timeline-inst {
    position: relative;
    margin-top: 3rem;
}

.timeline-track {
    position: absolute;
    top: 24px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--border-subtle);
    z-index: 1;
}

.timeline-bar {
    height: 100%;
    width: 75%;
    background: var(--gold);
}

.timeline-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1.5rem;
    position: relative;
    z-index: 2;
}

.timeline-item {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 1.75rem 1.25rem;
    transition: transform 0.3s var(--ease-smooth), border-color 0.3s ease;
}

.timeline-item:hover {
    border-color: var(--gold);
    transform: translateY(-4px);
}

.timeline-item.active-item {
    border-color: var(--navy-dark);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
}

.item-year {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.timeline-item h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.timeline-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Direccion Section */
.direccion-grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 4rem;
    align-items: center;
}

.direccion-photo-wrap {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08);
}

.direccion-img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    object-position: center 20%;
    display: block;
}

.photo-caption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(12px);
    color: #ffffff;
    padding: 1.25rem;
}

.photo-caption strong {
    display: block;
    font-size: 0.95rem;
}

.photo-caption span {
    font-size: 0.8rem;
    color: var(--gold);
}

.director-quote {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-style: italic;
    color: var(--navy-dark);
    border-left: 3px solid var(--gold);
    padding-left: 1.25rem;
    margin: 1.5rem 0;
}

.director-bio {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.credentials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.cred-card {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    padding: 1rem 1.25rem;
    border-radius: 12px;
}

.cred-card i {
    color: var(--gold);
    width: 22px;
    height: 22px;
    margin-top: 0.1rem;
}

.cred-card strong {
    display: block;
    font-size: 0.9rem;
    color: var(--navy-dark);
}

.cred-card span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* SECCIÓN TUTORÍA 6° DE PRIMARIA A 1° DE SECUNDARIA */
.tutoria-section {
    padding: 6rem 0;
}

.tutoria-card-box {
    background: var(--navy-dark);
    color: #ffffff;
    border-radius: 28px;
    padding: 4rem;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15);
    border: 1px solid var(--navy-slate);
}

.tutoria-kicker {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--gold);
    margin-bottom: 0.85rem;
}

.tutoria-title {
    font-family: var(--font-sans);
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    color: #ffffff;
}

.tutoria-lede {
    font-size: 1.15rem;
    color: var(--text-light);
    max-width: 850px;
    line-height: 1.7;
    margin-bottom: 3rem;
}

.tutoria-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3.5rem;
}

.t-stat-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.75rem;
    border-radius: 18px;
    backdrop-filter: blur(10px);
}

.t-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(217, 119, 6, 0.15);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.t-stat-num {
    display: block;
    font-family: var(--font-sans);
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.3rem;
}

.t-stat-desc {
    font-size: 0.85rem;
    color: var(--text-light);
}

.tutoria-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-bottom: 3.5rem;
}

.step-card {
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid var(--gold);
    padding: 1.75rem;
    border-radius: 0 16px 16px 0;
}

.step-num {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.step-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.step-card p {
    font-size: 0.9rem;
    color: var(--text-light);
}

.tutoria-areas-box {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2rem;
    border-radius: 20px;
    margin-bottom: 3rem;
}

.tutoria-areas-box h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.25rem;
}

.areas-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.area-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(217, 119, 6, 0.15);
    border: 1px solid rgba(217, 119, 6, 0.3);
    color: #fef3c7;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.4rem 0.85rem;
    border-radius: 9999px;
}

.area-pill i {
    width: 14px;
    height: 14px;
    color: var(--gold);
}

.tutoria-footer-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

.price-note-tutoria {
    font-size: 0.95rem;
    color: var(--text-light);
}

.price-note-tutoria strong {
    color: #ffffff;
}

.tutoria-btns {
    display: flex;
    gap: 1rem;
}

.tutoria-btns .btn-outline,
.tutoria-card-box .btn-outline {
    border-color: rgba(255, 255, 255, 0.4) !important;
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(8px);
}

.tutoria-btns .btn-outline:hover,
.tutoria-card-box .btn-outline:hover {
    border-color: var(--gold) !important;
    color: #ffffff !important;
    background: rgba(217, 119, 6, 0.25) !important;
    transform: translateY(-2px);
}

/* SECCIÓN FOTOTECA INSTITUCIONAL */
.fototeca-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.fototeca-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 280px;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
    background: var(--navy-dark);
}

.foto-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s var(--ease-smooth), opacity 0.3s ease;
    opacity: 0.88;
}

.fototeca-card:hover .foto-img {
    transform: scale(1.06);
    opacity: 0.98;
}

.foto-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 1.5rem;
    background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.92) 80%);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.foto-tag {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 0.3rem;
}

.foto-overlay h4 {
    font-family: var(--font-sans);
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
}

/* SECCIÓN TESTIMONIOS */
.testimonios-filters {
    display: flex;
    gap: 0.6rem;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.testimonios-filter {
    padding: 0.55rem 1.35rem;
    border-radius: 9999px;
    border: 1px solid var(--border-subtle);
    background: #ffffff;
    color: var(--navy-slate);
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.testimonios-filter:hover {
    border-color: var(--navy-dark);
}

.testimonios-filter.is-active {
    background: var(--navy-dark);
    color: #ffffff;
    border-color: var(--navy-dark);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
}

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

.testimonio-card {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.03);
    transition: transform 0.3s var(--ease-smooth), border-color 0.3s ease;
}

.testimonio-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-highlight);
}

.testimonio-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.testimonio-badge {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    background: var(--gold-light);
    color: var(--gold-hover);
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    border: 1px solid rgba(217, 119, 6, 0.2);
}

.testimonio-anio {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 600;
}

.testimonio-texto {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-style: italic;
    color: var(--navy-dark);
    line-height: 1.65;
    margin-bottom: 1.5rem;
}

.testimonio-nombre {
    font-family: var(--font-sans);
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--navy-dark);
}

.testimonio-relacion {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.testimonios-empty {
    text-align: center;
    color: var(--text-muted);
    font-size: 1rem;
    padding: 2rem 0;
}

.testimonios-more-wrap {
    text-align: center;
    margin-top: 2rem;
}

/* Testimonios Form Card */
.testimonios-form-card {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    padding: 3rem;
    margin-top: 4rem;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.04);
}

.testimonios-form-card h3 {
    font-family: var(--font-sans);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--navy-dark);
    margin-bottom: 0.5rem;
}

.testimonios-form-note {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.testimonios-form .form-row {
    margin-bottom: 1.25rem;
}

.testimonios-form label {
    display: block;
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--navy-dark);
    margin-bottom: 0.4rem;
}

.testimonios-form input[type="text"],
.testimonios-form select,
.testimonios-form textarea {
    width: 100%;
    background: var(--bg-body);
    border: 1px solid var(--border-subtle);
    padding: 0.8rem 1rem;
    border-radius: 10px;
    font-family: var(--font-sans);
    font-size: 0.92rem;
    color: var(--navy-dark);
    outline: none;
    transition: border-color 0.2s ease;
}

.testimonios-form input[type="text"]:focus,
.testimonios-form select:focus,
.testimonios-form textarea:focus {
    border-color: var(--gold);
    background: #ffffff;
}

.form-row--split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-hint {
    display: block;
    text-align: right;
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

.honey-field {
    display: none !important;
}

.testimonios-form-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 1.75rem;
}

.testimonios-status {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--gold-hover);
    font-weight: 600;
}

/* Servicios Grid */
.servicios-grid-inst {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-inst-card {
    position: relative;
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 2.5rem;
    transition: transform 0.3s var(--ease-smooth), border-color 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.service-inst-card:hover {
    border-color: var(--border-highlight);
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.05);
}

.service-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--bg-panel);
    color: var(--navy-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-circle i {
    width: 24px;
    height: 24px;
}

.icon-gold {
    background: var(--gold-light);
    color: var(--gold);
}

.age-pill {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.75rem;
    border-radius: 9999px;
    background: var(--bg-panel);
    color: var(--text-muted);
}

.pill-gold {
    background: var(--gold-light);
    color: var(--gold-hover);
}

.service-inst-card h3 {
    font-family: var(--font-sans);
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.service-inst-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.service-bullets {
    list-style: none;
    margin-bottom: 2rem;
}

.service-bullets li {
    font-size: 0.85rem;
    color: var(--navy-slate);
    margin-bottom: 0.4rem;
    position: relative;
    padding-left: 1.25rem;
}

.service-bullets li::before {
    content: "•";
    color: var(--gold);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--navy-dark);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: gap 0.2s ease, color 0.2s ease;
}

.service-link i {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.service-link:hover {
    color: var(--gold);
    gap: 0.75rem;
}

.featured-service {
    border-color: var(--gold);
    background: #ffffff;
}

/* Calculadora Institucional */
.calc-inst-card {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    padding: 3.5rem;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.04);
    margin-top: 2.5rem;
}

.calc-grid-inst {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3.5rem;
    align-items: flex-start;
}

.form-group-inst {
    margin-bottom: 2rem;
}

.label-inst {
    display: block;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.85rem;
    color: var(--navy-dark);
}

.segment-inst {
    display: flex;
    background: var(--bg-panel);
    padding: 0.3rem;
    border-radius: 12px;
}

.seg-tab {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    background: transparent;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.seg-tab.active {
    background: #ffffff;
    color: var(--navy-dark);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.select-inst {
    width: 100%;
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    padding: 0.85rem 1rem;
    border-radius: 10px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--navy-dark);
    outline: none;
}

.chk-group-inst {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--navy-slate);
    cursor: pointer;
}

.custom-checkbox input { display: none; }

.checkmark {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 1.5px solid var(--border-subtle);
    background: #ffffff;
    transition: all 0.2s ease;
}

.custom-checkbox input:checked + .checkmark {
    background: var(--gold);
    border-color: var(--gold);
}

/* Dedicated Tutoria Notice Box in Calculator */
.tutoria-notice-box {
    background: var(--gold-light);
    border: 1px solid rgba(217, 119, 6, 0.3);
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    margin-top: 1.5rem;
}

.t-notice-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gold-hover);
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

.t-notice-head i {
    width: 18px;
    height: 18px;
}

.tutoria-notice-box p {
    font-size: 0.85rem;
    color: var(--navy-slate);
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.t-notice-link {
    color: var(--gold-hover);
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.2s ease;
}

.t-notice-link:hover {
    transform: translateX(4px);
}

.summary-box {
    background: var(--navy-dark);
    color: #ffffff;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
}

.summary-tag {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--gold);
}

.price-wrap {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.2rem;
    margin: 1rem 0;
}

.currency-symbol {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--gold);
}

.price-val {
    font-family: var(--font-sans);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
}

.price-unit {
    font-size: 0.85rem;
    color: var(--text-light);
}

.price-note {
    font-size: 0.85rem;
    color: var(--text-light);
}

.footnote-inst {
    display: block;
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 1rem;
}

/* Contacto Section */
.contacto-grid-inst {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contact-details-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 2rem;
}

.contact-card-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
}

.c-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--gold-light);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-card-item h4 {
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.contact-card-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.link-inst {
    color: var(--gold);
    text-decoration: none;
    font-weight: 700;
}

.map-container-inst {
    height: 420px;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.06);
}

/* Footer (Idea y Diseño & GetGeneria logo aligned to the FAR RIGHT of the footer buttons) */
.footer-inst {
    background: var(--navy-dark);
    color: #ffffff;
    padding: 3rem 0;
    border-top: 1px solid var(--navy-slate);
}

.footer-flex {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-brand p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 0.35rem;
}

.footer-bottom-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    gap: 2rem !important;
    padding-top: 1.25rem !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.footer-links {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 1.25rem !important;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

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

.footer-credits-inline {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    flex-shrink: 0 !important;
    margin-left: auto !important;
    padding-left: 1.5rem !important;
    border-left: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.credits-label {
    font-size: 0.85rem !important;
    color: var(--text-light) !important;
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    margin-top: 0 !important;
}

.getgeneria-link {
    display: inline-flex !important;
    align-items: center !important;
    text-decoration: none !important;
    line-height: 0 !important;
}

.getgeneria-logo-img {
    height: 75px !important;
    width: auto !important;
    object-fit: contain !important;
    display: block !important;
}

/* ==========================================================================
   COMPREHENSIVE MOBILE RESPONSIVE MEDIA QUERIES (iPhone / Android)
   ========================================================================== */
@media (max-width: 992px) {
    .nav-links { display: none !important; }
    .nav-hamburger { display: flex !important; }

    .hero-grid, .direccion-grid, .calc-grid-inst, .contacto-grid-inst {
        grid-template-columns: 1fr !important;
    }
    
    .fototeca-grid {
        grid-template-columns: 1fr !important;
    }

    .form-row--split {
        grid-template-columns: 1fr !important;
    }
    
    .hero-left-globe-bleed {
        display: none !important;
    }

    .whatsapp-float-btn {
        bottom: 16px;
        left: 16px;
        padding: 0.55rem 0.95rem;
        font-size: 0.78rem;
    }

    .footer-bottom-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 1.25rem !important;
    }

    .footer-credits-inline {
        padding-left: 0 !important;
        border-left: none !important;
        margin-left: 0 !important;
        width: 100% !important;
        justify-content: flex-start !important;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.25rem !important;
    }

    .nav-container {
        padding: 0 1rem !important;
    }

    .logo-img {
        height: 52px !important;
    }

    .navbar-inst.scrolled .logo-img {
        height: 44px !important;
    }

    .nav-actions {
        margin-left: 0 !important;
        gap: 0.4rem !important;
    }

    .btn-nav-ultra-compact {
        padding: 0.22rem 0.5rem !important;
        font-size: 0.68rem !important;
        border-radius: 4px !important;
    }

    .nav-hamburger {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
    }

    .hero-inst {
        padding: 6.5rem 0 3rem 0 !important;
        min-height: auto !important;
    }

    .hero-text-block {
        padding-left: 0 !important;
        width: 100% !important;
    }

    .hero-badge {
        font-size: 0.72rem !important;
        padding: 0.35rem 0.75rem !important;
        white-space: normal !important;
        line-height: 1.3 !important;
        margin-bottom: 1rem !important;
        max-width: 100% !important;
    }

    .hero-title {
        font-size: 2.1rem !important;
        line-height: 1.15 !important;
        margin-bottom: 1rem !important;
        word-break: break-word !important;
    }

    .hero-subtitle {
        font-size: 0.95rem !important;
        line-height: 1.5 !important;
        margin-bottom: 1.75rem !important;
    }

    .hero-ctas {
        flex-direction: column !important;
        width: 100% !important;
        gap: 0.75rem !important;
        margin-bottom: 2rem !important;
    }

    .hero-ctas .btn-inst {
        width: 100% !important;
        justify-content: center !important;
    }

    .hero-stats {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 1rem !important;
        justify-content: space-between !important;
    }

    .stat-box {
        flex: 1;
        min-width: 80px;
    }

    .stat-num {
        font-size: 1.5rem !important;
    }

    .stat-label {
        font-size: 0.72rem !important;
    }

    .stat-divider {
        display: none !important;
    }

    .hero-floating-photo-wrap {
        margin-top: 1.5rem !important;
    }

    .hero-floating-img {
        max-width: 100% !important;
    }

    .tutoria-card-box {
        padding: 2rem 1.25rem !important;
        border-radius: 18px !important;
    }

    .tutoria-title {
        font-size: 1.8rem !important;
    }

    .tutoria-lede {
        font-size: 0.95rem !important;
    }

    .tutoria-btns {
        flex-direction: column !important;
        width: 100% !important;
    }

    .tutoria-btns .btn-inst {
        width: 100% !important;
        justify-content: center !important;
    }

    .calc-inst-card {
        padding: 1.75rem 1.25rem !important;
        border-radius: 18px !important;
    }

    .segment-inst {
        flex-direction: column !important;
    }

    .direccion-img {
        height: 320px !important;
    }

    .credentials-grid {
        grid-template-columns: 1fr !important;
    }
}
