@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600&display=swap');
:root {
    --primary: #007bc4;
    --secondary: #00357a;
    --nav: #11537d;
    --navy: #01094e;
    --blue-deep: #11537d;
    --blue-mid: #004aad;
    --blue-brand: #007bc4;
    --ink: #1c2330;
    --paper: #f6f7f9;
    --line: #d9dee5;
    --bubble: #007bc4;
    --faq: rgba(17, 83, 125, 0.92);
}

body.dark {
    --primary: #00357a;
    --secondary: #007bc4;
    --nav: #08024a;
    --navy: #01094e;
    --blue-deep: #11537d;
    --blue-mid: #004aad;
    --blue-brand: #007bc4;
    --ink: #f6f7f9;
    --paper: #222233;
    --line: #4a5160;
    --bubble: #007bc4;
    --faq: rgba(1, 9, 78, 0.92);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--paper);
    color: var(--ink);
}

h1,
h2,
h3,
.switch-slider~label,
nav a {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
}


/* Scrollbar */

::-webkit-scrollbar {
    background-color: var(--navy);
    width: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient( #00357a, #007bc4);
    border-radius: 100px;
}


/*Nav*/

nav {
    background-color: var(--nav);
    height: 90px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    box-sizing: border-box;
    border-radius: 0 0 15px 15px;
    margin-bottom: 10px;
}

nav img {
    display: block;
    height: 75px;
    width: auto;
    filter: invert(1) brightness(1);
}

.nav-links {
    display: flex;
    gap: 8px;
}

nav a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: 8px;
    transition: background-color 0.2s ease, color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.navbar {
    animation: anime 0.5s ease forwards;
}

@keyframes anime {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#dark-mode-toggle {
    height: 50px;
    width: 50px;
    padding: 8px;
    border-radius: 50%;
    background-color: var(--secondary);
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    /* Elimina el borde gris por defecto */
    cursor: pointer;
    /* Añade la mano al pasar el cursor */
}

#dark-mode-toggle svg {
    fill: var(--primary);
    width: 24px;
    /* Asegura que el SVG no se deforme */
    height: 24px;
}

#dark-mode-toggle svg:last-child {
    display: none;
}

.dark #dark-mode-toggle svg:first-child {
    display: none;
}

.dark #dark-mode-toggle svg:last-child {
    display: inline-block;
    /* Evita desalineaciones del flexbox */
}


/*Switch idiomas*/

.tri-state-switch {
    position: relative;
    display: flex;
    background-color: rgba(255, 255, 255, 0.12);
    padding: 4px;
    border-radius: 30px;
    width: 144px;
    user-select: none;
}

.tri-state-switch input[type="radio"] {
    display: none;
}

.tri-state-switch label {
    flex: 1;
    z-index: 2;
    text-align: center;
    padding: 6px 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: color 0.3s ease;
}

.switch-slider {
    position: absolute;
    top: 4px;
    left: 4px;
    height: calc(100% - 8px);
    width: calc((100% - 8px) / 3);
    background-color: var(--blue-brand);
    border-radius: 25px;
    z-index: 1;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#lang-en:checked~label[for="lang-en"],
#lang-es:checked~label[for="lang-es"],
#lang-fr:checked~label[for="lang-fr"],
.tri-state-switch label.selected {
    color: #ffffff;
}

#lang-en:checked~.switch-slider {
    transform: translateX(0);
}

#lang-es:checked~.switch-slider {
    transform: translateX(100%);
}

#lang-fr:checked~.switch-slider {
    transform: translateX(200%);
}

#menu-accesibility {
    position: fixed;
    bottom: 20px;
    right: 20px;
    /* Cambiado de left a right */
    background-color: var(--nav);
    color: white;
    border: none;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
}


/*Imagenes*/

main {
    padding: 0;
}

.hero {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    height: 440px;
    overflow: hidden;
    border-radius: 0 0 28px 28px;
    box-shadow: 0 20px 50px rgba(1, 9, 78, 0.25);
}

