﻿/* =====================================================
   RESET
===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: auto;
    scroll-padding-top: 115px;
}


body {
    font-family: Arial, Helvetica, sans-serif;
    background: #ffffff;
    color: #17466f;
    line-height: 1.6;
}


img {
    display: block;
    max-width: 100%;
}


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



/* =====================================================
   CABECERA
===================================================== */

header {
    background: #ffffff;

    border-bottom: 1px solid #d5e3eb;

    position: sticky;
    top: 0;

    z-index: 1000;
}


.cabecera {
    width: min(1600px, 94%);

    height: 120px;

    margin: 0 auto;

    display: flex;

    align-items: center;

    justify-content: space-between;
}


.logo-link {
    display: flex;

    align-items: center;

    justify-content: center;

    background: #ffffff;
}


.logo-link img {
    width: 185px;

    height: auto;

    object-fit: contain;
}


nav {
    display: flex;

    align-items: center;

    gap: 42px;
}


nav a {
    font-size: 20px;

    font-weight: 700;

    color: #123f67;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}


nav a:hover {
    color: #159bd3;

    transform: translateY(-1px);
}



/* =====================================================
   PORTADA
===================================================== */

.hero {
    background: #ffffff;

    padding: 70px 0 75px;
}


.hero-contenido {
    width: min(1680px, 94%);

    margin: 0 auto;

    display: grid;

    grid-template-columns: 0.85fr 1.15fr;

    gap: 55px;

    align-items: center;
}


.hero-texto {
    padding-left: 10px;
}


.etiqueta {
    color: #159bd3;

    font-size: 18px;

    font-weight: 800;

    letter-spacing: 3px;

    margin-bottom: 18px;
}


.hero h1 {
    color: #123f67;

    font-size: clamp(46px, 5vw, 70px);

    line-height: 1.05;

    margin-bottom: 25px;
}


.hero h1 span {
    color: #159bd3;
}


.hero-descripcion {
    max-width: 610px;

    font-size: 21px;

    line-height: 1.55;

    margin-bottom: 28px;
}


.hero-contacto {
    margin-bottom: 30px;
}


.hero-contacto p {
    font-size: 18px;

    margin-bottom: 8px;
}


.hero-contacto a:hover {
    color: #159bd3;
}


.botones {
    display: flex;

    gap: 18px;

    flex-wrap: wrap;
}


.boton {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 54px;

    padding: 0 32px;

    border-radius: 5px;

    background: #159bd3;

    color: #ffffff;

    border: 2px solid #159bd3;

    font-size: 16px;

    font-weight: 800;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}


.boton:hover {
    background: #117eae;

    border-color: #117eae;

    transform: translateY(-2px);
}


.boton-secundario {
    background: #ffffff;

    color: #123f67;
}


.boton-secundario:hover {
    color: #ffffff;
}



/* =====================================================
   WHATSAPP
===================================================== */

.whatsapp-link {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    color: inherit;

    font-weight: 600;
}


.whatsapp-link:hover {
    color: #159bd3;
}


.whatsapp-icon {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    width: 21px;

    height: 21px;

    flex-shrink: 0;
}


.whatsapp-icon svg {
    width: 21px;

    height: 21px;

    fill: #25D366;

    display: block;
}


.whatsapp-link:hover .whatsapp-icon svg {
    fill: #128C7E;
}



/* =====================================================
   FOTOS DE PORTADA
===================================================== */

.hero-fotos {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 14px;

    align-items: stretch;
}


.hero-foto {
    height: 410px;

    overflow: hidden;
}


.hero-foto img {
    width: 100%;

    height: 100%;

    object-fit: cover;
}



/* =====================================================
   SECCIONES
===================================================== */

.seccion {
    width: min(1680px, 94%);

    margin: 35px auto;

    background: #eaf5fa;

    border-radius: 4px;

    padding: 70px 70px;

    scroll-margin-top: 120px;
}


.encabezado-seccion {
    width: 100%;

    max-width: 900px;

    margin: 0 auto 45px;

    text-align: center;
}


.encabezado-seccion h2 {
    color: #123f67;

    font-size: clamp(32px, 3vw, 46px);

    line-height: 1.15;

    margin-bottom: 18px;
}


.encabezado-seccion p {
    max-width: 680px;

    margin: 0 auto;

    font-size: 18px;

    line-height: 1.55;
}


.encabezado-seccion h3 {
    color: #159bd3;

    font-size: 15px;

    letter-spacing: 1.5px;

    margin-bottom: 12px;
}



/* =====================================================
   LABORATORIO
===================================================== */

.laboratorio-contenido {
    display: grid;

    grid-template-columns: 0.75fr 1.25fr;

    gap: 45px;

    align-items: center;
}


.laboratorio-texto {
    max-width: 570px;
}


.laboratorio-texto h3 {
    color: #123f67;

    font-size: 27px;

    margin-bottom: 18px;
}


.laboratorio-texto p {
    margin-bottom: 16px;
}


.laboratorio-texto ul {
    margin-top: 20px;

    padding-left: 20px;
}


.laboratorio-texto li {
    margin-bottom: 7px;
}


.laboratorio-imagenes {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 18px;
}


.laboratorio-imagenes img {
    width: 100%;

    height: 310px;

    object-fit: contain;

    background: #ffffff;
}



/* =====================================================
   TECNOLOGÍA
===================================================== */

.tecnologia-contenido {
    display: flex;

    flex-direction: column;

    align-items: center;
}


.tecnologia-texto {
    width: 100%;

    max-width: 680px;

    margin: 0 auto 35px;

    text-align: center;
}


.tecnologia-lista {
    list-style: none;

    display: flex;

    flex-wrap: wrap;

    justify-content: center;

    gap: 10px 25px;
}


.tecnologia-lista li {
    font-size: 17px;
}


.tecnologia-lista li::before {
    content: "•";

    color: #159bd3;

    font-weight: bold;

    margin-right: 7px;
}


.tecnologia-galeria {
    width: 100%;

    max-width: 1100px;

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 16px;
}


.tecnologia-galeria img {
    width: 100%;

    height: 245px;

    object-fit: cover;

    background: #ffffff;
}



/* =====================================================
   PRODUCTOS
===================================================== */

.productos-lista {
    display: flex;

    flex-direction: column;

    gap: 30px;
}


.producto {
    background: #ffffff;

    border-radius: 5px;

    padding: 28px 32px;

    display: flex;

    align-items: center;

    gap: 35px;
}


.producto-contenido {
    flex: 0 0 29%;
}


.producto-contenido h3 {
    color: #123f67;

    font-size: 23px;

    line-height: 1.2;

    margin-bottom: 10px;
}


.producto-contenido p {
    font-size: 16px;

    line-height: 1.5;
}



/* =====================================================
   GALERÍAS DE PRODUCTOS
===================================================== */

.galeria-producto {
    flex: 1;
}


.foto-producto {
    overflow: hidden;

    background: #ffffff;
}


.foto-producto img {
    width: 100%;

    height: 100%;

    object-fit: cover;
}



/* =====================================================
   UNA FOTO
===================================================== */

.galeria-producto.una-foto {
    max-width: 500px;

    height: 290px;
}


.galeria-producto.una-foto .foto-producto {
    height: 290px;
}



/* =====================================================
   DOS FOTOS
===================================================== */

.galeria-producto.dos-fotos {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 14px;

    max-width: 620px;

    height: 290px;
}


.galeria-producto.dos-fotos .foto-producto {
    height: 290px;
}



/* =====================================================
   TRES FOTOS
===================================================== */

.galeria-producto.tres-fotos {
    width: 100%;

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 14px;

    height: 270px;
}


.galeria-producto.tres-fotos .foto-producto {
    height: 270px;
}



/* =====================================================
   CAD-CAM
   3 ARRIBA + 2 ABAJO
===================================================== */

.galeria-producto.cad-cam {
    display: grid;

    grid-template-columns: repeat(6, 1fr);

    grid-template-rows: 180px 180px;

    gap: 12px;

    max-width: 850px;
}


.galeria-producto.cad-cam .foto-producto {
    height: 180px;
}


.galeria-producto.cad-cam .foto-producto:nth-child(1),
.galeria-producto.cad-cam .foto-producto:nth-child(2),
.galeria-producto.cad-cam .foto-producto:nth-child(3) {
    grid-column: span 2;
}


.galeria-producto.cad-cam .foto-producto:nth-child(4) {
    grid-column: 2 / span 2;
}


.galeria-producto.cad-cam .foto-producto:nth-child(5) {
    grid-column: 4 / span 2;
}



/* =====================================================
   TRABAJOS REALIZADOS
===================================================== */

.trabajos-galeria {
    width: 100%;

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 16px;
}


.trabajo-foto {
    width: 100%;

    height: 250px;

    overflow: hidden;

    background: #ffffff;
}


.trabajo-foto img {
    width: 100%;

    height: 100%;

    object-fit: cover;
}



/* =====================================================
   CONTACTO
===================================================== */

.contacto-contenido {
    display: grid;

    grid-template-columns: 0.7fr 1fr;

    gap: 35px;
}


.contacto-datos {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 18px;
}


.dato-contacto {
    background: #ffffff;

    padding: 22px;

    border-radius: 4px;
}


.dato-contacto h3 {
    color: #123f67;

    font-size: 18px;

    margin-bottom: 7px;
}


.dato-contacto a:hover {
    color: #159bd3;
}


.contacto-mapa {
    background: #ffffff;

    padding: 20px;

    border-radius: 4px;
}


.contacto-mapa h3 {
    color: #123f67;

    margin-bottom: 15px;
}


.contacto-mapa iframe {
    display: block;
}



/* =====================================================
   FORMULARIO
===================================================== */

.formulario-contacto {
    grid-column: 1 / -1;

    background: #ffffff;

    padding: 32px;

    border-radius: 4px;
}


.formulario-contacto h3 {
    color: #123f67;

    font-size: 25px;

    margin-bottom: 8px;
}


.formulario-contacto > p {
    margin-bottom: 25px;
}


.form-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 20px;
}


