    /*=========================================
    VARIABLES – Gris + Rojo
=========================================*/

:root {
    --primary: #c1121f;          /* Rojo principal */
    --primary-dark: #9b0e18;     /* Rojo oscuro hover */
    --secondary: #111827;        /* Gris muy oscuro */
    --dark: #1f2937;             /* Gris oscuro */
    --gray: #6b7280;             /* Gris medio */
    --light-gray: #9ca3af;       /* Gris claro */
    --light: #f3f4f6;            /* Fondo claro */
    --white: #ffffff;
    --black: #0a0a0a;

    --radius: 14px;
    --radius-sm: 10px;
    --radius-full: 50px;

    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 30px 60px rgba(0, 0, 0, 0.18);
}

/*=========================================
    RESET
=========================================*/

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #1f2937;
    overflow-x: hidden;
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    width: 100%;
    display: block;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
    border: none;
    cursor: pointer;
    background: none;
}

.container {
    width: 90%;
    max-width: 1250px;
    margin-inline: auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.section-tag {
    display: inline-block;
    color: var(--primary);
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 600;
}

/*=========================================
    LOADER
=========================================*/

#loader {
    position: fixed;
    inset: 0;
    background: var(--secondary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    transition: opacity 0.7s ease, visibility 0.7s ease;
}

#loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-logo {
    color: var(--white);
    font-size: 42px;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 6px;
    animation: pulse 1.4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.06); opacity: 0.85; }
}

/*=========================================
    HEADER
=========================================*/

header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

header.active {
    background: var(--primary);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(16px);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 28px;
    font-family: 'Oswald', sans-serif;
    color: var(--white);
    letter-spacing: 2px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.logo-img {
    height: 100px;
    width: 200px;
    max-width:400px;
    object-fit: contain;
    display: block;
}

.logo-text {
    line-height: 1;
}

header.active .logo {
    color: var(--secondary);
}

.logo span span,
.logo-text > span {
    color: var(--primary);
}

nav ul {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin: 0;
    padding: 0;
}

nav ul li {
    display: flex;
    align-items: center;
}

nav ul li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 15px;
    font-weight: 500;
    position: relative;
    padding: 6px 0;
    transition: color 0.3s ease;
    white-space: nowrap;
}

header.active nav ul li a {
    color: white;
}

nav ul li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

nav ul li a:hover::after,
nav ul li a:focus-visible::after {
    width: 100%;
}

/* Submenú Servicios */
.has-submenu {
    position: relative;
}

.submenu-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.submenu-trigger i {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.has-submenu:hover .submenu-trigger i,
.has-submenu.open .submenu-trigger i {
    transform: rotate(180deg);
}

/* Puente invisible para no perder el hover al bajar el mouse */
.has-submenu::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 16px;
    background: transparent;
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 12px;
    min-width: 230px;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 200;
    list-style: none;
    display: flex;
    flex-direction: column;
}

.has-submenu:hover .submenu,
.has-submenu.open .submenu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.submenu li {
    width: 100%;
    list-style: none;
}

.submenu li a {
    display: block;
    width: 100%;
    color: #1f2937 !important;
    padding: 12px 20px !important;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;
    border-left: 3px solid transparent;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.submenu li a::after {
    display: none !important;
}

.submenu li a:hover,
.submenu li a:focus {
    background: #fef2f2;
    color: var(--primary) !important;
    border-left-color: var(--primary);
}

header.active .submenu li a {
    color: #1f2937 !important;
}

header.active .submenu li a:hover {
    color: var(--primary) !important;
}

.btn-header {
    background: var(--primary);
    color: var(--white);
    padding: 13px 26px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 14px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.btn-header:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(193, 18, 31, 0.35);
}

#menu {
    display: none;
    font-size: 28px;
    color: var(--white);
    cursor: pointer;
    background: none;
    border: none;
    padding: 8px;
    transition: color 0.3s ease;
}

header.active #menu {
    color: var(--secondary);
}