.hero .img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    filter: saturate(0.85) brightness(0.85);
    transform: scale(1.03);
    transition: transform 8s ease;
}

.hero:hover .img {
    transform: scale(1.1);
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, rgba(1, 9, 78, 0.78) 0%, rgba(1, 9, 78, 0.35) 45%, rgba(1, 9, 78, 0.55) 100%);
}

.photo-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 8px;
    padding: 0 60px;
    background: none;
    width: auto;
    transform: none;
    top: auto;
    z-index: 5;
    animation: hero-in 0.8s ease forwards;
    opacity: 0;
}

@keyframes hero-in {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.photo-overlay h2 {
    margin: 0;
    color: white;
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.15;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.photo-overlay h2:last-child {
    color: #bcd9ec;
    background: linear-gradient(90deg, #bcd9ec, #7fb8e0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}


/*Contenido*/

.content {
    max-width: 960px;
    margin: 0 auto;
    padding: 70px 30px 20px;
    text-align: center;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px 26px;
}

.content h1,
.content>p {
    grid-column: 1 / -1;
}

.content h1 {
    position: relative;
    display: inline-block;
    font-size: 2.3rem;
    font-weight: 700;
    margin: 0 auto 20px;
    padding-bottom: 16px;
}

.content h1::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 64px;
    height: 4px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--blue-brand), var(--nav));
}

.content>p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--ink);
    max-width: 680px;
    margin: 0 auto 40px;
    opacity: 0.85;
}

.info {
    grid-column: span 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    text-align: left;
    background: linear-gradient(165deg, var(--line) 0%, var(--paper) 100%);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 34px 30px;
    margin-bottom: 0;
    box-shadow: 0 14px 34px rgba(1, 9, 78, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.info:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 46px rgba(1, 9, 78, 0.14);
}

.info-icon {
    order: -1;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--blue-brand), var(--nav));
    color: white;
    margin-bottom: 10px;
    flex-shrink: 0;
}

.info-icon svg {
    width: 26px;
    height: 26px;
}

.info h2 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    background: none;
    color: var(--ink);
    padding: 0;
    display: block;
    text-align: left;
}

#info-block1,
#info-block2 {
    color: var(--ink);
    background-color: transparent;
    padding: 0;
    margin-bottom: 0;
    text-align: left;
    font-size: 0.95rem;
    line-height: 1.7;
    display: block;
    opacity: 0.85;
}

.info:nth-of-type(2) h2 {
    order: -1;
}

.info:nth-of-type(2) #info-block2 {
    order: 0;
}


/* Contenedor principal */

.contact-bubble-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 400px;
    margin: 0 auto;
    font-family: "Courier New", Courier, monospace;
}


/* Estilo base de cada tarjeta */

.contact-card {
    display: flex;
    align-items: center;
    padding: 36px 32px;
    border-radius: 28px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    border: 1px solid transparent;
    background-color: var(--line);
    box-shadow: 0 24px 60px rgba(8, 18, 45, 0.1);
}

.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}


/* Variación de colores según la tarjeta */

.contact-card-whatsapp {
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.14), rgba(37, 211, 102, 0.04));
    border-color: rgba(37, 211, 102, 0.35);
    color: var(--ink);
}

.contact-card-email {
    background: linear-gradient(135deg, rgba(216, 24, 24, 0.12), rgba(216, 24, 24, 0.03));
    border-color: rgba(216, 24, 24, 0.3);
    color: var(--ink);
}


/* Área del Ícono */