.campo {
    margin-bottom: 20px;
}


.campo label {
    display: block;

    color: #123f67;

    font-weight: 700;

    margin-bottom: 7px;
}


.campo input,
.campo select,
.campo textarea {
    width: 100%;

    padding: 13px 14px;

    border: 1px solid #c8d8e2;

    border-radius: 4px;

    background: #ffffff;

    color: #173f61;

    font-family: inherit;

    font-size: 16px;

    outline: none;
}


.campo input:focus,
.campo select:focus,
.campo textarea:focus {
    border-color: #159bd3;
}


.campo textarea {
    resize: vertical;
}


.privacidad {
    margin: 10px 0 22px;
}


.privacidad label {
    font-size: 14px;

    display: flex;

    align-items: center;

    gap: 8px;
}


.privacidad input {
    width: 16px;

    height: 16px;
}



/* =====================================================
   PIE
===================================================== */

footer {
    background: #ffffff;

    border-top: 1px solid #d5e3eb;

    text-align: center;

    padding: 30px 20px;

    color: #17466f;
}


footer p {
    margin-bottom: 4px;
}


footer p:last-child {
    color: #159bd3;

    font-size: 14px;
}



/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 1100px) {

    .cabecera {
        height: 105px;
    }


    .logo-link img {
        width: 160px;
    }


    nav {
        gap: 24px;
    }


    nav a {
        font-size: 17px;
    }


    .hero-contenido {
        grid-template-columns: 1fr;
    }


    .hero-texto {
        max-width: 800px;

        margin: 0 auto;
    }


    .hero-fotos {
        max-width: 900px;

        width: 100%;

        margin: 0 auto;
    }


    .laboratorio-contenido {
        grid-template-columns: 1fr;
    }


    .laboratorio-texto {
        max-width: 750px;

        margin: 0 auto;
    }


    .producto {
        flex-direction: column;

        align-items: stretch;
    }


    .producto-contenido {
        flex: none;

        max-width: 750px;
    }


    .galeria-producto {
        max-width: 100% !important;
    }


    .contacto-contenido {
        grid-template-columns: 1fr;
    }


    .formulario-contacto {
        grid-column: auto;
    }

}



