html {
    scroll-behavior: smooth;
}
:root {
    --amarillo-cresta: #FFD22A;
    --negro-cresta: #111111;
    --blanco-cresta: #FFFFFF;
    --gris-claro: #F5F5F5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: var(--blanco-cresta);
    color: var(--negro-cresta);
}
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 20px 6%;

    background-color: var(--blanco-cresta);

    border-bottom: 1px solid #eeeeee;
}

.logo {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 3px;
}
.logo img {
    display: block;
    width: 150px;
    height: auto;
    object-fit: contain;
}

.menu {
    display: flex;
    gap: 35px;
}

.menu a {
    text-decoration: none;
    color: var(--negro-cresta);

    font-size: 13px;
    font-weight: 700;

    text-transform: uppercase;
}

.btn-cotizar {
    background-color: var(--amarillo-cresta);
    color: var(--negro-cresta);

    padding: 14px 20px;

    text-decoration: none;
    text-transform: uppercase;

    font-size: 13px;
    font-weight: 800;
}
.hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;

    min-height: 560px;

    background-color: var(--blanco-cresta);
}

.hero-contenido {
    padding: 80px 6%;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-etiqueta {
    font-size: 12px;
    font-weight: 800;

    letter-spacing: 2.5px;

    margin-bottom: 18px;
}

.linea-amarilla {
    width: 65px;
    height: 6px;

    background-color: var(--amarillo-cresta);

    margin-bottom: 22px;
}

.hero h1 {
    font-size: 64px;
    line-height: 0.95;

    font-weight: 900;

    letter-spacing: -3px;

    margin-bottom: 28px;
}

.hero-descripcion {
    font-size: 18px;
    line-height: 1.6;

    color: #555555;

    max-width: 580px;

    margin-bottom: 34px;
}

.hero-botones {
    display: flex;
    gap: 12px;

    flex-wrap: wrap;
}

.btn-principal,
.btn-secundario {
    padding: 15px 20px;

    text-decoration: none;
    text-transform: uppercase;

    font-size: 13px;
    font-weight: 800;

    border: 2px solid var(--negro-cresta);
}

.btn-principal {
    background-color: var(--negro-cresta);
    color: var(--blanco-cresta);
}

.btn-secundario {
    background-color: var(--blanco-cresta);
    color: var(--negro-cresta);
}

.hero-imagen {
    position: relative;

    background-image: url("img/hero.jpeg");
    background-size: cover;
    background-position: center;

    min-height: 560px;

    overflow: hidden;
}

.hero-circulo {
    position: absolute;

    width: 320px;
    height: 320px;

    border: 42px solid var(--amarillo-cresta);
    border-radius: 50%;

    top: -90px;
    right: -130px;
}

.hero-etiqueta-imagen {
    position: absolute;

    left: 28px;
    bottom: 28px;

    background-color: var(--amarillo-cresta);

    padding: 14px 18px;

    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1px;
}
.presentacion {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 50px;

    padding: 75px 7%;

    background-color: var(--blanco-cresta);
}

.presentacion h2 {
    font-size: 52px;
    line-height: 1;

    font-weight: 900;

    margin: 0;
}

.presentacion-texto p {
    font-size: 19px;
    line-height: 1.7;

    color: #4d4d4d;

    margin: 0;
}
.servicios {
    background-color: var(--negro-cresta);
    color: var(--blanco-cresta);

    padding: 75px 7%;
}

.servicios-encabezado {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;

    gap: 40px;

    margin-bottom: 40px;
}

.servicios-encabezado h2 {
    font-size: 52px;
    line-height: 1;

    font-weight: 900;

    margin: 0;
}

.servicios-encabezado p {
    max-width: 480px;

    font-size: 17px;
    line-height: 1.6;

    color: #b5b5b5;

    margin: 0;
}
.servicios-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 18px;
}

.servicio-card {
    min-height: 280px;

    padding: 30px;

    border: 1px solid #444444;

    background-color: #1b1b1b;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.servicio-superior {
    display: flex;
    justify-content: space-between;
    align-items: center;

    color: var(--amarillo-cresta);

    font-size: 12px;
    font-weight: 900;

    letter-spacing: 1px;
}

.flecha {
    font-size: 28px;
}

.servicio-contenido h3 {
    font-size: 30px;
    line-height: 1.1;

    margin-bottom: 12px;
}

.servicio-contenido p {
    max-width: 450px;

    color: #aaaaaa;

    font-size: 16px;
    line-height: 1.6;
}
.detalle-servicios {
    margin-top: 18px;

    padding: 20px 24px;

    background-color: var(--amarillo-cresta);
    color: var(--negro-cresta);

    font-size: 16px;
    font-weight: 800;

    line-height: 1.7;

    display: none;
}