.contact-icon {
    width: 52px;
    height: 52px;
    margin-right: 16px;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon.whatsapp {
    background: rgba(37, 211, 102, 0.16);
}

.contact-icon.whatsapp svg {
    width: 32px;
    height: 32px;
    fill: #25d366;
}

.contact-icon.email {
    background: rgba(216, 24, 24, 0.14);
}

.contact-icon.email svg {
    width: 22px;
    height: 22px;
    stroke: #d81818;
}


/* Contenido de texto */

.contact-info {
    display: flex;
    flex-direction: column;
}

.contact-quick-actions .contact-vias {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.2;
}

.contact-quick-actions .contact-detail {
    font-size: 0.82rem;
    font-weight: 600;
    margin-top: 2px;
    color: var(--ink);
    opacity: 0.75;
    text-transform: none;
    letter-spacing: 0;
}

.contact-vias {
    font-size: 1.8rem;
    font-weight: bold;
    line-height: 1.1;
}

.contact-detail {
    font-size: 0.95rem;
    font-weight: 600;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contactModal {
    max-width: 480px;
    margin: 0 auto;
    text-align: left;
}


/* Modal heredado para las versiones antiguas del inicio. El modal de servicios
   usa .services-modal-overlay para mantener ambos componentes aislados. */

.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(5, 25, 45, 0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 1000;
}

.modal-overlay.hidden {
    display: none;
}

.modal-content {
    position: relative;
    width: min(520px, 100%);
    background-color: var(--line);
    border-radius: 24px;
    padding: 32px 28px 28px;
    box-shadow: 0 28px 60px rgba(12, 34, 80, 0.22);
}

.modal-overlay .modal-content {
    max-height: calc(100vh - 80px);
    overflow-y: auto;
}

.modal-content h2 {
    margin: 0 0 24px;
    font-size: clamp(1.55rem, 2vw, 2rem);
    letter-spacing: -0.03em;
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 12px;
    background: rgba(17, 83, 125, 0.1);
    color: var(--ink);
    font-size: 1.2rem;
    cursor: pointer;
    display: grid;
    place-items: center;
}

.modal-close:hover,
.modal-close:focus {
    background: rgba(0, 123, 196, 0.15);
    color: var(--nav);
}

.contact-panel {
    width: min(760px, 100%);
    margin: 50px auto 64px;
    padding: 24px;
}

.contact-quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 26px;
}

@media (max-width: 560px) {
    .contact-quick-actions {
        grid-template-columns: 1fr;
    }
    .contact-panel {
        margin-top: 30px;
        padding: 16px;
    }
}

.contact-quick-actions .contact-card {
    padding: 20px 22px;
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(8, 18, 45, 0.08);
}

.form-card {
    background-color: var(--line);
    border-radius: 28px;
    padding: 36px 32px;
    box-shadow: 0 24px 60px rgba(8, 18, 45, 0.1);
}

.form-card h1,
.form-card h2 {
    margin-top: 0;
    margin-bottom: 24px;
    font-size: clamp(1.8rem, 2.4vw, 2.4rem);
}

#contactForm,
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field label {
    color: var(--ink);
    font-size: 0.95rem;
    font-weight: 600;
}

.field input,
.field textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 14px 16px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--ink);
    background-color: var(--paper);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input::placeholder,
.field textarea::placeholder {
    color: #7c8aa2;
}

.field input:focus,
.field textarea:focus {
    border-color: var(--blue-brand);
    box-shadow: 0 0 0 4px rgba(0, 123, 196, 0.12);
}

.field textarea {
    min-height: 160px;
    resize: none;
    line-height: 1.6;
    overflow: hidden;
}

.modal-submit,
.modal-submit {
    width: 100%;
    border: none;
    border-radius: 16px;
    padding: 16px 18px;
    background: linear-gradient(135deg, var(--blue-brand), var(--nav));
    color: #f6f6f6;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease;
}

.modal-submit:hover {
    transform: translateY(-1px);
    background-color: var(--nav);
}

.modal-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.success-msg {
    display: none;
    text-align: center;
    gap: 14px;
    padding: 22px 16px;
    border-radius: 18px;
    background: rgba(92, 191, 147, 0.16);
    color: var(--ink);
}

.success-msg p {
    margin: 0;
}

.success-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}


/*Footer*/

