:root {
--color-bg: #fcfdf8;
--color-surface: #ffffff;
--color-surface-soft: #f3f8ec;
--color-primary: #4f11b3;
--color-primary-soft: #d9efd7;
--color-primary-strong: #214d24;
--color-accent-orange: #ff9b2b;
--color-accent-red: #e53935;
--color-accent-blue: #1976d2;
--color-text: #1f2615;
--color-text-muted: #6b7280;
--color-text-body-muted: #5a6b52;
--radius-sm: 0.5rem;
--radius-md: 0.9rem;
--radius-lg: 1.25rem;
--shadow-soft: 0 16px 40px rgba(33, 77, 36, 0.16);
--shadow-card: 0 10px 30px rgba(0, 0, 0, 0.06);
--space-2: 0.5rem;
--space-3: 0.75rem;
--space-4: 1rem;
--space-5: 1.25rem;
--space-6: 1.5rem;
--space-8: 2rem;
--space-10: 2.5rem;
--space-12: 3rem;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: "Poppins", system-ui, sans-serif; background-color: var(--color-bg); color: var(--color-text); line-height: 1.6; overflow-x: hidden; }
.container { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.section { padding-block: var(--space-10); position: relative; }
.section-header { max-width: 620px; }
.section-header-center { text-align: center; margin-inline: auto; }
.section-header-center p { margin-inline: auto; }
.skip-link { position: absolute; left: 0.75rem; top: -3rem; background: #000; color: #fff; padding: 0.4rem 0.8rem; border-radius: 0.35rem; z-index: 100; text-decoration: none; }
.skip-link:focus { top: 0.75rem; }
:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 2px; border-radius: 0.25rem; }
/* --- TOP BAR & HEADER --- */
.top-bar { background: linear-gradient(90deg, var(--color-accent-orange), var(--color-primary)); color: #ffffff; font-size: 0.85rem; }
.top-bar-content { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding-block: 0.55rem; }
.top-bar-right { display: flex; align-items: center; gap: 0.4rem; }
.top-bar-socials { display: flex; align-items: center; gap: 0.35rem; }
.top-bar-socials a { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.7); text-decoration: none; }
.top-bar-socials img { display: block; width: 18px; height: 18px; }
.site-header { position: sticky; top: 0; z-index: 50; background-color: rgba(252, 253, 248, 0.96); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(33, 77, 36, 0.05); transition: box-shadow 0.3s; }
.site-header.scrolled { box-shadow: var(--shadow-card); }
.header-content { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding-block: 0.7rem; }
.logo { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.logo-mark { width: 34px; height: 34px; border-radius: 999px; background: radial-gradient(circle at 20% 20%, var(--color-accent-orange), var(--color-accent-red)); display: flex; align-items: center; justify-content: center; color: #ffffff; font-weight: 700; }
.logo-text-group { display: flex; flex-direction: column; }
.logo-text { font-weight: 700; color: var(--color-primary-strong); }
.logo-tagline { font-size: 0.78rem; color: var(--color-text-body-muted); }
.main-nav > ul { list-style: none; display: flex; gap: 1rem; }
.main-nav a, .nav-link-with-submenu { display: inline-flex; align-items: center; text-decoration: none; font-size: 0.95rem; color: var(--color-text-body-muted); padding: 0.4rem 0.8rem; border-radius: 999px; background: none; border: none; cursor: pointer; transition: all 0.3s; }
.main-nav a:hover, .main-nav a.active, .nav-link-with-submenu:hover { background-color: var(--color-primary-soft); color: var(--color-primary-strong); }
.has-submenu { position: relative; }
.submenu { list-style: none; position: absolute; top: 100%; left: 0; min-width: 180px; margin-top: 0.25rem; background-color: var(--color-surface); border-radius: 0.7rem; box-shadow: var(--shadow-card); padding: 0.35rem 0.4rem; display: none; z-index: 40; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all 0.3s; }
.has-submenu.open > .submenu, .has-submenu:hover > .submenu { display: block; opacity: 1; visibility: visible; transform: translateY(0); }
.submenu li a { display: block; width: 100%; padding: 0.45rem 0.8rem; border-radius: 0.55rem; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.nav-toggle-line { display: block; width: 22px; height: 2px; background-color: var(--color-text); border-radius: 999px; margin-top: 4px; }
/* --- SLIDER PEQUEÑO CON KEN BURNS --- */
.hero-slider { position: relative; height: 60vh; min-height: 450px; overflow: hidden; background: #000; }
.slider { position: relative; width: 100%; height: 100%; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease-in-out; }
.slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1); transition: transform 8s ease-out; }
.slide.active { opacity: 1; z-index: 1; }
.slide.active img { transform: scale(1.05); }
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.3), transparent 50%); pointer-events: none; }
.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 10; background: rgba(255,255,255,0.2); border: 1px solid rgba(255,255,255,0.4); color: #fff; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1rem; transition: all 0.3s; backdrop-filter: blur(4px); opacity: 0; }
.hero-slider:hover .slider-btn { opacity: 1; }
.slider-btn:hover { background: #fff; color: var(--color-primary-strong); }
.slider-btn.prev { left: 1rem; }
.slider-btn.next { right: 1rem; }
.slider-dots { position: absolute; bottom: 1.3rem; left: 50%; transform: translateX(-50%); z-index: 10; display: flex; gap: 0.5rem; }
.dot { width: 10px; height: 10px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.7); background-color: rgba(255, 255, 255, 0.2); cursor: pointer; transition: all 0.3s; padding: 0; }
.dot.active { background-color: #ffffff; width: 24px; }
/* --- BANNERS INTERNOS --- */
.page-banner { position: relative; height: 45vh; min-height: 350px; display: flex; align-items: center; justify-content: center; color: #e21a1a; text-align: center; overflow: hidden; }
.page-banner::before { content: ""; position: absolute; inset: 0; z-index: 1; }
.page-banner-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: zoomBg 20s infinite alternate; }
@keyframes zoomBg { from { transform: scale(1); } to { transform: scale(1.1); } }
.banner-content { position: relative; z-index: 2; max-width: 800px; padding: 0 1rem; }
.banner-kicker { display: inline-block; background: var(--color-accent-orange); color: #fff; padding: 0.3rem 1rem; border-radius: 2rem; font-size: 0.9rem; font-weight: 600; margin-bottom: 1rem; }
.banner-content h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; line-height: 1.1; }
.banner-content p { font-size: 1.1rem; opacity: 0.9; }
/* --- TAGLINE & SECCIONES --- */
.tagline-wrapper { padding-block: var(--space-4); }
.tagline { background-color: var(--color-surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); padding: var(--space-5) var(--space-6); text-align: center; margin-top: -2rem; position: relative; z-index: 20; max-width: 900px; margin-inline: auto; }
.tagline h2 { font-size: 1.6rem; margin-bottom: var(--space-2); color: var(--color-primary-strong); }
.tagline p { max-width: 58ch; margin-inline: auto; color: var(--color-text-body-muted); }
.section-cards { background: linear-gradient(180deg, #edf7f0, #fcfdf8); }
.cards-services { display: grid; grid-template-columns: 1fr; gap: var(--space-4); margin-top: var(--space-5); }
.card-service { width: 100%; perspective: 1000px; height: 280px; cursor: pointer; }
.service-card-box { position: relative; width: 100%; height: 100%; transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275); transform-style: preserve-3d; border-radius: 1.25rem; box-shadow: var(--shadow-card); }
.card-service:hover .service-card-box { transform: rotateY(180deg); }
.service-card-front, .service-card-overlay { position: absolute; inset: 0; backface-visibility: hidden; border-radius: 1.25rem; overflow: hidden; }
.service-card-front { background: #fff; display: flex; flex-direction: column; }
.card-image { height: 170px; }
.card-image img { width: 100%; height: 100%; object-fit: cover; }
.card-front-title { flex: 1; display: flex; align-items: center; justify-content: center; padding: 0.8rem; background: radial-gradient(circle at top, #e0fbf4, #f9fdfb); }
.card-front-title h3 { font-size: 1.05rem; color: var(--color-primary-strong); }
.service-card-overlay { background: linear-gradient(135deg, rgba(33, 77, 36, 0.96), rgba(46, 108, 50, 0.95)); color: #ffffff; transform: rotateY(180deg); display: flex; align-items: center; justify-content: center; padding: 1rem; text-align: center; }
.overlay-content h3 { font-size: 1.05rem; margin-bottom: 0.45rem; color: var(--color-accent-orange); }
.overlay-content p { font-size: 0.86rem; line-height: 1.5; }
/* VIDEO & TESTIMONIOS */
.section-video-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.video-wrapper { margin-top: var(--space-4); width: 100%; display: flex; justify-content: center; }
.video-placeholder { border-radius: 1.25rem; border: 2px dashed rgba(46, 108, 50, 0.55); min-height: 240px; width: min(640px, 100%); display: flex; align-items: center; justify-content: center; color: var(--color-primary-strong); background: linear-gradient(135deg, #f9fafb, #edf7f0); }
.section-testimonios { background: radial-gradient(circle at 0% 0%, #fff4e5, #f3f8ec); }
.testimonios-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-4); margin-top: var(--space-4); }
.testimonio { background-color: var(--color-surface); border-radius: var(--radius-md); padding: var(--space-4); box-shadow: var(--shadow-card); border-left: 4px solid var(--color-primary); }
.testimonio-author { font-weight: 600; color: var(--color-text-body-muted); margin-top: 0.5rem; display: block; }
/* FOOTER & WHATSAPP */
.site-footer { background: radial-gradient(circle at top, var(--color-primary-strong), #34245a); color: var(--color-text); margin-top: var(--space-6); }
.footer-main { display: flex; flex-wrap: wrap; gap: var(--space-6); padding-block: var(--space-8); color: var(--color-text-muted); }
.footer-col { flex: 1 1 210px; }
.footer-brand h3, .footer-col h4 { color: #ffffff; margin-bottom: var(--space-2); }
.footer-col ul { list-style: none; }
.footer-col ul li + li { margin-top: 0.3rem; }
.footer-col ul a { color: var(--color-text-muted); text-decoration: none; }
.footer-col ul a:hover { color: #ffffff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(148, 163, 184, 0.35); padding-block: var(--space-3); }
.footer-bottom-inner { display: flex; flex-direction: column; gap: 0.15rem; align-items: center; text-align: center; color: var(--color-text-muted); font-size: 0.85rem; }
.whatsapp-chat { position: fixed; right: 1.25rem; bottom: 1.25rem; width: 52px; height: 52px; border-radius: 999px; background: #25d366; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.38); display: flex; align-items: center; justify-content: center; z-index: 60; text-decoration: none; transition: transform 0.3s; }
.whatsapp-chat:hover { transform: scale(1.1); }
.whatsapp-chat img { display: block; width: 28px; height: 28px; }
/* ESTILOS ESPECÍFICOS DE PÁGINAS INTERNAS */
.mv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-top: 3rem; }
.mv-card { background: #fff; padding: 3rem; border-radius: 1.5rem; box-shadow: var(--shadow-card); text-align: center; border-top: 5px solid var(--color-primary); }
.mv-vision { border-top-color: var(--color-accent-orange); }
.mv-icon { font-size: 3rem; margin-bottom: 1rem; display: block; }
.calidad-wrapper { background: #fff; border-radius: 1.5rem; box-shadow: var(--shadow-card); overflow: hidden; margin-top: 3rem; display: flex; flex-direction: column; }
@media (min-width: 769px) { .calidad-wrapper { flex-direction: row; } }
.calidad-header { background: var(--color-primary-strong); color: #fff; padding: 3rem; flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.calidad-content { flex: 2; padding: 3rem; }
.calidad-list { list-style: none; }
.calidad-list li { position: relative; padding-left: 1.5rem; margin-bottom: 1rem; color: var(--color-text-body-muted); }
.calidad-list li::before { content: "✓"; position: absolute; left: 0; color: var(--color-primary); font-weight: bold; }
.diagramas-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; margin-top: 3rem; }
.diagrama-card { background: #fff; border-radius: 1.5rem; overflow: hidden; box-shadow: var(--shadow-card); }
.diagrama-image-container img { width: 100%; height: auto; display: block; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 2rem; margin-top: 3rem; }
.team-card { background: #fff; border-radius: 1.5rem; overflow: hidden; box-shadow: var(--shadow-card); transition: transform 0.3s; }
.team-card:hover { transform: translateY(-10px); }
.team-image-wrapper { height: 200px; overflow: hidden; }
.team-image-wrapper img { width: 100%; height: 100%; object-fit: cover; }
.team-info { padding: 1.5rem; text-align: center; }
.team-role { color: var(--color-accent-orange); font-weight: 700; font-size: 0.9rem; text-transform: uppercase; display: block; margin-bottom: 0.5rem; }
.siau-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; }
.siau-card { background: #fff; padding: 3rem; border-radius: 1.5rem; box-shadow: var(--shadow-card); text-align: center; }
.btn-siau { display: inline-block; margin-top: 1.5rem; padding: 1rem 2rem; border-radius: 0.5rem; text-decoration: none; font-weight: 700; color: #fff; transition: transform 0.2s; }
.btn-satisfaction { background: var(--color-primary); }
.btn-pqrs { background: var(--color-accent-blue); }
.btn-siau:hover { transform: scale(1.05); }
.gallery-filters { display: flex; justify-content: center; gap: 0.75rem; margin-bottom: 2rem; flex-wrap: wrap; }
.filter-btn { background: transparent; border: 1px solid var(--color-primary-soft); color: var(--color-text-body-muted); padding: 0.5rem 1.25rem; border-radius: 999px; cursor: pointer; transition: all 0.3s; }
.filter-btn.active, .filter-btn:hover { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.gallery-grid { column-count: 3; column-gap: 1.5rem; }
.gallery-item { break-inside: avoid; margin-bottom: 1.5rem; position: relative; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-card); }
.gallery-item.hidden { display: none; }
.gallery-trigger { width: 100%; border: none; padding: 0; background: none; cursor: zoom-in; }
.gallery-trigger img { width: 100%; height: auto; display: block; transition: transform 0.5s; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(33, 77, 36, 0.9), transparent); opacity: 0; transition: opacity 0.3s; display: flex; flex-direction: column; justify-content: flex-end; padding: 1.5rem; color: #fff; }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 1000; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.3s; padding: 2rem; }
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 90vw; max-height: 80vh; border-radius: var(--radius-sm); }
.lightbox-close { position: absolute; top: 1.5rem; right: 1.5rem; background: rgba(255,255,255,0.1); border: none; color: #fff; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; font-size: 1.5rem; }
.contacto-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--space-8); margin-bottom: var(--space-8); }
.info-cards { display: flex; flex-direction: column; gap: var(--space-4); }
.info-card { display: flex; align-items: flex-start; gap: var(--space-4); background: var(--color-surface); padding: var(--space-5); border-radius: var(--radius-md); box-shadow: var(--shadow-card); }
.info-icon { font-size: 1.8rem; background: var(--color-primary-soft); width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.contact-form { background: var(--color-surface); padding: var(--space-6); border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); }
.form-group { margin-bottom: var(--space-4); }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 0.8rem; border: 1px solid #e5e7eb; border-radius: var(--radius-sm); font-family: inherit; }
.btn-submit { width: 100%; background: var(--color-primary); color: #fff; border: none; padding: 1rem; border-radius: var(--radius-sm); font-weight: 600; cursor: pointer; transition: background 0.3s; }
.btn-submit:hover { background: var(--color-primary-strong); }
.mapa-container iframe { border-radius: var(--radius-lg); box-shadow: var(--shadow-card); width: 100%; height: 450px; border: none; }
/* SERVICIOS GRID ESPECIAL */
.services-custom-layout { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); align-items: stretch; }
.card-1 { grid-column: 1; grid-row: 1; }
.card-2 { grid-column: 2; grid-row: 1; }
.card-3 { grid-column: 3; grid-row: 1; }
.card-4 { grid-column: 1; grid-row: 2; }
.card-5 { grid-column: 2; grid-row: 2; }
.interactive-service-box { position: relative; height: 290px; border-radius: 1.25rem; overflow: hidden; box-shadow: var(--shadow-card); background-color: var(--color-surface); perspective: 1200px; }
.interactive-service-front { height: 100%; display: flex; flex-direction: column; background: #fff; transform-style: preserve-3d; }
.service-image-wrapper { position: relative; height: 200px; overflow: hidden; }
.service-image-wrapper img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.45s ease; }
.interactive-icon-circle { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 66px; height: 66px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; color: #ffffff; border: 4px solid rgba(255, 255, 255, 0.95); box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18); z-index: 2; }
.psicologia-icon { background: #76b82a; } .psiquiatria-icon { background: #8b5fbf; } .nutricion-icon { background: #f28a1c; } .medicina-icon { background: #1976d2; } .sustancias-icon { background: #18a999; }
.service-front-title { flex: 1; display: flex; align-items: center; justify-content: center; padding: 1rem; text-align: center; background: linear-gradient(180deg, #ffffff, #f9fcf7); }
.service-front-title h3 { font-size: 1.05rem; line-height: 1.25; color: var(--color-primary-strong); max-width: 18ch; }
.interactive-service-overlay { position: absolute; inset: 0; color: #ffffff; display: flex; align-items: center; justify-content: center; text-align: center; padding: 1.1rem; opacity: 0; transform: rotateY(90deg) scale(0.95); transform-origin: center; transition: opacity 0.45s ease, transform 0.45s ease; }
.interactive-service-box:hover .interactive-service-overlay { opacity: 1; transform: rotateY(0deg) scale(1); }
.interactive-service-box:hover .service-image-wrapper img { transform: scale(1.06); }
.overlay-content h3 { font-size: 1.08rem; margin-bottom: 0.55rem; }
.overlay-content p { font-size: 0.92rem; line-height: 1.6; }
.psicologia-overlay { background: linear-gradient(135deg, rgba(92, 150, 36, 0.96), rgba(52, 96, 20, 0.96)); }
.psiquiatria-overlay { background: linear-gradient(135deg, rgba(112, 66, 167, 0.97), rgba(78, 43, 120, 0.97)); }
.nutricion-overlay { background: linear-gradient(135deg, rgba(242, 138, 28, 0.97), rgba(187, 99, 6, 0.97)); }
.medicina-overlay { background: linear-gradient(135deg, rgba(25, 118, 210, 0.97), rgba(16, 76, 136, 0.97)); }
.sustancias-overlay { background: linear-gradient(135deg, rgba(22, 151, 134, 0.97), rgba(12, 103, 91, 0.97)); }
.services-image-fill { grid-column: 3; grid-row: 2; display: flex; align-items: center; justify-content: center; min-height: 290px; padding: 0.5rem; }
.services-image-fill img { max-width: 100%; max-height: 290px; width: auto; height: auto; object-fit: contain; display: block; filter: drop-shadow(0 16px 28px rgba(33, 77, 36, 0.12)); }
.internacion-box { margin-top: var(--space-8); display: flex; align-items: center; gap: 1.5rem; background: linear-gradient(135deg, #ffffff, #f6fbf4); border: 1px solid rgba(46, 108, 50, 0.16); border-radius: 1.4rem; padding: 1.6rem 1.8rem; box-shadow: var(--shadow-card); }
.internacion-box-full { width: 100%; }
.internacion-icon { width: 88px; height: 88px; border-radius: 1.2rem; display: flex; align-items: center; justify-content: center; background: var(--color-primary-soft); color: var(--color-primary-strong); font-size: 2.2rem; flex-shrink: 0; }
.internacion-content { flex: 1; }
.internacion-content h3 { font-size: 1.45rem; color: var(--color-primary-strong); margin-bottom: 0.45rem; }
.internacion-content p { color: var(--color-text-body-muted); max-width: none; }
.servicios-values { margin-top: var(--space-6); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; background-color: #f8f7f1; border-radius: 1.25rem; padding: 1.25rem; box-shadow: var(--shadow-card); }
.servicio-value { display: flex; align-items: center; gap: 0.85rem; padding: 0.35rem 0.15rem; }
.servicio-value span { width: 44px; height: 44px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: #ffffff; color: var(--color-primary); font-size: 1.2rem; box-shadow: 0 6px 14px rgba(33, 77, 36, 0.08); flex-shrink: 0; }
.servicio-value p { color: var(--color-primary-strong); font-weight: 600; line-height: 1.4; }
/* RESPONSIVE */
@media (max-width: 768px) {
.top-bar-content { flex-direction: column; align-items: flex-start; }
.nav-toggle { display: inline-flex; flex-direction: column; }
.main-nav { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid rgba(0,0,0,0.1); opacity: 0; pointer-events: none; transform: scaleY(0.9); transform-origin: top; transition: all 0.2s; }
.main-nav.is-open { opacity: 1; pointer-events: auto; transform: scaleY(1); }
.main-nav > ul { flex-direction: column; padding: 1rem; }
.submenu { position: static; box-shadow: none; background: transparent; padding: 0 0 0 1rem; display: none; }
.has-submenu.open .submenu { display: block; }
.cards-services, .testimonios-grid, .mv-grid, .team-grid, .siau-grid, .contacto-layout, .services-custom-layout { grid-template-columns: 1fr; }
.card-1, .card-2, .card-3, .card-4, .card-5, .services-image-fill { grid-column: auto; grid-row: auto; }
.gallery-grid { column-count: 1; }
.hero-slider { height: 50vh; min-height: 350px; }
.slider-btn { display: none; }
.servicios-values { grid-template-columns: 1fr; }
}
@media (min-width: 769px) {
.cards-services { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.testimonios-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.footer-bottom-inner { flex-direction: row; justify-content: space-between; }
}
/* --- SECCIÓN DE PREGUNTAS FRECUENTES (FAQ) --- */
.faq-section {
  background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
  padding: 4rem 0;
}

.faq-container {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.faq-item.active {
  border-left: 4px solid var(--color-primary);
}

.faq-question {
  width: 100%;
  padding: 1.5rem;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
  transition: all 0.3s;
}

.faq-question:hover {
  background: var(--color-surface-soft);
  color: var(--color-primary-strong);
}

.faq-question[aria-expanded="true"] {
  background: var(--color-primary-soft);
  color: var(--color-primary-strong);
}

.faq-question-text {
  flex: 1;
}

.faq-icon {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--color-primary);
  transition: transform 0.3s ease;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.3s ease;
}

.faq-answer-content {
  padding: 0 1.5rem 1.5rem;
  color: var(--color-text-body-muted);
  line-height: 1.8;
}

.faq-answer-content p {
  margin-bottom: 1rem;
}

.faq-answer-content ul {
  margin: 0.8rem 0;
  padding-left: 1.5rem;
}

.faq-answer-content li {
  margin-bottom: 0.5rem;
}

.faq-answer-content strong {
  color: var(--color-text);
}

.faq-answer-content .highlight-box {
  background: var(--color-surface-soft);
  border-left: 4px solid var(--color-accent-orange);
  padding: 1rem;
  border-radius: 0 0.5rem 0.5rem 0;
  margin-top: 1rem;
}

/* Call to Action después del FAQ */
.faq-cta {
  text-align: center;
  background: linear-gradient(135deg, var(--color-primary-strong), var(--color-primary));
  color: #fff;
  padding: 3rem 2rem;
  border-radius: var(--radius-lg);
  margin-top: 3rem;
  box-shadow: 0 10px 40px rgba(13, 71, 161, 0.3);
}

.faq-cta h3 {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
  color: #fff;
}

.faq-cta p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  opacity: 0.95;
}

.faq-cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-faq-primary,
.btn-faq-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.8rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s;
}

.btn-faq-primary {
  background: #fff;
  color: var(--color-primary-strong);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-faq-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-faq-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-faq-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: #fff;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .faq-question {
    padding: 1.2rem;
    font-size: 0.95rem;
  }
  
  .faq-answer-content {
    padding: 0 1.2rem 1.2rem;
    font-size: 0.95rem;
  }
  
  .faq-cta h3 {
    font-size: 1.5rem;
  }
  
  .faq-cta p {
    font-size: 1rem;
  }
  
  .faq-cta-buttons {
    flex-direction: column;
  }
  
  .btn-faq-primary,
  .btn-faq-secondary {
    width: 100%;
    justify-content: center;
  }
}