:root {
    --naranja-fruta: lch(69.43% 75.64 68.88 / 0.884);
    ;
    --fondo-sitio: #fff2e6;
    --blanco-puro: #ffffff;
    --texto-principal: #333333;
    --borde-suave: #e0e0e0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--fondo-sitio);
    color: var(--texto-principal);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
}

/* HEADER  */
.main-header {
    background-color: var(--naranja-fruta);
    color: var(--blanco-puro);
    padding: 10px 5%;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-container {
    justify-self: start;
    display: flex;
    align-items: center;
    padding-left: 10px; /* Le da un pequeño margen desde el borde izquierdo */
}

.logo-img {
    height: 48px;
    width: auto;
    display: block;
    background-color: white;
    padding: 6px 12px;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.03);
    /* Efecto suave al pasar el mouse */
}

.main-nav {
    display: flex;
    gap: 30px;
    justify-self: center;
}

.nav-link {
    color: var(--blanco-puro);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    padding: 5px 0;
}

.nav-link:hover {
    color: #ffe8cc;
}

.nav-link.activo {
    font-weight: bold;
    border-bottom: 2px solid var(--blanco-puro);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-self: end;
    white-space: nowrap;
}

.btn-cotizar {
    background-color: var(--blanco-puro);
    color: var(--naranja-fruta);
    padding: 8px 22px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    transition: 0.3s;
}

.btn-cotizar:hover {
    background-color: #ffe8cc;
    transform: translateY(-2px);
}

.cart-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--blanco-puro);
    transition: color 0.3s ease;
}

.cart-link:hover {
    color: #ffe8cc;
}

.cart-icon-svg {
    width: 24px;
    height: 24px;
    display: block;
}

/* =========================================
   CARRUSEL PRINCIPAL (INICIO) - DISEÑO TARJETA LATERAL
   ========================================= */
.carrusel-hero {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 750px;
    min-height: 450px;
    overflow: hidden;
    background-color: #000;
}

.carrusel-contenedor {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    /* Quitamos el justify-content: center para poder mover la caja libremente */
}

.slide.activa {
    opacity: 1;
    z-index: 1;
}

/* Imágenes de fondo sin filtro oscuro */
.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    /* Filtro oscuro eliminado para que la imagen sea la protagonista */
}

/* --- LA NUEVA TARJETA DE CONTENIDO --- */
.slide-contenido {
    position: absolute;
    bottom: 80px;
    /* Distancia desde abajo */
    left: 8%;
    /* Distancia desde la izquierda */
    background-color: rgba(11, 25, 44, 0.95);
    /* Azul oscuro semi-transparente */
    border-left: 8px solid var(--naranja-fruta);
    /* Borde naranja */
    padding: 35px 40px;
    max-width: 450px;
    /* Ancho máximo de la caja */
    color: var(--blanco-puro);
    z-index: 2;
    text-align: left;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    /* Sombra elegante */
}

.slide-contenido h2 {
    font-size: 1.6rem;
    margin-top: 0;
    margin-bottom: 12px;
    font-weight: 800;
    letter-spacing: 1px;
}

.slide-contenido p {
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 25px;
    color: #e0e0e0;
    /* Un gris muy clarito para contrastar suavemente */
}

/* Botón dentro de la tarjeta */
.slide-contenido .btn-naranja {
    background-color: var(--naranja-fruta);
    color: var(--blanco-puro);
    padding: 12px 25px;
    border-radius: 4px;
    /* Bordes ligeramente cuadrados */
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-block;
    transition: 0.3s;
}

.slide-contenido .btn-naranja:hover {
    background-color: lch(69.43% 75.64 68.88 / 0.884);
    ;
    transform: translateY(-2px);
}