.detalle-servicios.activo {
    display: block;
}

.servicio-card {
    cursor: pointer;
}
.proceso {
    padding: 80px 7%;
    background-color: var(--blanco-cresta);
}

.proceso h2 {
    font-size: 52px;
    line-height: 1;
    font-weight: 900;

    margin-bottom: 45px;
}

.proceso-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    border-top: 3px solid var(--negro-cresta);
}

.paso {
    padding: 28px 24px 10px 0;
}

.numero-paso {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    background-color: var(--amarillo-cresta);

    font-weight: 900;

    margin-bottom: 20px;
}

.paso h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.paso p {
    font-size: 15px;
    line-height: 1.6;

    color: #666666;
}
.cta-final {
    margin: 0 5% 60px;

    padding: 55px 6%;

    background-color: var(--amarillo-cresta);

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}

.cta-etiqueta {
    font-size: 12px;
    font-weight: 900;

    letter-spacing: 2px;

    margin-bottom: 15px;
}

.cta-texto h2 {
    font-size: 52px;
    line-height: 1;

    font-weight: 900;

    max-width: 700px;
}

.cta-boton {
    background-color: var(--negro-cresta);
    color: var(--blanco-cresta);

    padding: 17px 22px;

    text-decoration: none;
    text-transform: uppercase;

    font-size: 13px;
    font-weight: 900;

    white-space: nowrap;
}
.cta-acciones {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cta-boton-secundario {
    background-color: transparent;
    color: var(--negro-cresta);

    padding: 15px 22px;

    text-decoration: none;
    text-transform: uppercase;

    font-size: 13px;
    font-weight: 900;

    border: 2px solid var(--negro-cresta);

    white-space: nowrap;
}
.formulario-cotizacion {
    padding: 80px 7%;
    background-color: #f5f5f5;

    display: none;
}

.formulario-cotizacion.activo {
    display: block;
}

.formulario-etiqueta {
    font-size: 12px;
    font-weight: 900;

    letter-spacing: 2px;

    margin-bottom: 15px;
}

.formulario-intro h2 {
    font-size: 52px;
    line-height: 1;

    font-weight: 900;

    margin-bottom: 20px;
}

.formulario-intro p {
    font-size: 17px;
    line-height: 1.6;

    color: #555555;
}

.formulario {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 24px;

    width: 100%;
}

.campo {
    display: flex;
    flex-direction: column;

    gap: 8px;
}

.campo-completo {
    grid-column: 1 / -1;
}

.campo label {
    font-size: 13px;
    font-weight: 800;

    text-transform: uppercase;
}

.campo input,
.campo select,
.campo textarea {
    width: 100%;

    padding: 14px 15px;

    border: 1px solid #cccccc;

    background-color: var(--blanco-cresta);

    font-size: 16px;

    font-family: inherit;
}

.campo textarea {
    resize: vertical;
}

.btn-enviar-formulario {
    background-color: var(--negro-cresta);
    color: var(--blanco-cresta);

    border: none;

    padding: 17px 24px;

    font-size: 13px;
    font-weight: 900;

    text-transform: uppercase;

    cursor: pointer;
}
.formulario-intro {
    max-width: 750px;
    margin-bottom: 45px;
}
.mensaje-formulario {
    display: none;

    margin-top: 30px;
    padding: 25px;

    background-color: var(--amarillo-cresta);
    color: var(--negro-cresta);

    font-size: 17px;
    line-height: 1.6;
    font-weight: 700;
}

.mensaje-formulario.activo {
    display: block;
}
.proyectos {
    padding: 80px 7%;
    background-color: var(--blanco-cresta);
}

.proyectos-encabezado {
    max-width: 850px;
    margin-bottom: 45px;
}

.proyectos-etiqueta {
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.proyectos-encabezado h2 {
    font-size: 52px;
    line-height: 1;
    font-weight: 900;
    margin-bottom: 20px;
}

.proyectos-encabezado > p:last-child {
    font-size: 17px;
    line-height: 1.6;
    color: #555555;
}

.galeria-proyectos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.galeria-proyectos img {
    width: 100%;
    height: 380px;
    object-fit: cover;

    display: block;

    cursor: pointer;

    transition: transform 0.3s ease;
}

.galeria-proyectos img:hover {
    transform: scale(1.02);
}
.visor-galeria {
    position: fixed;
    inset: 0;

    background-color: rgba(0, 0, 0, 0.92);

    display: none;

    align-items: center;
    justify-content: center;

    z-index: 9999;

    padding: 30px;
}

.visor-galeria.activo {
    display: flex;
}

.visor-galeria img {
    max-width: 85%;
    max-height: 85%;

    object-fit: contain;

    display: block;
}

.visor-cerrar {
    position: absolute;

    top: 25px;
    right: 30px;

    background: none;
    border: none;

    color: white;

    font-size: 42px;
    cursor: pointer;
}

.visor-flecha {
    position: absolute;

    top: 50%;
    transform: translateY(-50%);

    background-color: rgba(255, 255, 255, 0.1);

    border: 1px solid rgba(255, 255, 255, 0.3);

    color: white;

    width: 55px;
    height: 55px;

    font-size: 36px;

    cursor: pointer;
}

.visor-anterior {
    left: 25px;
}

.visor-siguiente {
    right: 25px;
}
.galeria-contenedor {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
}

.galeria-proyectos {
    flex: 1;
}

.galeria-proyectos img {
    display: none;
}

.galeria-proyectos img.visible {
    display: block;
}

.galeria-flecha {
    width: 50px;
    height: 50px;

    border: none;

    background-color: var(--negro-cresta);
    color: var(--blanco-cresta);

    font-size: 32px;
    font-weight: 700;

    cursor: pointer;
}

.galeria-indicador {
    margin-top: 20px;

    text-align: center;

    font-size: 14px;
    font-weight: 800;
}
/* =========================
   FOOTER
========================= */

.footer {
    background-color: var(--negro-cresta);
    color: var(--blanco-cresta);

    padding: 70px 6% 25px;
}

.footer-contenido {
    max-width: 1400px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 60px;

    padding-bottom: 55px;
}

.footer-logo {
    font-size: 34px;
    font-weight: 900;
    letter-spacing: 8px;

    margin-bottom: 15px;
}

.footer-marca p {
    color: #bdbdbd;
    font-size: 16px;
}

.footer h3 {
    margin-bottom: 20px;

    font-size: 13px;
    font-weight: 900;

    text-transform: uppercase;
    letter-spacing: 2px;

    color: var(--amarillo-cresta);
}

.footer-contacto {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-contacto a {
    color: var(--blanco-cresta);
    text-decoration: none;

    margin-bottom: 12px;

    font-size: 16px;

    transition: opacity 0.2s ease;
}

.footer-contacto a:hover {
    opacity: 0.6;
}

.footer-accion {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-boton {
    display: inline-block;

    padding: 16px 22px;

    background-color: var(--amarillo-cresta);
    color: var(--negro-cresta);

    text-decoration: none;
    text-transform: uppercase;

    font-size: 13px;
    font-weight: 900;
}

.footer-inferior {
    max-width: 1400px;
    margin: 0 auto;

    padding-top: 25px;

    border-top: 1px solid #3a3a3a;
}

.footer-inferior p {
    color: #8f8f8f;
    font-size: 13px;
}
@media (max-width: 768px) {
    .proceso {
    padding: 55px 7%;
}

.proceso h2 {
    font-size: 44px;
    line-height: 1;
    margin-bottom: 35px;
}

.proceso-linea {
    margin-bottom: 35px;
}
.proceso-grid {
    gap: 0;
}

.paso {
    padding: 18px 0;
    min-height: 0;
}

.numero-paso {
    margin-bottom: 16px;
}

.paso h3 {
    margin: 0 0 10px;
}

.paso p {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
}

    .servicios {
    padding: 55px 7%;
}

.servicios-encabezado {
    gap: 22px;
    margin-bottom: 30px;
}

.servicios-encabezado h2 {
    font-size: 44px;
    line-height: 1;
}

.servicios-encabezado p {
    font-size: 18px;
    line-height: 1.55;
}

.servicio-card {
    padding: 38px 30px;
    min-height: auto;
}
.servicio-contenido h3 {
    font-size: 28px;
    line-height: 1.05;
}

.servicio-contenido p {
    font-size: 16px;
    line-height: 1.5;
}

.servicio-card {
    padding: 30px 26px;
}
.presentacion {
    padding: 55px 7%;
    gap: 25px;
}

.presentacion-titulo h2 {
    font-size: 48px;
    line-height: 0.98;
}

.presentacion-texto p {
    font-size: 18px;
    line-height: 1.55;
    margin: 0;
}
    .navbar {
        padding: 16px 5%;
        gap: 15px;
    }

    .menu {
        display: none;
    }

    .logo {
        font-size: 20px;
    }

    .btn-cotizar {
        font-size: 11px;
        padding: 12px 14px;
    }

    .hero {
        grid-template-columns: 1fr;
    }

    .hero-contenido {
        padding: 60px 6%;
    }

    .hero h1 {
        font-size: 44px;
        letter-spacing: -2px;
    }

    .hero-descripcion {
        font-size: 16px;
    }

    .hero-imagen {
        min-height: 380px;
    }

    .presentacion {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 60px 6%;
    }

    .presentacion h2 {
        font-size: 40px;
    }

    .servicios {
        padding: 60px 6%;
    }

    .servicios-encabezado {
        flex-direction: column;
        align-items: flex-start;
    }

    .servicios-encabezado h2 {
        font-size: 40px;
    }

    .servicios-grid {
        grid-template-columns: 1fr;
    }

    .proceso {
        padding: 60px 6%;
    }

    .proceso h2 {
        font-size: 40px;
    }

    .proceso-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .cta-final {
        margin: 0 5% 40px;
        padding: 40px 6%;

        flex-direction: column;
        align-items: flex-start;
    }

    .cta-texto h2 {
        font-size: 40px;
    }

    .formulario-cotizacion {
        padding: 60px 6%;
    }

    .formulario-intro h2 {
        font-size: 40px;
    }

    .formulario {
        grid-template-columns: 1fr;
    }

    .campo-completo {
        grid-column: auto;
    }
    .formulario-cotizacion {
    padding: 50px 6%;
}

.formulario-intro {
    margin-bottom: 28px;
}

.formulario-intro h2 {
    margin-bottom: 16px;
}

.formulario-intro p {
    font-size: 17px;
    line-height: 1.5;
}

.formulario {
    gap: 18px;
}

.campo {
    gap: 6px;
}

.campo input,
.campo select {
    padding: 12px 14px;
    min-height: 48px;
}

.campo textarea {
    padding: 14px;
}

.btn-enviar-formulario {
    width: 100%;
    padding: 16px 20px;
}
.galeria-contenedor {
    position: relative;
    display: block;
    width: 100%;
}

.galeria-proyectos {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
}

.galeria-proyectos img.visible {
    display: block;
    width: 100%;
    height: 380px;
    object-fit: cover;
}

.galeria-flecha {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    width: 48px;
    height: 48px;

    z-index: 10;

    background-color: var(--negro-cresta);
    color: var(--blanco-cresta);
}

.galeria-anterior {
    left: 10px;
}

.galeria-siguiente {
    right: 10px;
}
.proyectos {
    padding: 55px 7%;
}

.proyectos-encabezado {
    max-width: 100%;
    margin-bottom: 35px;
}

.proyectos-encabezado h2 {
    font-size: 40px;
    line-height: 1;
    letter-spacing: -1px;
}

.proyectos-encabezado > p:last-child {
    font-size: 17px;
    line-height: 1.55;
}
/* FOOTER EN CELULAR */

.footer {
    padding: 55px 7% 25px;
}

.footer-contenido {
    display: grid;
    grid-template-columns: 1fr;
    gap: 45px;
    padding-bottom: 45px;
}

.footer-logo {
    font-size: 30px;
    letter-spacing: 7px;
}

.footer-marca p {
    font-size: 15px;
}

.footer h3 {
    margin-bottom: 18px;
}

.footer-contacto a {
    font-size: 16px;
}

.footer-boton {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
    padding: 18px 15px;
}

.footer-inferior {
    padding-top: 22px;
}

.footer-inferior p {
    font-size: 12px;
    line-height: 1.6;
}
}
@media (max-width: 480px) {

    .hero h1 {
    font-size: 34px;
    line-height: 1.02;
    letter-spacing: -1px;
}

    .hero-botones {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-principal,
    .btn-secundario {
        text-align: center;
    }

    .proceso-grid {
        grid-template-columns: 1fr;
    }

    .cta-acciones {
        flex-direction: column;
        width: 100%;
    }

    .cta-boton,
    .cta-boton-secundario {
        width: 100%;
        text-align: center;
    }
}
.flip-card {
    perspective: 1000px;
    background: transparent;
    padding: 0;
    border: none;
    min-height: 280px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    min-height: 280px;

    transition: transform 0.7s ease;
    transform-style: preserve-3d;
}

.flip-card.activa .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    min-height: 280px;

    top: 0;
    left: 0;

    padding: 30px;

    border: 1px solid #444444;
    background-color: #1b1b1b;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    backface-visibility: hidden;
}

.flip-card-back {
    transform: rotateY(180deg);
}

.servicios-lista h3 {
    font-size: 28px;
    margin-bottom: 18px;
}

.servicios-lista p {
    font-size: 15px;
    line-height: 1.5;

    color: #cccccc;

    margin-bottom: 8px;
}