/* Menú móvil */
@media (max-width: 991px) {
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(320px, 85vw);
        height: 100vh;
        background: var(--secondary);
        padding: 120px 40px 40px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        box-shadow: -20px 0 40px rgba(0, 0, 0, 0.3);
        overflow-y: auto;
    }

    nav.show {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        gap: 22px;
    }

    nav ul li a {
        color: var(--white);
        font-size: 18px;
    }

    header.active nav ul li a {
        color: var(--white);
    }

    /* Submenú en móvil — lista vertical debajo de Servicios */
    .has-submenu::after {
        display: none;
    }

    .has-submenu .submenu {
        position: static;
        transform: none !important;
        left: auto;
        top: auto;
        margin-top: 0;
        min-width: 100%;
        width: 100%;
        background: transparent;
        border: none;
        box-shadow: none;
        border-radius: 0;
        padding: 8px 0 4px 12px;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease, padding 0.35s ease;
    }

    .has-submenu.open .submenu {
        max-height: 260px;
        padding: 12px 0 4px 12px;
    }

    .submenu li {
        width: 100%;
    }

    .submenu li a {
        color: #9ca3af !important;
        font-size: 15px !important;
        padding: 11px 8px !important;
        border-left: 2px solid #374151;
        border-radius: 0;
    }

    .submenu li a:hover,
    .submenu li a:focus {
        background: transparent !important;
        color: var(--primary) !important;
        border-left-color: var(--primary);
    }

    #menu {
        display: block;
        z-index: 1001;
    }

    .btn-header {
        display: none;
    }
}
/*=========================================
    HERO
=========================================*/

.hero {
    width: 100%;
    height: 82vh;
    min-height: 560px;
    max-height: 820px;
    position: relative;
    overflow: hidden;
    background: #111;
}

/* IMAGEN */

.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    position: relative;
    width: 100%;
    height: 100%;

    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/* OSCURECER LA IMAGEN PARA QUE EL TEXTO RESALTE */

.swiper-slide::after {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.68) 0%,
        rgba(0, 0, 0, 0.42) 45%,
        rgba(0, 0, 0, 0.10) 100%
    );

    z-index: 1;
}

/* TUS IMÁGENES */

.slide1 {
    background-image: url("banner.avif");
}

.slide2 {
    background-image: url("banner.avif");
}

.slide3 {
    background-image: url("banner.avif");
}


/*=========================================
    CONTENIDO DEL HERO
=========================================*/

.hero-content {
    position: absolute;

    top: 50%;
    left: 8%;

    transform: translateY(-50%);

    width: 90%;
    max-width: 700px;

    text-align: left;

    color: var(--white);

    z-index: 5;
}


/* SUBTÍTULO */

.hero-subtitle {
    display: inline-block;

    letter-spacing: 3px;

    color: var(--primary);

    text-transform: uppercase;

    margin-bottom: 18px;

    font-size: 14px;
    font-weight: 600;
}


/* TÍTULO */

.hero-content h1 {
    max-width: 680px;

    font-size: clamp(42px, 5vw, 70px);

    font-family: 'Oswald', sans-serif;

    line-height: 1.05;

    margin-bottom: 28px;

    font-weight: 600;

    color: #fff;
}


/*=========================================
    BOTONES
=========================================*/

.hero-buttons {
    display: flex;

    justify-content: flex-start;

    align-items: center;

    gap: 16px;

    flex-wrap: wrap;
}


/* BOTÓN PRINCIPAL */

.btn-primary {
    background: var(--primary);

    color: var(--white);

    padding: 16px 34px;

    border-radius: var(--radius-full);

    font-weight: 600;

    font-size: 15px;

    display: inline-block;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease;
}

.btn-primary:hover {
    background: var(--primary-dark);

    transform: translateY(-4px);

    box-shadow:
        0 18px 36px rgba(193, 18, 31, 0.4);
}


/* BOTÓN SECUNDARIO */

.btn-secondary {
    border: 2px solid rgba(255, 255, 255, 0.85);

    color: var(--white);

    padding: 14px 32px;

    border-radius: var(--radius-full);

    font-weight: 500;

    font-size: 15px;

    display: inline-block;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}

.btn-secondary:hover {
    background: var(--white);

    color: var(--secondary);

    transform: translateY(-4px);
}


/*=========================================
    INDICADOR DE SCROLL
=========================================*/