footer {
    background-color: var(--navy);
    height: auto;
    padding: 28px 40px;
    color: white;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    font-size: 0.85rem;
    margin-top: 0;
    flex-wrap: wrap;
}

footer div {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

footer img {
    display: block;
    height: 75px;
    width: auto;
    filter: invert(0) brightness(2) contrast(1.2);
}

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

footer a:hover {
    color: white;
}

.labsol-logo {
    height: 75px;
    width: auto;
    filter: invert(0) brightness(2) contrast(1.2);
}

.gpl-logo {
    height: 75px;
    width: auto;
    filter: invert(0) brightness(2) contrast(1.2);
}

.olas {
    width: 100%;
    height: auto;
    display: block;
    margin: 40px 0 0;
    max-height: 280px;
}

#faq-widget-root {
    --charcoal: #528ec2b3;
    --charcoal-soft: #50a7f8a5;
    --concrete: #ffffffa2;
    --paper: #ffffff;
    --safety-yellow: #ffffffc7;
    --safety-orange: #003459;
    --line: #d8d5cc;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 999999;
}

#axol {
    filter: invert(1);
}

#faq-widget-root * {
    box-sizing: border-box;
}

.faq-display {
    font-family: 'Oswald', 'Arial Narrow', sans-serif;
}

#faq-launcher {
    position: relative;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--bubble);
    color: #ffffff;
    border: 2px solid rgba(119, 57, 234, 0.5);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.25), 0 8px 20px rgba(1, 9, 78, 0.35);
    animation: bubble-float 3.5s ease-in-out infinite;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

#faq-launcher::after {
    content: "";
    position: absolute;
    top: 10px;
    left: 16px;
    width: 12px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    pointer-events: none;
}

#faq-launcher:hover {
    transform: translateY(-3px);
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.3), 0 12px 26px rgba(1, 9, 78, 0.4);
}

#faq-launcher:focus-visible {
    outline: 3px solid var(--safety-yellow);
    outline-offset: 3px;
}

@keyframes bubble-float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
    100% {
        transform: translateY(0);
    }
}

#faq-panel {
    position: absolute;
    bottom: 74px;
    right: 0;
    width: 360px;
    max-width: calc(100vw - 40px);
    height: 520px;
    max-height: calc(100vh - 120px);
    background: rgba(185, 200, 237, 0.51);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

#faq-panel.open {
    display: flex;
}

.faq-header {
    background: var(--faq);
    color: var(--paper);
    padding: 16px 18px 14px;
}

.faq-header-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-top: 12px;
}

.faq-eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.08em;
    color: var(--safety-yellow);
    margin: 0 0 4px;
}

.faq-header h2 {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: 20px;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    margin: 0;
    color: var(--paper);
}

#faq-close {
    background: none;
    border: none;
    color: var(--concrete);
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
}

#faq-close:hover {
    color: var(--paper);
    background: rgba(255, 255, 255, 0.08);
}

.faq-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.faq-clear-btn {
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    color: var(--paper);
    border-radius: 12px;
    padding: 8px 12px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.faq-clear-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.5);
}

.faq-status {
    font-size: 12px;
    color: var(--concrete);
    margin: 10px 0 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.faq-status .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4caf6d;
    display: inline-block;
    box-shadow: 0 0 0 3px rgba(76, 175, 109, 0.2);
}

.faq-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: transparent;
}

.faq-msg {
    max-width: 84%;
    padding: 10px 13px;
    border-radius: 10px;
    font-size: 13.5px;
    line-height: 1.45;
}

.faq-msg.bot {
    background: rgba(255, 255, 255, 0.65);
    border-left: 3px solid var(--safety-yellow);
    align-self: flex-start;
    color: var(--safety-orange);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.faq-msg.user {
    background: var(--charcoal);
    color: var(--paper);
    align-self: flex-end;
}

.faq-msg.faq-typing {
    color: var(--concrete);
    font-style: italic;
}

.faq-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 14px 12px;
    background: transparent;
}

