@import url('https://fonts.googleapis.com/css?family=Lato:300,400,700,900');

:root {
    --fuente_principal: 'Lato', sans-serif;
    --telefono: 480px;
    --tablet: 768px;
    --desktop: 1024px;
    --negro: #000000;
    --amarillo: #E08709;
    --azul: #3498db;
    --blanco: #FFFFFF;
    --gris: #e1e1e1;
    --grisOscuro: #333333;
    --separacion: 5rem;
    --delgada: 300;
    --regular: 400;
    --bold: 700;
    --black: 900;
}

html {
    font-size: 62.5%;
    box-sizing: border-box;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

body {
    font-family: var(--fuente_principal);
    font-size: 1.6rem;
    line-height: 1.8;
}

p {
    color: var(--negro);
    font-size: 2rem;
}

.contenedor {
    width: 95%;
    max-width: 120rem;
    margin: 0 auto;
}

a {
    text-decoration: none;
}

img,
picture {
    width: 100%;
    display: block;
}

h1,
h2,
h3,
h4 {
    font-family: var(--fuente_principal);
    margin: calc(var(--separacion) / 2) 0;
    font-weight: 300;
    text-align: center;

}

h1 {
    font-size: 3.8rem;
}

h2 {
    font-size: 4rem;
    color: var(--azul);
}

h3 {
    font-size: 3rem;
}

h4 {
    font-size: 2.6rem;
}

.seccion {
    margin-top: calc(var(--separacion)/2);
    margin-bottom: calc(var(--separacion)/2);
}

.contenido-centrado {
    max-width: 800px;
}


/* =========================
   CARRUSEL HEADER
========================= */

.header-carousel {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.header-carousel .slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.header-carousel .slide.active {
    opacity: 1;
}
.header-carousel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlay oscuro */
.header .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1;
}
.header {
    position: relative;
    min-height: 100vh;
    padding: 1rem 0 3rem 0;
    overflow: hidden;
}


.header h3 {
    color: #FFFFFF;
    text-align: left;
    margin: 0;
}

.header h4 {
    color: #FFFFFF;
    text-align: left;
    margin: 0;


}

.contenido-header {
      position: relative;
    z-index: 2; /* MUY IMPORTANTE */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* Importante para mantener la barra arriba */
    min-height: 45rem;
    position: relative;
    padding-top: 2rem;
    /* Puedes ajustar esto */
}

/* Hero content positioning */
.hero-content {
      display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.5rem;
    flex: 1;
    padding-left: 2rem;
    color: white;
    z-index: 2;
    text-align: left;

    animation: fadeUp 1.2s ease forwards;
}

/* Opcional: si prefieres que en desktop se vea al centro del contenedor */
@media (min-width: 769px) {
    .hero-content {
        justify-content: center;
        height: 100%;
    }
}

.header .btn {
    display: inline-block;
    background-color: #3498db;
    /* Color naranja */
    color: white;
    padding: 18px 20px;
    border-radius: 25px;
    /* Bordes redondeados */
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.header .btn:hover {
    background-color: #0973b1;
    /* Naranja más oscuro al pasar el cursor */
}

.header .btn:active {
    background-color: #000000;
    /* Naranja más oscuro al hacer clic */
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    /* Evita que se desborde si hay poco espacio */
}

@media (max-width: 768px) {
    .hero-content {
        align-items: center;
        text-align: center;
        padding: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .hero-buttons .btn,
    .hero-buttons .btn-whatsapp {
        width: 100%;
        max-width: 300px;
    }
}
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.inicio {
      position: relative;
    min-height: 65vh;
    max-height: 750px;
    overflow: hidden;
}
@media (max-width: 768px) {
    .inicio {
        min-height: 80vh;
        max-height: none;
    }
}


.inicio .contenedor {
    position: relative;
    z-index: 2;
    /* Asegura que el contenido esté encima de la capa oscura */
}

.inicio h3 {
    font-size: 4rem;
}

.barra {
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.barra img {
    width: 150px;
    height: auto;
    max-width: 100%;
}


.navegacion {
    display: flex;
    align-items: center;
    gap: 20px;
}

.navegacion a {
    color: var(--blanco);
    font-size: 1.8rem;
    transition: color 0.3s;
}

.navegacion a:hover {
    color: var(--amarillo);
}

@media (max-width: 768px) {
    .barra {
        flex-direction: column;
        align-items: center;
        /* Centra los elementos en columna */
        gap: 5px;
        /* Espacio entre elementos */
        text-align: center;
    }

    .navegacion {
        flex-direction: column;
        gap: 5px;
        /* Espacio entre enlaces en móvil */
    }

    .navegacion a {
        display: block;
        padding: 5px 0;
    }
}

.btn-whatsapp {
    display: inline-block;
    background-color: #25D366;
    /* Color verde de WhatsApp */
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s ease;
    margin: 0;
}

.btn-whatsapp:hover {
    background-color: #1EBE56;
    /* Color verde más oscuro al pasar el cursor */
}

.btn-whatsapp:active {
    background-color: #128C7E;
    /* Color al hacer clic */
}

.cards {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.card {
    background: #f4f4f4;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: calc(33.333% - 2rem);
    padding: 3rem;
    text-align: center;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

/* Iconos */
.icon {
    font-size: 5rem;
    color: #3498db;
    margin-bottom: 1.5rem;
}

.card h3 {
    font-size: 2.4rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.card p {
    font-size: 1.6rem;
    color: #555;
}

/* Media queries para responsividad */
@media (max-width: 992px) {
    .card {
        width: calc(50% - 1rem);
    }
}

@media (max-width: 768px) {
    .cards {
        flex-direction: column;
        align-items: center;
    }

    .card {
        width: 90%;
    }
}

.hero2 {
    background-image: url('../img/header2.webp');
    background-size: cover;
    background-position: center;
    position: relative;
    color: white;
}

.overlay {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 4rem 2rem;
}

.hero2-content {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
    /* Centramos el texto */
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards;
}

.hero2 p {
    color: white;
    font-size: 1.8rem;
    /* Cambié 1.15rem a 1rem o el tamaño que prefieras */
    line-height: 1.9;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
}


.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .overlay {
        background-color: rgba(0, 0, 0, 0.7);
        padding: 1.5rem 1rem;
    }

    .hero2-content {
        max-width: 100%;
        font-size: 0.85rem;
        line-height: 1.5;
        font-weight: 300;
        padding: 0 0.5rem;
        text-align: center;
        /* también centrado en móvil */
    }
}

.tooltip {
    position: relative;
    cursor: pointer;
}

.tooltip:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 0;
    bottom: 150%;
    background: #333;
    color: #fff;
    padding: 8px;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 10;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    font-size: 14px;
}

a {
    color: var(--azul);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}


.productos {
    margin: 2rem auto;
    max-width: 1200px;

}

.producto {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    transition: transform 0.3s ease;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    height: 300px;
    /* Altura fija para todas las tarjetas */
    background-color: #000000;
}

.producto-texto {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 300px;
    height: 100%;
    box-sizing: border-box;
}

.producto-imagen {
    flex: 1;
    height: 100%;
    min-width: 300px;
    position: relative;
    overflow: hidden;
}

.producto-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.producto h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #46b5ff;

}

.producto p {
    font-size: 1.8rem;
    text-align: center;
    color: white;

}


.producto:hover {
    transform: scale(1.05);
}

.invertido {
    flex-direction: row-reverse;
}

@media (max-width: 768px) {
    .producto {
        flex-direction: column;
        height: auto;
        /* en móviles, que se acomode naturalmente */
    }

    .invertido {
        flex-direction: column-reverse;
    }

    .producto-texto,
    .producto-imagen {
        min-width: 100%;
        height: auto;
    }

    .producto-imagen img {
        height: auto;
        max-height: 300px;
    }
}

.tabs {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 1rem;

}

.tab-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.7rem;
    margin-bottom: 2rem;
}

.tab-buttons button {
    font-size: 1.2rem;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 10px;
    background: #e0e0e0;
    color: #333;
    cursor: pointer;
    display: flex;
    gap: 0.6rem;
    align-items: center;
    transition: background 0.2s ease;
    min-width: 160px;
    justify-content: center;
}

.tab-buttons button.active {
    background: #007BFF;
    color: white;
}

.tab-buttons button span {
    font-weight: 500;
}

.tab-content {
    display: none;
    text-align: center;
    padding: 2rem;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.06);
    animation: fadeIn 0.3s ease-in-out;
}

.tab-content.active {
    display: block;
}

.tab-content h3 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.tab-content p {
    font-size: 1.5rem;
    line-height: 1.7;
    max-width: 900px;
    margin: 0 auto 1.5rem auto;
}

/* =========================
   GALERÍA SERVICIOS (TABS)
========================= */

.servicio-galeria {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1.5rem;
}

.servicio-galeria img {
    width: 220px;
    height: 150px;
    object-fit: cover;
    border-radius: 14px;
    cursor: pointer;
    transition: transform .3s ease, box-shadow .3s ease;
}

.servicio-galeria img:hover {
    transform: translateY(-6px) scale(1.04);
    box-shadow: 0 12px 25px rgba(0,0,0,.35);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.clientes {
    background-color: #ffffff;
    padding: 60px 0;
    text-align: center;
    margin: 0;
    padding: 0;
}

.carrusel2-wrapper {
    overflow: hidden;
    width: 100%;
}

.carrusel2 {
    display: inline-flex;
    animation: scroll 20s linear infinite;
    white-space: nowrap;
}

.carrusel2-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    max-width: 180px;
    height: 80px;
    margin: 0 20px;
    flex: 0 0 auto;
}

.carrusel2-item img {
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.carrusel2-item:hover img {
    transform: scale(1.1);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50%));
    }
}
.contacto-section {
    padding: 4rem 2rem;
    background: #000000;
    text-align: center;
    margin-top: 0;
}

