/* ============================================================
   FISCREA — Hoja de Estilos Principal
   Metodología: Mobile First
   Estructura: Fuentes → Variables → Reset → Base →
               Componentes → Secciones → Responsive
============================================================ */


/* ============================================================
   1. FUENTES — Montserrat (self-hosted)
============================================================ */
@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-Thin.woff2') format('woff2');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}


/* ============================================================
   2. VARIABLES CSS
============================================================ */
:root {
    /* Colores */
    --color-primary:      #30AADE;
    --color-primary-dark: #003D61;
    --color-primary-soft: #E8F5FB;
    --color-accent:       #0D9488;
    --color-text:         #374151;
    --color-text-light:   #6B7280;
    --color-bg-soft:      #FBFBFB;
    --color-services-bg:  #EDF1F5;
    --color-white:        #FFFFFF;
    --color-border:       #d9d9d9;
    --color-error:        #DC2626;

    /* Filtros para recolorear SVGs cargados como <img> */
    --filter-primary:      invert(57%) sepia(72%) saturate(438%) hue-rotate(163deg) brightness(96%) contrast(95%);
    --filter-primary-dark: invert(13%) sepia(98%) saturate(749%) hue-rotate(185deg) brightness(91%) contrast(104%);
    --filter-primary-soft: invert(97%) sepia(5%) saturate(870%) hue-rotate(172deg) brightness(103%) contrast(96%);

    /* Border radius */
    --border-radius:      0.5rem;

    /* Espaciado (base 8px) */
    --space-xs:  0.5rem;    /*  8px */
    --space-sm:  1rem;      /* 16px */
    --space-md:  1.5rem;    /* 24px */
    --space-lg:  3rem;      /* 48px */
    --space-xl:  5rem;      /* 80px */
    --space-2xl: 7.5rem;    /* 120px */

    /* Layout */
    --container-max:  1440px;
    --container-pad:  1.25rem;  /* 20px mobile */
    --navbar-height:  64px;

    /* Safe areas (notched phones) */
    --safe-top:    env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-left:   env(safe-area-inset-left, 0px);
    --safe-right:  env(safe-area-inset-right, 0px);
}


/* ============================================================
   3. RESET
============================================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

a,
button,
[role="button"] {
    touch-action: manipulation;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

ul,
ol {
    list-style: none;
}

img,
video {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    font-size: inherit;
}

input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
}


/* ============================================================
   4. BASE
============================================================ */
body {
    font-family: 'Montserrat', system-ui, sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


/* ============================================================
   5. ACCESIBILIDAD — Skip link
============================================================ */
.skip-link {
    position: absolute;
    top: -100%;
    left: var(--container-pad);
    padding: 0.5rem 1rem;
    background-color: var(--color-primary);
    color: var(--color-white);
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: var(--border-radius);
    z-index: 9999;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0.5rem;
}


/* ============================================================
   6. UTILIDADES — Container · Sombras
============================================================ */
.shadow-lg {
    --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);
    --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
    box-shadow: 0 0 #0000, 0 0 #0000, var(--tw-shadow);
}

.shadow-xl {
    --tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);
    --tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.shadow-2xl {
    --tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);
    --tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-pad);
    padding-right: var(--container-pad);
}

.container-fluid {
    width: 100%;
    padding-left: var(--container-pad);
    padding-right: var(--container-pad);
}


/* ============================================================
   7. ENCABEZADO DE SECCIÓN (componente reutilizable)
============================================================ */
.section-header {
    text-align: center;
    margin-bottom: var(--space-lg);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-header__title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin-bottom: 2.625rem;
}

.section-header__subtitle {
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.65;
    color: var(--color-primary-dark);
    opacity: 0.7;
}


/* ============================================================
   8. BOTONES (componente global)
============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 44px;
    padding: 0.75rem 1.75rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s ease,
                border-color     0.2s ease,
                color            0.2s ease,
                transform        0.15s ease;
}

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

.btn--primary:hover {
    background-color: #1e97c8;
    border-color: #1e97c8;
}

.btn--primary:active {
    transform: scale(0.97);
}

.btn--ghost {
    background-color: transparent;
    border-color: var(--color-white);
    color: var(--color-white);
}

.btn--ghost:hover {
    background-color: rgba(255, 255, 255, 0.12);
}

.btn--full {
    width: 100%;
}

.btn__icon {
    flex-shrink: 0;
}


/* ============================================================
   9. NAVBAR
============================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--color-white);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.08);
    padding-top: var(--safe-top);
}

.navbar__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--navbar-height);
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-pad);
    padding-right: var(--container-pad);
}

.navbar__logo-img {
    height: 80px;
    width: auto;
    display: block;
}

/* Menú mobile: oculto por defecto */
.navbar__nav {
    display: none;
    position: absolute;
    top: var(--navbar-height);
    left: 0;
    right: 0;
    background-color: var(--color-white);
    border-top: 1px solid var(--color-border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    padding: 0.5rem 0 1rem;
}

.navbar__nav.is-open {
    display: block;
}

.navbar__links {
    display: flex;
    flex-direction: column;
}

.navbar__link {
    display: block;
    padding: 0.75rem var(--container-pad);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-primary-dark);
    transition: color 0.2s ease;
}