@media (max-width: 760px) {

    html {
        scroll-padding-top: 95px;
    }


    .cabecera {
        width: 92%;

        height: 90px;
    }


    .logo-link img {
        width: 125px;
    }


    nav {
        gap: 13px;
    }


    nav a {
        font-size: 14px;
    }


    .hero {
        padding: 45px 0;
    }


    .hero-contenido {
        width: 92%;
    }


    .hero h1 {
        font-size: 44px;
    }


    .hero-descripcion {
        font-size: 18px;
    }


    .hero-contacto p {
        font-size: 16px;
    }


    .hero-fotos {
        grid-template-columns: 1fr;
    }


    .hero-foto {
        height: 280px;
    }


    .seccion {
        width: 92%;

        padding: 45px 22px;

        margin: 25px auto;
    }


    .encabezado-seccion {
        margin-bottom: 30px;
    }


    .encabezado-seccion h2 {
        font-size: 32px;
    }


    .encabezado-seccion p {
        font-size: 17px;
    }


    .laboratorio-imagenes {
        grid-template-columns: 1fr;
    }


    .laboratorio-imagenes img {
        height: 280px;
    }


    .tecnologia-galeria {
        grid-template-columns: 1fr;
    }


    .tecnologia-galeria img {
        height: 250px;
    }


    .producto {
        padding: 22px 18px;
    }


    .galeria-producto.dos-fotos,
    .galeria-producto.tres-fotos {
        height: auto;
    }


    .galeria-producto.dos-fotos {
        grid-template-columns: 1fr;
    }


    .galeria-producto.dos-fotos .foto-producto,
    .galeria-producto.tres-fotos .foto-producto {
        height: 250px;
    }


    .galeria-producto.tres-fotos {
        grid-template-columns: 1fr;
    }


    .galeria-producto.cad-cam {
        grid-template-columns: 1fr 1fr;

        grid-template-rows: repeat(3, 190px);

        height: auto;
    }


    .galeria-producto.cad-cam .foto-producto {
        height: 190px;
    }


    .galeria-producto.cad-cam .foto-producto:nth-child(1),
    .galeria-producto.cad-cam .foto-producto:nth-child(2),
    .galeria-producto.cad-cam .foto-producto:nth-child(3),
    .galeria-producto.cad-cam .foto-producto:nth-child(4),
    .galeria-producto.cad-cam .foto-producto:nth-child(5) {
        grid-column: auto;
    }


    .trabajos-galeria {
        grid-template-columns: 1fr 1fr;
    }


    .trabajo-foto {
        height: 220px;
    }


    .contacto-datos {
        grid-template-columns: 1fr;
    }


    .form-grid {
        grid-template-columns: 1fr;
    }


    .botones {
        flex-direction: column;
    }


    .boton {
        width: 100%;
    }

}