.scroll {
    position: absolute;

    bottom: 36px;

    left: 50%;

    transform: translateX(-50%);

    color: var(--white);

    font-size: 24px;

    animation: bounce 2s ease-in-out infinite;

    z-index: 10;

    opacity: 0.8;
}


@keyframes bounce {

    0%, 100% {
        transform: translate(-50%, 0);
    }

    50% {
        transform: translate(-50%, 12px);
    }

}
/*=========================================
    TÍTULOS DE SECCIÓN
=========================================*/

.title {
    text-align: center;
    margin-bottom: 60px;
}

.title h2 {
    margin-top: 12px;
    font-size: clamp(32px, 4vw, 46px);
    font-family: 'Oswald', sans-serif;
    color: var(--secondary);
    font-weight: 600;
}

/*=========================================
    ABOUT
=========================================*/

.about {
    padding: 110px 0;
    background: var(--white);
}

.about .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.about h2 {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.15;
    margin: 16px 0 22px;
    color: var(--secondary);
}

.about p {
    color: var(--gray);
    line-height: 1.85;
    font-size: 16px;
    margin-bottom: 30px;
}

.about img {
    border-radius: 18px;
    box-shadow: var(--shadow);
    transition: transform 0.5s ease;
}

.about img:hover {
    transform: scale(1.025);
}

/*=========================================
    STATS
=========================================*/

.stats {
    background: var(--secondary);
    padding: 90px 0;
}
.stats .container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    max-width: 850px;
    margin: 0 auto;
    position: relative;
    top: -50px;
}

.stats .card {
    width: 300px;
    text-align: center;
    padding: 25px 20px 35px;
    background: var(--dark);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: transform 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
}

.stats .card:hover {
    transform: translateY(-10px);
}

.stats .card:hover {
    transform: translateY(-10px);
    background: #252f3f;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
}

.stats h2 {
    color: var(--primary);
    font-size: clamp(40px, 5vw, 54px);
    font-family: 'Oswald', sans-serif;
    margin-bottom: 8px;
    font-weight: 600;
}

.stats p {
    color: #d1d5db;
    font-size: 14px;
    letter-spacing: 0.5px;
}
/* =========================================
   SERVICIOS - NUEVO DISEÑO
========================================= */

.services {
    padding: 100px 0;
    background: #f7f7f7;
}

.services .title {
    text-align: center;
    max-width: 850px;
    margin: 0 auto 55px;
}

.services .title h2 {
    margin-bottom: 15px;
}

.services-intro {
    max-width: 700px;
    margin: 0 auto;
    color: #666;
    font-size: 16px;
    line-height: 1.7;
}


/* CONTENEDOR */

.services .container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}


/* CARD */

.service {
    position: relative;
    display: flex;
    gap: 25px;
    padding: 35px;
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #e8e8e8;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.35s ease;
}


/* EFECTO HOVER */

.service:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.10);
    border-color: rgba(190, 0, 0, 0.25);
}


/* ICONO */

.service-icon {
    flex-shrink: 0;
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #ffffff;
    border-radius: 14px;
    font-size: 26px;
}


/* CONTENIDO */

.service-content {
    flex: 1;
}


/* NUMERO */

.service-number {
    display: block;
    margin-bottom: 6px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
}


/* TITULO */

.service h3 {
    margin: 0 0 15px;
    color: #222;
    font-size: 21px;
    line-height: 1.3;
}


/* TEXTO */

.service p {
    margin: 0 0 12px;
    color: #666;
    font-size: 14px;
    line-height: 1.75;
}


/* SEGUNDO PARRAFO */

.service-extra {
    color: #777;
}


/* BOTON */

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    color: var(--primary);
    font-size: 14px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.service-link i {
    transition: transform 0.3s ease;
}

.service-link:hover {
    color: #111;
}

.service-link:hover i {
    transform: translateX(5px);
}

/*=========================================
    PROJECTS
=========================================*/

.projects {
    padding: 110px 0;
    background: var(--white);
}

.gallery {
    width: 90%;
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
}

.item {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    cursor: pointer;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
    transition: transform 0.45s ease;
}

.item:hover {
    transform: translateY(-8px);
}