.faq-chip {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    background: rgba(207, 232, 248, 0.88);
    border: 1px solid var(--line);
    color: var(--ink);
    padding: 6px 10px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.12s ease;
    white-space: nowrap;
}

.faq-chip:hover {
    border-color: #7739ea;
    color: #5b24bf;
}

.faq-input-row {
    display: flex;
    gap: 8px;
    padding: 12px 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.55);
}

#faq-input {
    flex: 1;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13.5px;
    font-family: inherit;
    outline: none;
}

#faq-input:focus {
    border-color: var(--safety-orange);
}

.faq-input-row button {
    background: var(--safety-yellow);
    border: none;
    color: var(--charcoal);
    width: 40px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-input-row button:hover {
    background: var(--safety-orange);
    color: #fff;
}

@media (max-width: 420px) {
    #faq-panel {
        width: calc(100vw - 24px);
        right: -8px;
    }
}

@keyframes bubble-float-subtle {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
    100% {
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    #faq-launcher {
        transition: none;
        animation: bubble-float-subtle 3s ease-in-out infinite;
    }
}


/* ==== Responsive / Móvil ==== */

@media (max-width: 900px) {
    nav {
        flex-wrap: wrap;
        height: auto;
        row-gap: 12px;
        padding: 16px 20px;
    }
    nav img {
        height: 55px;
    }
    .nav-links {
        order: 3;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 4px;
    }
    nav a {
        padding: 6px 10px;
        font-size: 13px;
    }
    .tri-state-switch {
        width: 126px;
    }
    .hero {
        height: 260px;
        border-radius: 0 0 20px 20px;
    }
    .photo-overlay {
        padding: 0 24px;
    }
    .photo-overlay h2 {
        font-size: 1.5rem;
    }
    .content {
        padding: 40px 20px 10px;
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .content h1 {
        font-size: 1.7rem;
    }
    .info {
        padding: 26px 22px;
    }
    footer {
        gap: 12px;
        padding: 24px 20px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    nav img {
        height: 44px;
    }
    .nav-links {
        gap: 2px;
    }
    nav a {
        padding: 5px 8px;
        font-size: 12px;
    }
    .tri-state-switch {
        width: 108px;
    }
    .tri-state-switch label {
        font-size: 10px;
        padding: 5px 0;
    }
    #dark-mode-toggle {
        height: 40px;
        width: 40px;
    }
    .hero {
        height: 200px;
    }
    .photo-overlay h2 {
        font-size: 1.15rem;
    }
}


/* ================================
   Services Page
   ================================ */

.services-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 10px 0 40px;
}


/* Bloque base: mismo patrón grid que .info, con más aire */

.services-block {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 24px;
    align-items: stretch;
    margin: 24px 20px;
}

.services-text {
    background-color: var(--line);
    color: var(--ink);
    padding: 32px 28px;
    border-radius: 14px;
}

.services-text h2 {
    margin: 0 0 4px;
    font-size: 1.6rem;
}

.services-text h3 {
    /* Corregido: la clase original decía ".service-text" (sin "s"),
       por lo que esta regla nunca coincidía con ".services-text". */
    margin: 0 0 4px;
    font-size: 1.6rem;
    color: #0084ff;
}

.services-text ul {
    margin: 12px 0 0;
    padding-left: 18px;
    line-height: 1.8;
    font-weight: 600;
}

.services-text p {
    line-height: 1.7;
    font-size: 0.95rem;
}

.services-card {
    position: relative;
    overflow: hidden;
    background-color: var(--blue-deep);
    background-image: linear-gradient(180deg, var(--blue-deep) 0%, var(--navy) 100%);
    color: white;
    padding: 32px 28px;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 14px;
    text-align: center;
}

.services-card>* {
    position: relative;
    z-index: 1;
}

.services-card h3 {
    margin: 0;
    font-size: 1.3rem;
}

.services-card .icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
}

.services-card p {
    margin: 0;
    font-weight: 700;
    font-size: 1.1rem;
}