/* --- Botones de flechas y puntos --- */
.btn-carrusel {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    cursor: pointer;
    padding: 15px 20px;
    font-size: 1.8rem;
    z-index: 10;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.btn-carrusel:hover {
    background-color: var(--naranja-fruta);
}

.btn-carrusel.prev {
    left: 20px;
}

.btn-carrusel.next {
    right: 20px;
}

.carrusel-puntos {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    z-index: 10;
}

.punto {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.punto.activo,
.punto:hover {
    background-color: var(--naranja-fruta);
}

/* Responsivo para celulares */
@media screen and (max-width: 768px) {
    .slide-contenido {
        bottom: 50px;
        left: 5%;
        right: 5%;
        max-width: 90%;
        padding: 25px;
    }

    .slide-contenido h2 {
        font-size: 1.3rem;
    }

    .slide-contenido p {
        font-size: 0.95rem;
    }
}

/* CATÁLOGO  */
.catalogo-container {
    padding: 40px 5%;
}

.grid-productos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.producto-card {
    background-color: var(--blanco-puro);
    border: 1px solid var(--borde-suave);
    border-radius: 8px;
    padding: 20px;
    text-align: left;
    transition: transform 0.2s, box-shadow 0.2s;
}

.producto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.producto-img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    margin-bottom: 15px;
}

.producto-precio {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--texto-principal);
    margin: 10px 0 5px 0;
}

/* SECCIÓN QUIÉNES SOMOS */
.conocenos-section {
    background-color: var(--fondo-sitio);
    padding: 80px 20px;
    display: flex;
    justify-content: center;
}

.conocenos-content {
    max-width: 900px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.conocenos-titulo-wrapper {
    margin-bottom: 40px;
    display: inline-block;
}

.linea-horizontal {
    border: none;
    border-top: 2px solid var(--naranja-fruta);
    width: 100%;
    margin: 15px auto;
}

.conocenos-titulo-wrapper h2 {
    color: var(--naranja-fruta);
    font-size: 1.6rem;
    font-weight: 500;
    letter-spacing: 5px;
    margin: 0;
}

.conocenos-texto {
    color: #666;
    font-size: 1.15rem;
    line-height: 1.8;
}

.conocenos-texto p {
    margin-bottom: 15px;
}

.quienes-somos-section {
    padding: 80px 0; /* Esto le da aire arriba y abajo a los textos */
}

/* SECCIÓN NUESTRO EQUIPO*/
.equipo-section {
    position: relative;
    background-color: var(--naranja-fruta);
    padding: 80px 5%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    text-align: center;
}

.forma-fondo {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.08);
    z-index: 0;
}

.forma-1 {
    width: 600px;
    height: 600px;
    border-radius: 43% 57% 73% 27% / 41% 33% 67% 59%;
    top: -100px;
    left: -150px;
    transform: rotate(45deg);
}

.forma-2 {
    width: 800px;
    height: 800px;
    border-radius: 64% 36% 27% 73% / 55% 57% 43% 45%;
    bottom: -300px;
    right: -200px;
    transform: rotate(-20deg);
}

.equipo-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1000px;
}

.equipo-titulo {
    color: var(--blanco-puro);
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 50px;
    letter-spacing: 3px;
}

.equipo-galeria {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.equipo-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.equipo-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.equipo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    filter: grayscale(100%);
    transition: filter 0.5s ease;
}

.equipo-card:hover .equipo-img {
    filter: grayscale(0%);
}

.card-ancha {
    flex: 2 1 500px;
    height: 400px;
}

.card-alta {
    flex: 1 1 300px;
    height: 400px;
}

.equipo-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 60px 20px 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), transparent);
    text-align: left;
    color: white;
    box-sizing: border-box;
}

.equipo-info h4 {
    margin: 0 0 5px 0;
    font-size: 1.3rem;
    font-weight: bold;
}

.equipo-info p {
    margin: 0;
    font-size: 0.95rem;
    color: #e0e0e0;
}

/* SECCIÓN SERVICIOS */
.servicios-section {
    padding: 60px 5%;
    background-color: var(--blanco-puro);
    text-align: center;
}

.servicios-titulo {
    color: var(--naranja-fruta);
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 80px;
    text-transform: uppercase;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.servicio-item {
    position: relative;
    display: flex;
    flex-direction: column;
    margin-top: 70px;
    align-items: center;
}

.icono-circular {
    width: 140px;
    height: 140px;
    position: absolute;
    top: -70px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50%;
    z-index: 2;
    border: 2px solid #000;
    background-color: #0b192c;
    overflow: hidden;
}

.icono-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
    transform: scale(1.15);
}