.item img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.item:hover img {
    transform: scale(1.12);
}

.item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(17, 24, 39, 0.9) 0%, rgba(17, 24, 39, 0.2) 60%, transparent 100%);
    opacity: 0;
    transition: opacity 0.45s ease;
    z-index: 1;
}

.item:hover::before {
    opacity: 1;
}

.item .content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px 26px;
    color: var(--white);
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.45s ease, opacity 0.45s ease;
    z-index: 2;
}

.item:hover .content {
    transform: translateY(0);
    opacity: 1;
}

.item h3 {
    font-size: 26px;
    font-family: 'Oswald', sans-serif;
    margin-bottom: 4px;
}

.item p {
    font-size: 14px;
    opacity: 0.9;
    color: #e5e7eb;
}
.project-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding: 10px 18px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.project-btn i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.project-btn:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-3px);
}

.project-btn:hover i {
    transform: translateX(4px);
}
/*=========================================
    CTA
=========================================*/

.cta {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--secondary) 0%, #1f2937 50%, #3f0a0e 100%);
    position: relative;
    text-align: center;
    color: var(--white);
}

.cta .container {
    position: relative;
    z-index: 2;
}

.cta h2 {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(32px, 4.5vw, 52px);
    margin-bottom: 18px;
    font-weight: 600;
}

.cta p {
    max-width: 620px;
    margin: 0 auto 32px;
    line-height: 1.8;
    color: #d1d5db;
    font-size: 16px;
}

/*=========================================
    CONTACT
=========================================*/

.contact {
    padding: 110px 0;
    background: var(--light);
}

.contact .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact h2 {
    font-size: clamp(32px, 4vw, 48px);
    font-family: 'Oswald', sans-serif;
    margin: 12px 0 16px;
    color: var(--secondary);
}

.contact > .container > .left > p {
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 28px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--dark);
    font-size: 15px;
}

.contact-info i {
    color: var(--primary);
    width: 20px;
    text-align: center;
}

.contact form {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.07);
}

.contact input,
.contact textarea {
    width: 100%;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    padding: 0 18px;
    margin-bottom: 16px;
    border-radius: var(--radius-sm);
    outline: none;
    font-family: inherit;
    font-size: 15px;
    color: var(--secondary);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.contact input {
    height: 54px;
}

.contact textarea {
    height: 150px;
    padding: 16px 18px;
    resize: vertical;
    min-height: 120px;
}

.contact input:focus,
.contact textarea:focus {
    background: var(--white);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(193, 18, 31, 0.15);
}

.contact button {
    width: 100%;
    height: 54px;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius-full);
    font-size: 15px;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    margin-top: 6px;
}

.contact button:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(193, 18, 31, 0.35);
}

/*=========================================
    FOOTER
=========================================*/

footer {
    background: var(--primary);
    color: var(--white);
    padding: 70px 0 0;
}