.services-card .wave-decor {
    height: 40px;
}

.services-card .wave-decor .wave-front {
    margin-top: -40px;
}


/* Inversión de orden para la sección "flip" — mismo truco que .info:nth-of-type(2) */

.services-block.flip .services-card {
    order: 1;
}

.services-block.flip .services-text {
    order: 2;
}

.go-to-view {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    padding-bottom: 2px;
    width: fit-content;
    transition: border-color 0.2s ease;
}

.go-to-view:hover {
    border-color: #ffffff;
}


/* Sección 3 — lista con axolote de fondo, inspirada en .hero */


/* Modal de detalles de servicios. Tiene nombres propios para no interferir
   con el modal de contacto. */

.services-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(1, 9, 78, 0.55);
    display: none;
    /* oculto por defecto, igual que tu #faq-panel */
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.services-modal-overlay.open {
    display: flex;
    /* el JS agrega esta clase para mostrarlo */
}

.modal-box {
    position: relative;
    overflow: hidden;
    background: var(--navy);
    color: #f6f7f9;
    border-radius: 14px;
    max-width: 520px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 36px 32px;
    animation: modal-in 0.25s ease;
}

@keyframes modal-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.services-modal-close {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--primary);
    border: none;
    border-radius: 12px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    color: var(--paper);
    z-index: 10;
}

.modal-box::after {
    content: "";
    position: absolute;
    right: -30px;
    bottom: -20px;
    width: 220px;
    height: 220px;
    background: url('recursos/axolotl.png') no-repeat center / contain;
    opacity: 0.08;
    z-index: 0;
    pointer-events: none;
}

.modal-box>*:not(.services-modal-close) {
    position: relative;
    z-index: 1;
}

#modal-content h2 {
    margin: 0 0 4px;
    padding: 0 24px 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

#modal-content p {
    line-height: 1.7;
    font-size: 0.95rem;
    margin: 16px 0;
}

#modal-content ul {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

#modal-content ul li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    font-weight: 500;
}