.contacto-container {
    max-width: 1000px;
    margin: 0 auto;
}

.contacto-descripcion {
    font-size: 2rem;
    line-height: 1.8;
    color: #ffffff;
    margin-bottom: 3rem;
}

.contacto-boxes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.contacto-box {
    background: #ffffff;
    padding: 2rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    width: 280px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contacto-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.contacto-box h3 {
    font-size: 2rem;
    color: rgb(0, 0, 0);
    margin-bottom: 0.5rem;
}

.contacto-numero {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: #007BFF;
    text-decoration: none;
}

.contacto-numero:hover {
    text-decoration: underline;
}

/* ==========================
   FORMULARIO DE CONTACTO
========================== */

.formulario-contacto {
    background: #ffffff;
    max-width: 700px;
    margin: 4rem auto 0 auto;
    padding: 4rem 3rem;
    border-radius: 18px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    animation: fadeUp 1s ease forwards;
}

.formulario-contacto h3 {
    font-size: 3rem;
    color: var(--azul);
    margin-bottom: 1rem;
}

.formulario-contacto p {
    font-size: 1.8rem;
    color: #555;
    margin-bottom: 3rem;
}

/* FORM */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

/* INPUT GROUP */
.form-group {
    position: relative;
}

.form-group i {
    position: absolute;
    top: 50%;
    left: 1.5rem;
    transform: translateY(-50%);
    color: var(--azul);
    font-size: 1.8rem;
}

/* INPUTS */
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1.4rem 1.4rem 1.4rem 4.5rem;
    font-size: 1.6rem;
    border-radius: 12px;
    border: 1px solid #ccc;
    outline: none;
    transition: all 0.3s ease;
    font-family: var(--fuente_principal);
}