.footer-container {
    width: 90%;
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 50px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 30px;
    font-family: 'Oswald', sans-serif;
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.footer-logo-img {
    height: 86px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
}

.footer-logo span span {
    color: var(--primary);
}

.footer-text {
    color: #ffffff;
    line-height: 1.8;
    font-size: 14px;
    max-width: 320px;
}

.footer-title {
    font-size: 18px;
    font-family: 'Oswald', sans-serif;
    margin-bottom: 20px;
    color:  #ffffff;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: #ffffff;
    font-size: 14px;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-links a:hover {
    color: #ffffff;
    padding-left: 6px;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 22px;
}

.footer-social a {
    width: 44px;
    height: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #1f2937;
    border-radius: 50%;
    color: var(--white);
    font-size: 16px;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.footer-social a:hover {
    background: #ffffff;
    color: var(--white);
    transform: translateY(-4px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding: 22px 0;
    text-align: center;
    color: #f8f9fa;
    font-size: 14px;
}

/*=========================================
    WHATSAPP + TO TOP
=========================================*/

.whatsapp {
    position: fixed;
    right: 26px;
    bottom: 26px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366;
    color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    z-index: 999;
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 16px 36px rgba(37, 211, 102, 0.5);
}

.toTop {
    position: fixed;
    bottom: 100px;
    right: 28px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.35s ease, visibility 0.35s ease, transform 0.35s ease, background 0.3s ease;
    z-index: 998;
    font-size: 18px;
}

.toTop.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.toTop:hover {
    background: var(--primary-dark);
    transform: translateY(-4px);
}

/*=========================================
    SCROLLBAR + SELECTION
=========================================*/

::-webkit-scrollbar {
    width: 9px;
}

::-webkit-scrollbar-track {
    background: #e5e7eb;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

::selection {
    background: var(--primary);
    color: var(--white);
}
/*=========================================
    RESPONSIVE GLOBAL
=========================================*/

/* =========================================
   PANTALLAS ULTRA ANCHAS / 4K
   1920px+
========================================= */

@media (min-width: 1920px) {

    .container {
        max-width: 1600px;
    }

    .gallery {
        max-width: 2000px;
    }

    .hero-content {
        max-width: 860px;
    }

    .hero-content h1 {
        font-size: 80px;
    }

}


/* =========================================
   PANTALLAS MUY GRANDES
   1600px+
========================================= */

@media (min-width: 1600px) {

    .container {
        max-width: 1400px;
    }

    .gallery {
        max-width: 1800px;
    }

    .hero-content {
        max-width: 780px;
    }

    .hero-content h1 {
        font-size: 72px;
    }

}


/* =========================================
   LAPTOPS GRANDES Y MONITORES
   Hasta 1440px
========================================= */

@media (max-width: 1440px) {

    .container {
        width: 92%;
        max-width: 1250px;
    }

    .logo-img {
        width: 180px;
        height: 85px;
        max-width: 180px;
    }

    nav ul {
        gap: 26px;
    }

    .hero-content {
        left: 7%;
    }

    .gallery {
        gap: 22px;
    }

}


/* =========================================
   LAPTOPS CON ESCALADO DE WINDOWS
   ASUS Zenbook, ultrabooks 1920x1080 @125%/150%,
   2560x1440 @150%  ->  ~1536px / 1707px lógicos
========================================= */

@media (max-width: 1536px) {

    .container {
        width: 92%;
        max-width: 1180px;
    }

    .hero-content {
        max-width: 640px;
    }

    .hero-content h1 {
        font-size: clamp(44px, 4.8vw, 60px);
    }

    .gallery {
        gap: 20px;
    }

}


/* =========================================
   LAPTOPS PEQUEÑAS
   ASUS ZENBOOK - 1366px / 1280px
========================================= */

@media (max-width: 1366px) {

    /* CONTENEDOR */
    .container {
        width: 92%;
    }

    /* HEADER */
    header .container {
        height: 80px;
    }

    .logo-img {
        width: 160px;
        height: 70px;
        max-width: 160px;
    }

    /* MENÚ */
    nav ul {
        gap: 18px;
    }

    nav ul li a {
        font-size: 14px;
    }

    /* BOTÓN */
    .btn-header {
        padding: 11px 18px;
        font-size: 13px;
    }

    /* HERO */
    .hero {
        height: 78vh;
        min-height: 500px;
        max-height: 760px;
    }

    .hero-content {
        left: 6%;
        max-width: 620px;
    }

    .hero-content h1 {
        font-size: clamp(42px, 4.5vw, 58px);
    }

    /* ABOUT */
    .about .container {
        gap: 45px;
    }

    /* SERVICIOS */
    .services .container {
        gap: 22px;
    }

    .service {
        padding: 28px;
        gap: 18px;
    }

    /* PROYECTOS */
    .gallery {
        gap: 18px;
    }

    .item img {
        height: 300px;
    }

    /* CONTACTO */
    .contact .container {
        gap: 45px;
    }

}


/* =========================================
   LAPTOPS DE PANTALLA CORTA (ALTURA BAJA)
   Zenbook, portátiles 13"-14" con poca altura
   de viewport (ej. 1366x768, 1536x864, 1600x900)
========================================= */

@media (max-width: 1440px) and (max-height: 800px) {

    .hero {
        height: auto;
        min-height: 460px;
        max-height: 620px;
        padding: 40px 0;
    }

    .hero-content h1 {
        font-size: clamp(36px, 4vw, 50px);
        margin-bottom: 16px;
    }

    .stats .container {
        top: -25px;
    }

}


/* =========================================
   LAPTOPS MEDIANAS / TABLETS HORIZONTALES
   Hasta 1200px
========================================= */

@media (max-width: 1200px) {

    .container {
        width: 93%;
    }

    /* HEADER */

    .logo-img {
        width: 145px;
        height: 65px;
        max-width: 145px;
    }

    nav ul {
        gap: 14px;
    }

    nav ul li a {
        font-size: 13px;
    }

    .btn-header {
        padding: 10px 15px;
        font-size: 12px;
    }

    /* HERO */

    .hero-content {
        max-width: 580px;
    }

    .hero-content h1 {
        font-size: clamp(38px, 5vw, 54px);
    }

    /* ABOUT */

    .about .container {
        gap: 35px;
    }

    /* SERVICIOS */

    .service {
        padding: 25px;
    }

    .service-icon {
        width: 58px;
        height: 58px;
        font-size: 23px;
    }

    /* PROYECTOS */

    .gallery {
        grid-template-columns: repeat(3, 1fr);
    }

    .item img {
        height: 280px;
    }

}


/* =========================================
   TABLETS GRANDES / LAPTOPS MUY PEQUEÑAS
   Hasta 1100px
========================================= */

@media (max-width: 1100px) {

    /* GALERÍA */

    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    /* FOOTER */

    .footer-container {
        grid-template-columns: 1fr 1fr;
    }

    /* CONTACTO */

    .contact .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

}


/* =========================================
   TABLETS
   Hasta 991px
========================================= */

@media (max-width: 991px) {

    /* HEADER */

    header .container {
        height: 76px;
    }

    .logo-img {
        width: 145px;
        height: 60px;
        max-width: 145px;
    }

    /* ABOUT */

    .about .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about .right {
        order: -1;
    }

    /* STATS */

    .stats .container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 25px;
        top: -35px;
    }

    .stats .card {
        width: min(320px, 100%);
    }

    /* SERVICIOS */

    .services .container {
        grid-template-columns: 1fr;
        max-width: 650px;
        margin-inline: auto;
    }

    .service {
        padding: 30px;
    }

}


/* =========================================
   TABLETS Y CELULARES EN HORIZONTAL
   (orientation: landscape con poca altura)
========================================= */

@media (max-width: 991px) and (orientation: landscape) and (max-height: 500px) {

    .hero {
        height: auto;
        min-height: 100vh;
        padding: 90px 0 50px;
    }

    .hero-content {
        position: relative;
        left: 0;
        top: 0;
        transform: none;
        width: 90%;
        margin: 0 auto;
    }

    .about,
    .services,
    .projects,
    .contact {
        padding: 50px 0;
    }

    .stats .container {
        top: 0;
    }

}


/* =========================================
   TABLETS PEQUEÑAS
   Hasta 768px
========================================= */

@media (max-width: 768px) {

    /* CONTENEDOR */

    .container {
        width: 92%;
    }

    /* HERO */

    .hero {
        height: 72vh;
        min-height: 520px;
        max-height: 700px;
    }

    .hero-content {
        left: 4%;
        width: 92%;
        max-width: 600px;
    }

    .hero-content h1 {
        font-size: clamp(36px, 8vw, 52px);
    }

    /* BOTONES HERO */

    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }

    /* ABOUT */

    .about,
    .services,
    .projects,
    .contact {
        padding: 85px 0;
    }

    /* GALERÍA */

    .gallery {
        grid-template-columns: 1fr;
        max-width: 520px;
    }

    .item img {
        height: 340px;
    }

    /* FOOTER */

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-text {
        max-width: none;
        margin-inline: auto;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-links a:hover {
        padding-left: 0;
    }

    /* CONTACTO */

    .contact form {
        padding: 30px 24px;
    }

}


/* =========================================
   CELULARES GRANDES
   Hasta 576px
========================================= */

@media (max-width: 576px) {

    /* HEADER */

    header .container {
        height: 70px;
    }

    .logo {
        font-size: 22px;
        gap: 8px;
    }

    .logo-img {
        width: 130px;
        height: 52px;
        max-width: 130px;
    }

    #menu {
        font-size: 26px;
    }

    /* HERO */

    .hero {
        height: 78vh;
        min-height: 500px;
    }

    .hero-content {
        left: 5%;
        width: 90%;
    }

    .hero-subtitle {
        font-size: 11px;
        letter-spacing: 2px;
        margin-bottom: 12px;
    }

    .hero-content h1 {
        font-size: clamp(34px, 10vw, 44px);
        margin-bottom: 22px;
    }

    .hero-buttons {
        width: 100%;
    }

    .btn-primary,
    .btn-secondary {
        max-width: 100%;
        padding: 14px 20px;
    }

    /* SECCIONES */

    .about,
    .services,
    .projects,
    .contact {
        padding: 70px 0;
    }

    .stats {
        padding: 65px 0;
    }

    .cta {
        padding: 70px 0;
    }

    /* TÍTULOS */

    .title {
        margin-bottom: 40px;
    }

    .title h2 {
        font-size: 34px;
    }

    /* ABOUT */

    .about p {
        font-size: 15px;
    }

    /* STATS */

    .stats .container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        top: -25px;
    }

    .stats .card {
        width: 100%;
        max-width: 350px;
    }

    /* SERVICIOS */

    .service {
        flex-direction: column;
        padding: 25px;
        gap: 18px;
    }

    .service-icon {
        width: 58px;
        height: 58px;
    }

    .service h3 {
        font-size: 20px;
    }

    /* PROYECTOS */

    .gallery {
        width: 92%;
    }

    .item img {
        height: 300px;
    }

    /* CONTACTO */

    .contact form {
        padding: 25px 18px;
    }

    /* BOTONES FLOTANTES */

    .whatsapp {
        width: 54px;
        height: 54px;
        font-size: 26px;
        right: 18px;
        bottom: 18px;
    }

    .toTop {
        width: 46px;
        height: 46px;
        right: 22px;
        bottom: 85px;
    }

}


/* =========================================
   CELULARES MEDIANOS
   Hasta 400px
========================================= */

@media (max-width: 400px) {

    .container {
        width: 90%;
    }

    .logo-img {
        width: 110px;
        height: 48px;
        max-width: 110px;
    }

    .hero {
        min-height: 480px;
    }

    .hero-content h1 {
        font-size: 34px;
    }

    .hero-subtitle {
        font-size: 10px;
    }

    .service {
        padding: 22px 18px;
    }

    .stats h2 {
        font-size: 42px;
    }

    .item img {
        height: 260px;
    }

    .contact form {
        padding: 22px 15px;
    }

}


/* =========================================
   CELULARES PEQUEÑOS
   Hasta 360px (iPhone SE, Galaxy A antiguos)
========================================= */

@media (max-width: 360px) {

    .container {
        width: 94%;
    }

    .logo-img {
        width: 95px;
        height: 42px;
        max-width: 95px;
    }

    .hero-content h1 {
        font-size: 28px;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 9px;
        letter-spacing: 1.5px;
    }

    .btn-primary,
    .btn-secondary {
        font-size: 13px;
        padding: 12px 16px;
    }

    .title h2 {
        font-size: 26px;
    }

    .service h3 {
        font-size: 18px;
    }

    .item img {
        height: 220px;
    }

    .whatsapp {
        width: 48px;
        height: 48px;
        font-size: 22px;
        right: 14px;
        bottom: 14px;
    }

    .toTop {
        width: 40px;
        height: 40px;
        right: 18px;
        bottom: 70px;
    }

}


/* =========================================
   PANTALLAS TÁCTILES (sin hover)
   Evita que queden efectos "pegados" al tocar
   en celulares y tablets
========================================= */

@media (hover: none) and (pointer: coarse) {

    .footer-links a:hover,
    .btn-primary:hover,
    .btn-secondary:hover,
    .service:hover {
        transform: none;
    }

}


/* =========================================
   ACCESIBILIDAD
   Reduce animaciones si el usuario lo prefiere
========================================= */

@media (prefers-reduced-motion: reduce) {

    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

}