.modal-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 123, 196, 0.18);
    color: var(--blue-brand);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-footer {
    margin-top: 28px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.modal-price-card {
    background: linear-gradient(145deg, var(--blue-brand), var(--secondary));
    border-radius: 12px;
    padding: 20px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.modal-price-label {
    font-weight: 600;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

.modal-price-value {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: #ffffff;
}

.modal-price-unit {
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    margin-left: 2px;
}

.modal-offer {
    margin-top: 16px;
    padding: 16px 18px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.modal-offer-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--blue-brand);
    background: rgba(0, 123, 196, 0.15);
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 8px;
}

.modal-offer p {
    margin: 0;
}

.modal-check-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-check-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
}

.modal-check-list .modal-icon {
    width: 24px;
    height: 24px;
    background: rgba(76, 175, 109, 0.18);
    color: #4caf6d;
}

.services-list {
    position: relative;
    overflow: hidden;
    background-color: var(--navy);
    background-image: linear-gradient(180deg, var(--navy) 0%, #030b5c 100%);
    color: white;
    margin: 24px 20px;
    padding: 40px 44px 70px;
    border-radius: 14px;
}

.services-list::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,60 C150,110 350,10 600,60 C850,110 1050,10 1200,60 L1200,0 L0,0 Z' fill='%23ffffff' opacity='0.03'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-size: 700px 100%;
    z-index: 0;
    pointer-events: none;
}

.wave-decor {
    position: absolute;
    left: -20%;
    right: -20%;
    bottom: 0;
    width: 140%;
    height: 60px;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.wave-decor svg {
    width: 100%;
    height: 100%;
    display: block;
}

.wave-decor .wave-back {
    opacity: 0.12;
    animation: wave-move 12s ease-in-out infinite alternate;
}

.wave-decor .wave-front {
    opacity: 0.22;
    margin-top: -60px;
    animation: wave-move 8s ease-in-out infinite alternate;
}

@keyframes wave-move {
    from {
        transform: translateX(-15px);
    }
    to {
        transform: translateX(15px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .wave-decor .wave-back,
    .wave-decor .wave-front {
        animation: none;
    }
}

.services-list::after {
    content: "";
    position: absolute;
    right: -40px;
    bottom: -30px;
    width: 380px;
    height: 280px;
    background: url('recursos/axolotl.png') no-repeat center / contain;
    opacity: 0.12;
    z-index: 0;
    pointer-events: none;
}

.services-list p {
    position: relative;
    z-index: 1;
    font-weight: 600;
    font-size: 1.05rem;
    margin: 18px 0;
}

.services-list h2 {
    position: relative;
    z-index: 1;
    margin: 0 0 6px;
    font-size: 1.7rem;
}


/* ================================
   About Us Page
   ================================ */

main .content {
    padding-bottom: 20px;
}

.about-wave {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    margin: 16px 20px 40px;
    padding: 56px 48px 90px;
    border-radius: 24px;
    color: #ffffff;
    box-shadow: 0 24px 60px rgba(1, 9, 78, 0.25);
}

.about-wave-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.about-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}

.about-block {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.about-block-offset {
    margin-top: 56px;
}

.about-photo {
    position: relative;
    height: 220px;
    border-radius: 18px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 22px;
    box-shadow: 0 16px 34px rgba(1, 9, 78, 0.35);
}

.about-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(1, 9, 78, 0) 35%, rgba(1, 9, 78, 0.78) 100%);
}

.about-photo h2 {
    position: relative;
    z-index: 1;
    margin: 0;
    color: #ffffff;
    font-size: 1.9rem;
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.45);
}

.about-photo-mission {
    background-image: url('recursos/about-mission.jpg'), linear-gradient(150deg, var(--blue-brand), var(--navy));
}

.about-photo-vision {
    background-image: url('recursos/about-vision.jpg'), linear-gradient(150deg, var(--blue-deep), var(--navy));
}

.about-textbox {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px) saturate(120%);
    -webkit-backdrop-filter: blur(8px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 16px;
    padding: 22px 24px;
    box-shadow: 0 10px 26px rgba(1, 9, 78, 0.18);
}

.about-textbox p {
    margin: 0;
    line-height: 1.75;
    font-size: 0.95rem;
    color: #ffffff;
}

.about-textbox p::before {
    content: "• ";
}

.about-textbox-wide {
    margin-top: 40px;
    padding: 28px 30px;
}

.about-textbox-wide h2 {
    margin: 0 0 12px;
    font-size: 1.6rem;
}

.about-textbox-wide p {
    margin-bottom: 14px;
}

.about-textbox-wide p:last-child {
    margin-bottom: 0;
}

.about-wave-decor {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 70px;
    z-index: 0;
    pointer-events: none;
}

.about-wave-decor svg {
    width: 100%;
    height: 100%;
    display: block;
}

@media (max-width: 900px) {
    .about-wave {
        margin: 16px 12px 30px;
        padding: 40px 22px 70px;
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .about-block-offset {
        margin-top: 0;
    }
    .about-textbox-wide {
        margin-top: 24px;
    }
}

@media (max-width: 700px) {
    .services-block {
        grid-template-columns: 1fr;
    }
    .services-block.flip .services-card,
    .services-block.flip .services-text {
        order: unset;
    }
    .services-list {
        padding: 30px 24px 60px;
    }
    .services-list::after {
        opacity: 0.08;
        width: 260px;
        height: 200px;
    }
    .wave-decor {
        height: 44px;
    }
    .wave-decor .wave-front {
        margin-top: -44px;
    }
}


/* ================================
   Work Gallery (Examples of Our Work)
   ================================ */

.work-gallery {
    max-width: 1100px;
    margin: 60px auto 40px;
    padding: 0 30px;
}

.work-gallery-header {
    display: flex;
    align-items: center;
    gap: 24px;
    background-color: var(--line);
    color: var(--ink);
    border-radius: 14px;
    padding: 28px 32px;
    margin-bottom: 32px;
    box-shadow: 0 8px 24px rgba(1, 9, 78, 0.08);
}

.work-gallery-axol {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    object-fit: contain;
    animation: bubble-float 3.5s ease-in-out infinite;
}

.work-gallery-copy {
    text-align: left;
}

.work-gallery-header h2 {
    font-size: 1.7rem;
    font-weight: 700;
    margin: 0 0 8px;
}

.work-gallery-header p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--ink);
    max-width: 560px;
    margin: 0;
    opacity: 0.85;
}