.navbar__link:hover {
    color: var(--color-primary);
}

.navbar__link--cta {
    color: var(--color-primary);
}

/* Botón hamburger — área táctil ≥44×44px */
.navbar__hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    padding: 0;
}

.navbar__hamburger-bar {
    display: block;
    width: 26px;
    height: 2px;
    background-color: var(--color-primary-dark);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hamburger → X al abrir */
.navbar--open .navbar__hamburger-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.navbar--open .navbar__hamburger-bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.navbar--open .navbar__hamburger-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}


/* ============================================================
   10. HERO
============================================================ */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: var(--navbar-height);
    overflow: hidden;
    text-align: center;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

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

.hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    /* background: linear-gradient(
        150deg,
        rgba(0, 61, 97, 0.88) 0%,
        rgba(0, 61, 97, 0.62) 100%
    ); */
    background: linear-gradient(to bottom, hsl(202 100% 19% / .9), hsl(202 100% 19% / .8), hsl(198 79% 48% / .7));
}

.hero__content {
    position: relative;
    z-index: 2;
    padding-top: var(--space-lg);
    padding-bottom: var(--space-2xl);
    max-width: 56rem;
}

.hero__title {
    font-size: 2.5rem;
    font-weight: 800; 
    line-height: 1;
    color: var(--color-white);
    margin-bottom: 1rem;
}

.hero__subtitle {
    font-size: 1.25rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--space-md);
    margin-left: auto;
    margin-right: auto;
}

.hero__actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-sm);
}

.hero__actions .btn {
    width: 100%;
    font-size: 1.15rem;
    max-width: 280px;
    align-self: center;
}

/* Indicador de scroll */
.hero__scroll-indicator {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(255, 255, 255, 0.6);
    animation: scrollBounce 1s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(8px); }
}

/* --- Botón "Ver video institucional" en Quiénes Somos --- */
.about__video-btn {
    margin-top: var(--space-md);
    align-self: flex-start;
}

/* ============================================================
   Modal de video institucional
============================================================ */
.video-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
}

.video-modal[hidden] {
    display: none;
}

.video-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 20, 35, 0.85);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    animation: videoModalFade 0.3s ease;
}

.video-modal__dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1280px;
    margin-top: 3.5rem;
    animation: videoModalScale 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.video-modal__player {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: #000;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

.video-modal__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.video-modal__close {
    position: absolute;
    top: -3.5rem;
    right: 0;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.12);
    color: var(--color-white);
    cursor: pointer;
    transition: transform 0.25s ease, background 0.25s ease;
}

.video-modal__close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.08);
}

.video-modal__close:focus-visible {
    outline: 2px solid var(--color-white);
    outline-offset: 3px;
}

@keyframes videoModalFade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes videoModalScale {
    from { opacity: 0; transform: scale(0.94); }
    to   { opacity: 1; transform: scale(1); }
}

/* Evita el scroll del fondo mientras el modal está abierto */
body.modal-open {
    overflow: hidden;
}

@media (max-width: 640px) {
    .video-modal__close {
        top: 0.5rem;
        right: 0.5rem;
        background: rgba(0, 0, 0, 0.55);
        border-color: rgba(255, 255, 255, 0.3);
    }
}


/* ============================================================
   11. ABOUT (Quiénes Somos)
============================================================ */
.about {
    padding: var(--space-xl) 0;
    background-color: var(--color-bg-soft);
}

.about__grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.about__title {
    font-size: 1.875rem;
    font-weight: 800;
    color: var(--color-primary-dark);
    margin-bottom: var(--space-sm);
}

.about__text {
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.65;
    color: var(--color-primary-dark);
    opacity: 0.8;
    margin-bottom: 0.75rem;
}

.about__text:last-child {
    margin-bottom: 0;
}

.about__text--accent {
    color: var(--color-primary);
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.65;
    opacity: 1;
    margin-bottom: 0;
}