.servicio-card {
    background-color: var(--naranja-fruta);
    color: white;
    padding: 90px 25px 40px 25px;
    border-radius: 10px;
    width: 100%;
    box-sizing: border-box;
    flex-grow: 1;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    z-index: 1;
}

.servicio-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    padding-bottom: 15px;
    font-weight: bold;
}

.servicio-card p {
    font-size: 1rem;
    line-height: 1.5;
    text-align: left;
    margin: 0;
}

/* SECCIÓN RESEÑAS / LÍNEA DE TIEMPO ZIGZAG */
.resenas-section {
    padding: 80px 5%;
    background-color: var(--fondo-sitio);
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.timeline {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 40px auto 0;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--naranja-fruta);
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 0;
}

.timeline-item {
    width: 50%;
    position: relative;
    padding: 20px 40px;
    box-sizing: border-box;
    z-index: 1;
}

.timeline-item.izquierda {
    align-self: flex-start;
    display: flex;
    justify-content: flex-end;
}

.timeline-item.derecha {
    align-self: flex-end;
    display: flex;
    justify-content: flex-start;
    margin-top: -60px;
}

.timeline-item.izquierda:nth-child(n+2) {
    margin-top: -60px;
}

.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--blanco-puro);
    border: 4px solid var(--naranja-fruta);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.timeline-item.izquierda .timeline-dot {
    right: -12px;
}

.timeline-item.derecha .timeline-dot {
    left: -12px;
}

.timeline-content {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    position: relative;
    width: 100%;
    max-width: 320px;
}

.resena-img-completa {
    width: 100%;
    height: 400px;
    object-fit: contain;
    object-position: center;
    display: block;
}

/* FOOTER PROYECTA (DISEÑO 3 COLUMNAS) */
.footer-proyecta {
    background-color: var(--naranja-fruta);
    padding: 80px 5%;
    color: var(--blanco-puro);
}

.footer-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr 1.2fr;
    gap: 60px;
    justify-content: space-between;
}

.footer-logo-box {
    background-color: white;
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 25px;
    display: inline-block;
}

.footer-logo {
    height: 45px;
    display: block;
}

.footer-nav {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.footer-nav li {
    margin-bottom: 12px;
}

.footer-nav a {
    color: var(--blanco-puro);
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 500;
    transition: 0.3s;
}

.footer-nav a:hover {
    color: #ffe8cc;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.footer-title {
    font-size: 1.4rem;
    letter-spacing: 2px;
    margin: 0 0 30px 0;
    font-weight: 800;
}

.footer-subtitle {
    font-size: 1.1rem;
    margin: 0 0 15px 0;
    font-weight: 700;
}

.footer-text {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px 0;
    font-size: 0.95rem;
}

.footer-mt-4 {
    margin-top: 35px;
}

.footer-link {
    display: block;
    color: var(--blanco-puro);
    text-decoration: none;
    margin-bottom: 12px;
    font-size: 0.95rem;
    transition: 0.3s;
}

.footer-link:hover {
    color: #ffe8cc;
}

.footer-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.footer-input,
.footer-textarea {
    width: 100%;
    padding: 15px;
    background-color: var(--fondo-sitio);
    border: none;
    border-radius: 5px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--texto-principal);
    box-sizing: border-box;
}

.footer-textarea {
    height: 130px;
    resize: none;
}

.footer-btn {
    background-color: #444;
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.95rem;
    letter-spacing: 1px;
    cursor: pointer;
    align-self: flex-start;
    transition: 0.3s;
}

.footer-btn:hover {
    background-color: #222;
}

/* LA MAGIA DE LAS ANIMACIONES */
.animar-scroll {
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.8s ease-out;
}

.animar-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}


/* PÁGINA SOLUCIONES - ESTILO CUADRÍCULA */