/* TEXTAREA */
.form-group.textarea i {
    top: 2rem;
    transform: none;
}

.form-group textarea {
    min-height: 130px;
    resize: none;
}

/* FOCUS */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--azul);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

/* BOTÓN */
.btn-form {
    background: linear-gradient(135deg, var(--azul), #0973b1);
    color: white;
    border: none;
    padding: 1.5rem;
    font-size: 1.8rem;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-form:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(52, 152, 219, 0.4);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .formulario-contacto {
        padding: 3rem 2rem;
    }

    .formulario-contacto h3 {
        font-size: 2.6rem;
    }
}

/* ANIMACIÓN */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estilo del botón de WhatsApp */
.contacto-whatsapp-btn {
    margin-top: 2rem; /* espacio entre las tarjetas y el botón */
    text-align: center;
}

.btn-whatsapp {
    display: inline-block;
    background-color: #25D366;
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s ease;
    margin: 0;
}

.btn-whatsapp:hover {
    background-color: #1EBE56;
}

.btn-whatsapp:active {
    background-color: #128C7E;
}
.footer {

    background-color: var(--negro);
    margin-bottom: 0;
    margin: 0;
    padding: 0;

}

.footer p {

    margin-bottom: 0;
    padding-bottom: 1rem;
}

.copyright {
    color: var(--blanco);
    text-align: center;
}

/* ==========================
   WHATSAPP INTEGRADO CONTACTO
========================== */

.whatsapp-contacto {
    display: flex;
    justify-content: center;
    margin: 3rem 0 4rem 0;
}

.whatsapp-contacto a {
    background: linear-gradient(135deg, #25d366, #1ebe5d);
    color: white;
    padding: 1.8rem 3.5rem;
    font-size: 2rem;
    font-weight: bold;
    border-radius: 50px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
}

.whatsapp-contacto a i {
    font-size: 2.6rem;
}

.whatsapp-contacto a:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.6);
}
/* ==========================
   RESPUESTA FORMULARIO
========================== */