.about__image-wrapper {
    border-radius: var(--border-radius);
    overflow: hidden;
    flex-shrink: 0;
}

.about__image {
    width: 100%;
    height: 260px;
    object-fit: cover;
    object-position: center;
}


/* ============================================================
   12. VALUES (Confianza · Precisión · Experiencia)
============================================================ */
.values__grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
}

.values__card {
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    text-align: center;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.values__card:hover {
    box-shadow: 0 8px 32px rgba(0, 61, 97, 0.10);
    transform: translateY(-3px);
}

.values__card:active {
    transform: scale(0.98);
    box-shadow: 0 4px 16px rgba(0, 61, 97, 0.08);
}

.values__icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    background-color: var(--color-primary-soft);
    border-radius: 50%;
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
}

.values__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin-bottom: 0.5rem;
}

.values__text {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.7;
    color: var(--color-primary-dark);
    opacity: 0.7;
}


/* ============================================================
   13. SERVICES (Nuestros Servicios)
============================================================ */
.services {
    padding: var(--space-xl) 0;
    background-color: var(--color-services-bg);
}

/* Mobile: columna simple */
.services__grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.services__card {
    display: flex;
    flex-direction: column;
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    overflow: hidden;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.services__card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 8px 32px rgba(0, 61, 97, 0.10);
    transform: translateY(-3px);
}

.services__card:active {
    transform: scale(0.98);
    box-shadow: 0 4px 16px rgba(0, 61, 97, 0.08);
}

.services__card-media {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background-color: var(--color-primary-soft);
}

.services__card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.services__card:hover .services__card-img {
    transform: scale(1.05);
}

.services__title {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--color-primary-dark);
    padding: 1.25rem var(--space-md) 0;
}

.services__list {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    padding: 0.875rem var(--space-md) 1.5rem;
}

.services__list-item {
    position: relative;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-primary-dark);
    opacity: 0.8;
    padding-left: 1.125rem;
    line-height: 1.5;
}

.services__list-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 6px;
    height: 6px;
    background-color: var(--color-primary);
    border-radius: 50%;
}


/* ============================================================
   14. PHOTO STRIP
============================================================ */
.photo-strip {
    padding-bottom: var(--space-xl);
}

.photo-strip__grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.photo-strip__item {
    overflow: hidden;
    height: 24rem;
    border-radius: var(--border-radius);
}

.photo-strip__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.5s ease;
}

.photo-strip__item:hover .photo-strip__image {
    transform: scale(1.04);
}


/* ============================================================
   15. TEAM (Nuestro Equipo)
============================================================ */
.team {
    padding: var(--space-xl) 0;
    background-color: var(--color-bg-soft);
}

.team__slider {
    position: relative;
}

.team__card {
    text-align: center;
}

.team__photo-wrapper {
    aspect-ratio: 1 / 1;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: var(--space-sm);
}

.team__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.team__name {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin-bottom: 0.3rem;
}

.team__role {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-primary);
}

/* Swiper: botones de navegación */
.team__btn-prev,
.team__btn-next {
    width: 2.5rem;
    height: 2.5rem;
    background-color: var(--color-white);
    border: 1.5px solid var(--color-primary);
    border-radius: 50%;
    color: var(--color-primary);
    box-shadow: 0 2px 8px rgba(0, 61, 97, 0.12);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.team__btn-prev::after,
.team__btn-next::after {
    font-size: 0.875rem;
    font-weight: 700;
}

.team__btn-prev:hover,
.team__btn-next:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}



/* ============================================================
   16. CONTACT (Contacto)
============================================================ */
.contact {
    padding: var(--space-xl) 0;
    background-color: var(--color-white);
}

.contact__grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    max-width: 990px;
    margin-left: auto;
    margin-right: auto;
}

.contact__col-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin-bottom: var(--space-md);
}

/* Imagen de contacto */
.contact__image-wrapper {
    height: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.contact__image {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 20rem;
    object-fit: cover;
}

/* Formulario */
.contact__form {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.form-field__label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-primary-dark);
}

.form-field__required {
    color: var(--color-primary-dark);
    margin-left: 2px;
}

.form-field__input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem; /* ≥16px previene zoom automático en iOS */
    color: var(--color-text);
    background-color: var(--color-white);
    border: 1.5px solid var(--color-border);
    border-radius: var(--border-radius);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field__input::placeholder {
    color: #858a94;
    font-weight: 500;
}

.form-field__input:focus {
    border-width: 2px;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(48, 170, 222, 0.18);
}

.form-field__input--textarea {
    resize: vertical;
    min-height: 140px;
    line-height: 1.6;
}