/* 1. Hero de Soluciones */
.solutions-hero {
    height: 300px;
    background: linear-gradient(rgba(11, 25, 44, 0.85), rgba(11, 25, 44, 0.85)),
        url('https://images.unsplash.com/photo-1552664730-d307ca884978?q=80&w=1200&auto=format&fit=crop') center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--blanco-puro);
    padding: 0 5%;
}

.solutions-hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 800;
}

.solutions-hero-content p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

/* 2. Sección de Grilla de Servicios */
.services-grid-section {
    padding: 80px 5%;
    background-color: var(--fondo-sitio);
}

.container-grid {
    max-width: 1100px;
    margin: 0 auto;
}

/* Cabecera de la Grilla */
.grid-header {
    text-align: center;
    margin-bottom: 60px;
}

.linea-naranja-corta {
    border: none;
    border-top: 3px solid var(--naranja-fruta);
    width: 60px;
    margin: 0 auto 15px auto;
}

.grid-header h2 {
    color: var(--naranja-fruta);
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 10px 0;
    letter-spacing: 1px;
}

.grid-header p {
    color: #666;
    font-size: 1rem;
}

/* LA CUADRÍCULA (GRILLA) */
.services-quad-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Estilo de cada Bloque de Servicio */
.service-block {
    background-color: var(--blanco-puro);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Ícono Circular del Bloque */
.service-icon-wrapper {
    width: 80px;
    height: 80px;
    background-color: var(--fondo-sitio);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
    overflow: hidden;
    /* Asegura que la imagen temporal no se salga del círculo */
}

.service-icon-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-block h3 {
    color: var(--texto-principal);
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.service-block p {
    color: #777;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 20px 0;
    flex-grow: 1;
}

.read-more {
    color: var(--naranja-fruta);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.read-more:hover {
    color: #c66c00;
}

/* 3. Sección CTA */
.solutions-cta {
    background-color: #0b192c;
    color: var(--blanco-puro);
    padding: 80px 5%;
    text-align: center;
}

.cta-content h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.btn-naranja-soluciones {
    background-color: var(--naranja-fruta);
    color: var(--blanco-puro);
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: background-color 0.3s, transform 0.3s;
    display: inline-block;
}

.btn-naranja-soluciones:hover {
    background-color: #e67e00;
    transform: translateY(-2px);
}

/* AJUSTES RESPONSIVOS GLOBALES */
@media screen and (max-width: 900px) {

    /* Timeline / Reseñas */
    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 20px;
        align-self: center;
        justify-content: flex-start !important;
        margin-top: 0 !important;
    }

    .timeline-item.izquierda .timeline-dot,
    .timeline-item.derecha .timeline-dot {
        left: 21px;
        right: auto;
    }

    .card-ancha,
    .card-alta {
        flex: 1 1 100%;
        height: 350px;
    }

    /* Footer */
    .footer-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    /* Grilla de Soluciones */
    .services-quad-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 600px) {

    /* Grilla de Soluciones para teléfonos */
    .services-quad-grid {
        grid-template-columns: 1fr;
    }

    .solutions-hero-content h1 {
        font-size: 2rem;
    }
}

/* VENTANA EMERGENTE (MODAL) DE SERVICIOS */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    /* Fondo oscuro semitransparente */
    z-index: 2000;
    display: none;
    /* Oculto por defecto */
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(3px);
}

.modal-overlay.active {
    display: flex;
    animation: fadeInModal 0.3s ease;
}

@keyframes fadeInModal {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-box {
    display: flex;
    max-width: 850px;
    width: 90%;
    background-color: var(--naranja-fruta);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    min-height: 400px;
}

/* Botón cerrar "X" */
.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background-color: #111;
    color: white;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 5px;
    padding: 2px 10px;
    z-index: 10;
    transition: background 0.3s;
}

.modal-close:hover {
    background-color: #333;
}

/* Mitad Izquierda (Imagen) */
.modal-left {
    flex: 1;
    min-width: 300px;
    background-color: #000;
}

.modal-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Mitad Derecha (Contenido) */
.modal-right {
    flex: 1.2;
    padding: 40px;
    color: #333;
    display: flex;
    flex-direction: column;
}

.modal-right h2 {
    font-size: 2rem;
    margin-top: 0;
    margin-bottom: 20px;
    color: #222;
    font-weight: 500;
}

/* Pestañas (Tabs) */
.modal-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.modal-tab-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
}