.form-response {
    margin-top: 2rem;
    padding: 1.5rem 2rem;
    border-radius: 14px;
    font-size: 1.7rem;
    font-weight: bold;
    text-align: center;
    display: none;
    animation: fadeResponse 0.6s ease;
}

/* ÉXITO */
.form-response.success {
    display: block;
    color: #ffffff;
    background: linear-gradient(135deg, #3498db, #0973b1);
    box-shadow: 0 10px 30px rgba(52, 152, 219, 0.5);
}

/* ERROR */
.form-response.error {
    display: block;
    color: #ffffff;
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    box-shadow: 0 10px 30px rgba(231, 76, 60, 0.5);
}
.modal-galeria {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-galeria.activo {
    display: flex;
}

.modal-box {
    position: relative;
    background: #ffffff;
    padding: 2rem;
    border-radius: 20px;
    max-width: 900px;
    width: 95%;
    animation: subir .4s ease;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
}

.cerrar-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2.5rem;
    cursor: pointer;
    color: #000;
}

.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.galeria-grid img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    transition: transform .3s ease;
}

.galeria-grid img:hover {
    transform: scale(1.05);
}

/* Imagen grande (cuando solo es una) */
.modal-box img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
}


@keyframes fadeResponse {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* MODAL ZOOM */
.img-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.img-modal-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
    animation: zoomIn .3s ease;
}

.cerrar-img {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    color: white;
    cursor: pointer;
}

@keyframes zoomIn {
    from { transform: scale(.8); opacity:0; }
    to { transform: scale(1); opacity:1; }
}

/* Cursor tipo zoom */
.servicio-galeria img {
    cursor: zoom-in;
}

.redes-flotantes {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 9999;
}

.btn-flotante {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.6rem;
    box-shadow: 0 4px 10px rgba(0,0,0,.3);
    transition: transform .3s ease;
}

.btn-flotante:hover {
    transform: scale(1.1);
}

.whatsapp {
    background: #25D366;
}

.facebook {
    background: #1877F2;
}
.hero-title {
    font-size: 3.5rem;
    font-weight:lighter;
    margin: 0;
}

.hero-subtitle {
    font-size: 2rem;
    font-weight: 400;
    margin-top: 10px;
}