.form-field__error {
    font-size: 0.8125rem;
    color: var(--color-error);
    min-height: 1.1em;
}

/* Información de contacto */
.contact__info-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.contact__info-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
}

.contact__info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: var(--color-primary-soft);
    border-radius: var(--border-radius);
    color: var(--color-primary);
    flex-shrink: 0;
}

.contact__info-icon img,
.contact__info-icon svg {
    width: 24px;
    height: 24px;
}

.contact__info-content {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    padding-top: 0.25rem;
}

.contact__info-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-primary-dark);
    letter-spacing: 0.02em;
}

.contact__info-value {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-primary-dark);
    opacity: 0.8;
    transition: color 0.2s ease, opacity 0.2s ease;
}

a.contact__info-value:hover {
    color: var(--color-primary);
    opacity: 1;
}

/* Redes sociales */
.contact__social-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-primary-dark);
    letter-spacing: 0.02em;
    margin-bottom: 0.75rem;
}

.contact__social-list {
    display: flex;
    gap: 0.75rem;
}

.contact__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: var(--color-primary-soft);
    border-radius: var(--border-radius);
    color: var(--color-primary);
    transition: background-color 0.2s ease,
                color            0.2s ease,
                transform        0.2s ease;
}

.contact__social-link svg,
.contact__social-link img {
    width: 20px;
    height: 20px;
}

.contact__social-link img {
    filter: var(--filter-primary-dark);
    transition: filter 0.2s ease;
}

.contact__social-link:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: scale(1.1);
}

.contact__social-link:hover img {
    filter: var(--filter-primary-soft);
}


/* ============================================================
   17. FOOTER
============================================================ */
.footer {
    background-color: var(--color-primary-dark);
    color: var(--color-white);
}

.footer__main {
    padding: var(--space-lg) 0;
}

.footer__grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.footer__brand {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer__logo-link {
    display: inline-block;
}

.footer__logo {
    height: 3rem;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer__tagline {
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.8);
    max-width: 260px;
}

.footer__nav-title {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--color-white);
    margin-bottom: 1rem;
}

.footer__nav-list {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.footer__nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.2s ease;
}

.footer__nav-link:hover {
    color: var(--color-primary);
}

.footer__bottom .container {
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    padding: 1.25rem 0;
}

.footer__copyright {
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.65);
    text-align: center;
}


/* ============================================================
   18. MEDIA QUERIES — Mobile wide (≥400px)
============================================================ */
@media (min-width: 400px) {
    /* (reservado) */
}


/* ============================================================
   19. MEDIA QUERIES — Tablet (≥768px)
============================================================ */
@media (min-width: 768px) {

    :root {
        --navbar-height:  80px;
        --container-pad:  1.5rem;
    }

    /* --- Navbar --- */
    .navbar__hamburger {
        display: none;
    }

    .navbar__nav {
        display: flex;
        position: static;
        background: none;
        border: none;
        box-shadow: none;
        padding: 0;
    }

    .navbar__links {
        flex-direction: row;
        align-items: center;
        gap: 0.25rem;
    }

    .navbar__link {
        padding: 0.5rem 0.875rem;
        font-size: 0.875rem;
    }

    .navbar__link--cta {
        background-color: var(--color-primary);
        color: var(--color-white);
        border-radius: var(--border-radius);
        padding: 0.65rem 1.25rem;
    }

    .navbar__link--cta:hover {
        background-color: #1e97c8;
        color: var(--color-white);
    }

    /* --- Hero --- */
    .hero__title {
        font-size: 3rem;
    }

    .hero__subtitle {
        font-size: 1.25rem;
    }

    .hero__actions {
        flex-direction: row;
        justify-content: center;
        align-items: center;
    }

    .hero__actions .btn {
        width: auto;
        max-width: none;
    }

    /* --- Section headers --- */
    .section-header__title {
        font-size: 2.125rem;
    }

    /* --- About --- */
    .about__grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: center;
        gap: var(--space-lg);
    }

    .about__title {
        font-size: 2.125rem;
    }

    .about__image-wrapper {
        height: 100%;
        min-height: 360px;
    }

    .about__image {
        height: 100%;
        min-height: 360px;
    }

    /* --- Values --- */
    .values__grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }

    /* --- Services: 2 columnas --- */
    .services__grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    /* --- Photo Strip --- */
    .photo-strip__grid {
        flex-direction: row;
    }

    .photo-strip__item {
        flex: 1;
        height: 24rem;
    }

    /* --- Contact: 2 columnas --- */
    .contact__grid {
        display: grid;
        grid-template-columns: 1.1fr 0.9fr;
        align-items: center;
        gap: var(--space-lg);
    }

    /* --- Footer: 3 columnas --- */
    .footer__grid {
        display: grid;
        grid-template-columns: 1.4fr 1fr 1fr;
        gap: var(--space-lg);
    }

    .footer__copyright {
        text-align: center;
    }
}