/* Estado activo  */
.modal-tab-btn.active {
    background-color: #124236;
    color: white;
}

/* Estado inactivo  */
.modal-tab-btn:not(.active) {
    background-color: lch(69.43% 75.64 68.88 / 0.884);
    color: rgba(255, 255, 255, 0.6);
}

.modal-tab-btn:not(.active):hover {
    background-color: #c06500;
    color: white;
}

/* Contenedores de contenido de pestañas */
.modal-pane {
    display: none;
}

.modal-pane.active {
    display: block;
    animation: fadeInPane 0.4s;
}

@keyframes fadeInPane {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-pane p {
    font-size: 1rem;
    line-height: 1.6;
    color: #eee;
    margin: 0;
}

/* Formulario de Contacto en Modal */
.modal-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-form input,
.modal-form textarea {
    width: 100%;
    padding: 15px;
    background-color: var(--fondo-sitio);
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    color: #333;
    box-sizing: border-box;
}

.modal-form input::placeholder,
.modal-form textarea::placeholder {
    color: #a0a0a0;
}

.modal-form textarea {
    height: 100px;
    resize: none;
}

.btn-contactar-modal {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 0.95rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-contactar-modal:hover {
    background-color: #5a6268;
}

/* Para que los botones originales no tengan fondo */
.open-modal-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

/* Adaptación a Celulares */
@media screen and (max-width: 768px) {
    .modal-box {
        flex-direction: column;
        max-height: 90vh;
        overflow-y: auto;
    }

    .modal-left {
        min-height: 200px;
        flex: none;
    }

    .modal-right {
        padding: 25px;
    }
}

/* ESTILOS DEL MODAL DE COTIZACIÓN */
.modal-cotizacion-box {
    background-color: #f8f9fa;
    width: 90%;
    max-width: 700px;
    border-radius: 8px;
    position: relative;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    max-height: 90vh;
    overflow-y: auto;
}

.formulario-cotizacion .form-group {
    margin-bottom: 20px;
}

.formulario-cotizacion .radio-group {
    display: flex;
    gap: 30px;
    margin-bottom: 25px;
    font-weight: bold;
    color: #333;
    font-size: 0.95rem;
}

/* Estilo de los campos de texto */
.formulario-cotizacion input[type="text"],
.formulario-cotizacion input[type="email"],
.formulario-cotizacion input[type="tel"],
.formulario-cotizacion textarea {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid #dcdcdc;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.95rem;
    color: #333;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.formulario-cotizacion input:focus,
.formulario-cotizacion textarea:focus {
    outline: none;
    border-color: #999;
}

.formulario-cotizacion textarea {
    height: 150px;
    resize: vertical;
}

/* Sección de subir archivo */
.file-group {
    margin-top: 30px;
    margin-bottom: 30px;
}

.file-group input[type="file"] {
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #333;
}

.file-help {
    font-size: 0.85rem;
    color: #6c757d;
    padding-left: 12px;
    border-left: 3px solid #00a8e8;

    line-height: 1.4;
}

/* Botón de Enviar */
.btn-enviar-cot {
    background-color: lch(69.43% 75.64 68.88 / 0.884);
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 10px;
}

.btn-enviar-cot:hover {
    background-color: #cc0000;
}



/* DISEÑO MÓVIL (CELULARES)                  */

@media (max-width: 768px) {
    
    /* 1. Arreglar el Header (Encabezado) */
    .main-header {
        flex-direction: column; 
        height: auto; 
        padding: 20px 10px;
        gap: 15px; 
    }

    /* 2. Arreglar los enlaces del menú */
    .main-nav {
        display: flex;
        flex-direction: column; 
        align-items: center; 
        width: 100%;
        gap: 12px;
    }

    /* 3. Arreglar el Footer */
    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 30px; /
    }

    /* 4. Achicar los títulos */
    h1 {
        font-size: 24px;
    }
}