@media (max-width: 560px) {
    .work-gallery-header {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    .work-gallery-copy {
        text-align: center;
    }
    .work-gallery-header p {
        max-width: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .work-gallery-axol {
        animation: none;
    }
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 220px;
    gap: 18px;
}

.work-item {
    position: relative;
    margin: 0;
    overflow: hidden;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(1, 9, 78, 0.12);
    grid-row: span 1;
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.work-item.work-item-tall {
    grid-row: span 2;
}

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

.work-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease, filter 0.5s ease;
}

.work-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(1, 9, 78, 0) 40%, rgba(1, 9, 78, 0.85) 100%);
    opacity: 0.7;
    transition: opacity 0.35s ease;
}

.work-item:hover img {
    transform: scale(1.08);
    filter: saturate(1.1);
}

.work-item:hover::after {
    opacity: 0.9;
}

.work-item figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 16px 18px;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    transform: translateY(8px);
    opacity: 0.9;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.work-item:hover figcaption {
    transform: translateY(0);
    opacity: 1;
}


/* Delay escalonado para la entrada al hacer scroll */

.work-grid .work-item:nth-child(1) {
    transition-delay: 0s;
}

.work-grid .work-item:nth-child(2) {
    transition-delay: 0.08s;
}

.work-grid .work-item:nth-child(3) {
    transition-delay: 0.16s;
}

.work-grid .work-item:nth-child(4) {
    transition-delay: 0.24s;
}

.work-grid .work-item:nth-child(5) {
    transition-delay: 0.32s;
}

.work-grid .work-item:nth-child(6) {
    transition-delay: 0.4s;
}

@media (prefers-reduced-motion: reduce) {
    .work-item {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .work-item img {
        transition: none;
    }
    .work-item:hover img {
        transform: none;
    }
}

@media (max-width: 900px) {
    .work-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
    }
}

@media (max-width: 560px) {
    .work-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 240px;
    }
    .work-item.work-item-tall {
        grid-row: span 1;
    }
}


/* ============================================================
   MODAL "ABOUT" — créditos de los desarrolladores
   Usa el mismo overlay/caja que .services-modal-overlay/.modal-box.
   ============================================================ */

#about-btn {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: white;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

#about-btn:hover {
    background-color: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.6);
}

.about-modal-box #about-modal-title {
    margin: 0 0 4px;
    padding: 0 24px 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.about-modal-box>p {
    margin: 16px 0 20px;
    opacity: 0.85;
    font-size: 0.95rem;
}

.about-team {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-member {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 18px 20px;
}

.about-member-name {
    margin: 0 0 2px;
    font-size: 1.1rem;
}

.about-member-role {
    margin: 0 0 12px;
    font-size: 0.85rem;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.about-contacts {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.about-contacts a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #f6f7f9;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 6px 8px;
    border-radius: 6px;
    transition: background-color 0.15s ease;
    word-break: break-word;
}

.about-contacts a:hover,
.about-contacts a:focus-visible {
    background-color: rgba(255, 255, 255, 0.1);
    outline: none;
}

.about-contact-icon {
    flex-shrink: 0;
    width: 24px;
    text-align: center;
}

@media (max-width: 480px) {
    .about-team {
        gap: 14px;
    }
    .about-member {
        padding: 14px 16px;
    }
}