/* ============================================================
   19. MEDIA QUERIES — Desktop (≥1024px)
============================================================ */
@media (min-width: 1024px) {

    :root {
        --container-pad: 2rem;
    }

    /* --- Hero --- */
    .hero__title {
        font-size: 3.75rem;
    }

    .hero__subtitle {
        font-size: 1.25rem;
    }

    /* --- Section headers --- */
    .section-header__title {
        font-size: 2.5rem;
    }

    /* --- About --- */
    .about__grid {
        gap: 4.5rem;
    }

    .about__title {
        font-size: 2.5rem;
    }

    .about__image-wrapper {
        min-height: 440px;
    }

    .about__image {
        min-height: 440px;
    }

    /* --- Services: 3 columnas --- */
    .services__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* --- Photo Strip --- */
    .photo-strip__item {
        height: 24rem;
    }

    /* --- Team: todos los slides visibles, ocultar controles --- */
    .team__card {
        padding: 0 0.5rem;
    }

    .team__btn-prev,
    .team__btn-next {
        display: none;
    }
}


/* ============================================================
   20. MEDIA QUERIES — Large Desktop (≥1280px)
============================================================ */
@media (min-width: 1280px) {

    .hero__title {
        font-size: 4.5rem;
    }

    .hero__subtitle {
        font-size: 1.5rem;
    }

    .section-header__title {
        font-size: 3rem;
    }

    .about__title {
        font-size: 3rem;
    }

    .photo-strip__item {
        height: 24rem;
    }
}


/* ============================================================
   21. PROYECTOS (página proyectos.html)
============================================================ */

/* Encabezado de página con la identidad del hero */
.page-hero {
    position: relative;
    padding: calc(var(--navbar-height) + var(--space-lg)) 0 var(--space-lg);
    background: linear-gradient(
        to bottom,
        hsl(202 100% 19% / 1),
        hsl(202 100% 19% / .92),
        hsl(198 79% 48% / .85)
    );
    text-align: center;
}

.page-hero__title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: 0.5rem;
}

.page-hero__subtitle {
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

/* Sección de proyectos */
.projects {
    padding: var(--space-xl) 0;
    background-color: var(--color-white);
}

.projects__group {
    margin-bottom: var(--space-xl);
}

.projects__group:last-child {
    margin-bottom: 0;
}

.projects__group-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin-bottom: var(--space-md);
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--color-primary-soft);
}

/* Grilla: 1 col mobile, 2 tablet, 3 desktop */
.projects__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

/* Card de proyecto */
.project-card {
    display: flex;
    flex-direction: column;
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover {
    transform: translateY(-3px);
}

.project-card__image-wrapper {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: var(--border-radius);
    background-color: var(--color-primary-soft);
    box-shadow: 0 8px 24px rgba(0, 61, 97, 0.08);
}

.project-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.project-card:hover .project-card__image {
    transform: scale(1.05);
}

.project-card__name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin-top: var(--space-sm);
    line-height: 1.35;
}

.project-card__meters {
    display: inline-flex;
    align-items: center;
    align-self: center;
    gap: 0.4rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-top: 0.35rem;
}

@media (min-width: 640px) {
    .projects__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }
}

@media (min-width: 768px) {
    .page-hero__title {
        font-size: 2.75rem;
    }
}

@media (min-width: 1024px) {
    .projects__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .page-hero__title {
        font-size: 3rem;
    }

    .projects__group-title {
        font-size: 1.875rem;
    }
}

/* ============================================================
   BOTÓN FLOTANTE WHATSAPP
============================================================ */
.whatsapp-float {
    position: fixed;
    right: calc(1.25rem + var(--safe-right));
    bottom: calc(1.25rem + var(--safe-bottom));
    z-index: 900; /* por debajo del navbar (1000) */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background-color: #25d366;
    color: var(--color-white);
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.55);
    color: var(--color-white);
}

.whatsapp-float:focus-visible {
    outline: 3px solid rgba(37, 211, 102, 0.5);
    outline-offset: 2px;
}

.whatsapp-float svg {
    width: 1.9rem;
    height: 1.9rem;
    fill: currentColor;
}

@media (prefers-reduced-motion: reduce) {
    .whatsapp-float {
        transition: none;
    }
}
