/* =========================================
   1. VARIABLES Y CONFIGURACIÓN BASE
   ========================================= */
:root {
  --color-principal: #049dc0; /* Azul corporativo */
  --oscuro-fondo: #0a0a0a;
  --blanco: #ffffff;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--oscuro-fondo);
  color: var(--blanco);
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* =========================================
   2. NAVEGACIÓN
   ========================================= */
nav {
  display: flex;
  justify-content: flex-end; 
  align-items: center;
  width: 100%; 
  padding: 0 5%; 
  box-sizing: border-box;
  height: 120px; 
  background: rgba(255, 255, 255, 0.8); 
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  position: absolute; 
  top: 0;
  left: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-container {
  position: absolute;
  left: 5%;
  top: 50%; 
  transform: translateY(-50%); 
  z-index: 1100; 
}

.main-logo {
  height: 180px; 
  width: auto;
  display: block;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 40px;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: #000000; 
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
  transition: transform 0.2s;
}

.nav-links a:hover {
  transform: scale(1.15);
  color: var(--color-principal);
}

.nav-btn {
  background: var(--color-principal) !important;
  padding: 12px 30px;
  border-radius: 50px;
  color: white !important;
  font-weight: 800 !important;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.nav-btn:hover {
  transform: scale(1.15) !important;
  background: #0380a0 !important;
}

@media (max-width: 900px) {
  nav { height: auto; flex-direction: column; padding: 15px; gap: 15px; background: rgba(0, 0, 0, 0.9); position: relative; justify-content: center; }
  .logo-container { position: relative; left: auto; top: auto; transform: none; }
  .main-logo { height: 80px; }
  .nav-links { gap: 20px; width: 100%; justify-content: center; flex-wrap: wrap; }
  .nav-links a { color: #ffffff; }
}

/* =========================================
   3. SECCIÓN HERO (INICIO)
   ========================================= */
.hero {
  height: 100vh;
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('banner-hero.png');
  background-size: cover;
  background-position: center;
  display: flex; align-items: center; justify-content: center; text-align: center; position: relative;
}
.hero-content h1 { font-size: 4.5rem; font-weight: 800; margin-bottom: 20px; }
.hero-content p { font-size: 1.3rem; max-width: 700px; margin: 0 auto 40px; opacity: 0.9; }
.highlight { color: var(--color-principal); }
.btn-primary { background: var(--color-principal); color: white; padding: 18px 40px; text-decoration: none; font-weight: 700; border-radius: 4px; transition: 0.4s; box-shadow: 0 4px 15px rgba(4, 157, 192, 0.3); display: inline-block; }
.btn-secondary { border: 2px solid var(--color-principal); color: var(--color-principal); padding: 16px 40px; text-decoration: none; font-weight: 700; border-radius: 4px; margin-left: 15px; transition: 0.4s; display: inline-block; }
.btn-primary:hover { background: #0380a0; transform: translateY(-3px); }
.btn-secondary:hover { background: var(--color-principal); color: white; }

/* =========================================
   SECCIÓN BANNER CTA (ESTILO LIMPIO)
   ========================================= */
.cta-banner-section { width: 100%; background-color: #f4f7f8; border-top: 1px solid #e0e0e0; border-bottom: 1px solid #e0e0e0; padding: 80px 5%; position: relative; }
.cta-container { max-width: 1200px; margin: 0 auto; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 40px; }
.cta-text-content { flex: 0 1 auto; max-width: 600px; text-align: left; }
@media (min-width: 901px) { .cta-container { justify-content: center; gap: 60px; } }
.cta-subtitle { display: block; color: var(--color-principal); font-weight: 800; letter-spacing: 2px; font-size: 0.9rem; margin-bottom: 15px; text-transform: uppercase; }
.cta-text-content h2 { font-size: 2.8rem; color: #1a1d21; margin: 0 0 20px 0; font-weight: 900; line-height: 1.1; text-transform: uppercase; }
.cta-text-content h2 span { color: var(--color-principal); }
.cta-text-content p { color: #555555; font-size: 1.15rem; max-width: 600px; margin: 0; line-height: 1.6; }
.btn-cta-upload { background-color: var(--color-principal); color: #ffffff; text-decoration: none; padding: 22px 55px; border-radius: 6px; display: flex; align-items: center; gap: 15px; transition: all 0.3s ease; box-shadow: 0 10px 25px rgba(4, 157, 192, 0.25); }
.btn-cta-upload .upload-icon { font-size: 2rem; line-height: 0; font-weight: bold; margin-top: -5px; }
.btn-cta-upload .btn-text { font-size: 1.3rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; }
.btn-cta-upload:hover { transform: translateY(-5px); background-color: #0380a0; box-shadow: 0 15px 35px rgba(4, 157, 192, 0.35); }
@media (max-width: 900px) { .cta-banner-section { padding: 50px 5%; text-align: center; } .cta-container { flex-direction: column; gap: 35px; } .cta-text-content h2 { font-size: 2.2rem; } .btn-cta-upload { width: 100%; justify-content: center; box-sizing: border-box; } }


/* =========================================
   4. SECCIÓN SERVICIOS (SCROLL + VÍDEO + TARJETAS CLARAS)
   ========================================= */
.horizontal-scroll-section {
    height: 700vh;
    position: relative;
}

.sticky-container {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    background: transparent;
    display: flex;
    align-items: center;
}

/* Fondo de vídeo */
.video-background-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    background-color: black;
}

.bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.6;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.9) 100%);
    z-index: 1;
}

/* Pista de las tarjetas */
.cards-track {
    display: flex;
    height: 100%;
    width: fit-content;
    padding-left: 10vw;
    position: relative;
    z-index: 10;
    will-change: transform;
}

.card-item {
    width: 70vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 5vw;
}

/* --- ESTILO DE LAS TARJETAS (BLANCO ROTO + LÍNEAS) --- */

.service-box {
    background: rgba(248, 249, 250, 0.96); 
    padding: 50px 60px;
    border-left: 5px solid var(--color-principal);
    color: #333333;
    border-radius: 6px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
    max-width: 650px;
    width: 100%;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2); 
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(4, 157, 192, 0.2);
    padding-bottom: 20px;
    width: 100%;
    gap: 40px;
}

.card-header h3 {
    font-size: 2.2rem;
    margin: 0;
    color: #1a1d21;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.1;
    flex: 1 1 auto;
}

/* Número decorativo */
.num {
    font-size: 6rem;
    font-weight: 900;
    line-height: 1;
    font-family: 'Arial Black', sans-serif;
    color: transparent;
    -webkit-text-stroke: 2px #d1d5db;
    opacity: 1;
    flex-shrink: 0;
}

.service-box p {
    font-size: 1.1rem;
    color: #555555;
    line-height: 1.6;
    margin-bottom: 15px;
}

.service-box strong {
    color: #000000;
    font-weight: 700;
}

/* --- LISTAS DE ESPECIFICACIONES CON COLOR AZUL OSCURO --- */

.specs-list {
    margin-top: 20px;
}

/* REGLA DE SEPARACIÓN: Si hay dos listas seguidas, separamos más la segunda */
.specs-list + .specs-list {
    margin-top: 40px; /* Separación amplia */
    padding-top: 20px;
    border-top: 1px dashed #e0e0e0; /* Línea sutil divisoria */
}

/* ESTILO DE SUBTÍTULOS (COLOR MODIFICADO) */
.specs-list p {
    margin-bottom: 12px;
    color: #113c5f; /* CAMBIO: Tu azul oscuro específico */
    font-weight: 900;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Estilo general de la lista */
.specs-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid #e0e0e0; 
    padding-top: 10px;
}

/* Elementos de lista normales */
.specs-list li {
    font-size: 1rem;
    color: #444444;
    padding-bottom: 8px;
    margin-bottom: 8px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
}

.specs-list li:last-child {
    border-bottom: none; 
}

/* --- AJUSTES PARA TARJETA 04 (PLÁSTICOS EN GRID) --- */
.plastics-list ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 30px;
    border-top: 1px solid #e0e0e0;
    padding-top: 15px;
}

.plastics-list li {
    font-size: 0.95rem;
    flex-direction: column;
    align-items: flex-start;
    border-bottom: 1px solid #e0e0e0 !important; 
    padding-bottom: 6px;
    margin-bottom: 6px;
}

.dual-service p {
    border-bottom: 1px dashed #ccc;
    padding-bottom: 8px;
}

.file-formats {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.badge {
    background: var(--color-principal);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.85rem;
}

.small-note {
    font-size: 0.85rem;
    color: #888;
    font-style: italic;
    margin-top: 10px;
}

/* Tarjeta Intro */
.intro {
    flex-direction: column;
    align-items: flex-start;
}

.intro h2 {
    font-size: 4.5rem;
    line-height: 1;
    margin-bottom: 30px;
    color: #ffffff; 
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.scroll-indicator {
    margin-top: 20px;
    animation: bounce-horizontal 2s infinite;
}

@keyframes bounce-horizontal {
    0%, 20%, 50%, 80%, 100% { transform: translateX(0); }
    40% { transform: translateX(15px); }
    60% { transform: translateX(7px); }
}


/* --- ESTILOS ESPECÍFICOS PARA LA TARJETA DE TUBO (WIDE) --- */

/* Hacemos que esta tarjeta contenedora permita contenido más ancho */
.card-item.wide-card {
    width: 85vw; /* Un poco más ancha que el 70vw normal */
}

/* Ajustes especiales para la caja de servicio del tubo */
.service-box.tube-special-layout {
    max-width: 1100px; /* Permitimos que crezca más a lo ancho */
    padding: 40px;
    display: flex;
    align-items: center;
}

.tube-inner-flex {
    display: flex;
    gap: 50px;
    align-items: center;
    width: 100%;
}

/* Lado Izquierdo (Texto) */
.tube-info {
    flex: 3;
}

.tube-info h2 {
    font-size: 2.8rem;
    margin: 10px 0 20px;
    color: #1a1d21;
    line-height: 1;
}

.tube-desc {
    font-size: 1.05rem;
    color: #555;
    margin-bottom: 25px;
}

.new-badge {
    background: #000;
    color: #fff;
    padding: 5px 10px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 4px;
}

/* Grid de especificaciones pequeño */
.specs-grid-mini {
    display: grid;
    gap: 15px;
    margin-bottom: 25px;
}

.spec-mini {
    display: flex;
    align-items: center;
    gap: 15px;
    background: white;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #eee;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.spec-mini i {
    font-size: 1.2rem;
    color: var(--color-principal);
    width: 25px;
    text-align: center;
}

.spec-mini div {
    display: flex;
    flex-direction: column;
}

.spec-mini strong {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: #113c5f; /* Azul oscuro */
}

.spec-mini span {
    font-size: 0.85rem;
    color: #666;
}

.btn-tube-mini {
    width: 100%;
    text-align: center;
    padding: 15px;
    display: block;
    box-sizing: border-box;
}

/* Lado Derecho (Vídeo) */
.tube-video {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.phone-frame-mini {
    width: 220px; /* Un poco más pequeño para que no ocupe tanto */
    height: 400px;
    background: #000;
    border-radius: 18px;
    overflow: hidden;
    border: 3px solid #333;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    position: relative;
}

.phone-frame-mini iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Ajuste Responsive específico para esta tarjeta */
@media (max-width: 1000px) {
    .tube-inner-flex {
        flex-direction: column-reverse; /* Vídeo arriba o abajo según gusto */
        gap: 30px;
    }
    .phone-frame-mini {
        height: 350px;
        width: 200px;
    }
    .service-box.tube-special-layout {
        max-height: 80vh; /* Para que no se salga en móviles */
        overflow-y: auto; /* Scroll interno si es necesario */
    }
}

@media (max-width: 768px) {
    .card-item {
        width: 90vw;
        margin-right: 2vw;
    }
    .service-box {
        padding: 30px;
    }
    .card-header {
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 10px;
    }
    .num {
        font-size: 4rem;
        margin-bottom: 5px;
        align-self: flex-end;
    }
    .plastics-list ul {
        grid-template-columns: 1fr;
    }
}


/* =========================================
   SECCIÓN INTERMEDIA (FOTO PULICORTE)
   ========================================= */
.intermediate-image-section { width: 100%; height: 500px; background-image: url('pulicorte-fondo.png'); background-size: cover; background-position: center; background-repeat: no-repeat; position: relative; z-index: 20; }
@media (max-width: 768px) { .intermediate-image-section { height: 300px; } }

/* =========================================
   SECCIÓN EMPRESA (DISEÑO LIMPIO + CARRUSEL UNIFICADO)
   ========================================= */
#empresa {
    background-color: #f9fbfd;
    padding: 100px 5%;
    color: #333;
    position: relative;
    overflow: hidden;
}

.empresa-container { max-width: 1200px; margin: 0 auto; }

.brand-header {
    display: block;
    font-size: 1.1rem;
    color: #1a1d21;
    margin-bottom: 40px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-left: 5px solid var(--color-principal);
    padding-left: 15px;
}
.brand-header span { color: var(--color-principal); margin: 0 5px; }

.content-row { display: flex; align-items: center; gap: 60px; }
.text-column { flex: 1; }

.section-subtitle {
    font-family: 'Inter', sans-serif;
    color: var(--color-principal);
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 25px;
}

.text-column p { font-family: 'Inter', sans-serif; font-size: 1.05rem; line-height: 1.7; color: #555; margin-bottom: 20px; }
.text-column strong { color: #000; font-weight: 700; }
.text-column ul { margin-top: 20px; padding-left: 20px; margin-bottom: 30px; }
.text-column ul li { margin-bottom: 10px; color: #444; list-style-type: disc; }

/* CARRUSEL Y ANIMACIÓN SUAVE */
.slides-container { position: relative; min-height: 350px; }
.slide { display: none; animation: fadeSmooth 0.8s ease-in-out; }
.slide.active { display: block; }

@keyframes fadeSmooth {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* CONTROLES UNIFICADOS (Flecha < Puntos > Flecha) */
.carousel-controls-unified { display: flex; align-items: center; gap: 20px; margin-top: 30px; }

.control-btn {
    width: 45px; height: 45px; background: transparent; border: 2px solid var(--color-principal); border-radius: 50%; color: var(--color-principal);
    font-size: 1.2rem; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s ease; padding-bottom: 3px;
}
.control-btn:hover { background: var(--color-principal); color: white; transform: scale(1.1); }

.dots-container { display: flex; gap: 10px; }
.dot { width: 12px; height: 12px; background-color: #cbd5e0; border-radius: 50%; cursor: pointer; transition: all 0.3s ease; }
.dot.active { background-color: var(--color-principal); transform: scale(1.2); }

/* Columna Imagen */
.image-column { flex: 1; position: relative; }

.image-placeholder {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    background: white;
    /* CAMBIO AQUÍ: De 400px a 550px para hacerla más alta */
    height: 550px;
}

.image-placeholder img {
    width: 100%;
    height: 100%;
    /* IMPORTANTE: 'cover' asegura que la foto rellene el nuevo espacio 
       sin deformarse, recortando los lados si es necesario */
    object-fit: cover; 
}

@media (max-width: 900px) {
    #empresa { padding: 60px 5%; }
    .content-row { flex-direction: column; }
    .section-subtitle { font-size: 1.8rem; }
    
    /* CAMBIO EN MÓVIL: También la hacemos más alta aquí (de 250px a 400px) */
    .image-placeholder { height: 400px; }
}


/* =========================================
   SECCIÓN VÍDEO CORPORATIVO (ESTILO CINE)
   ========================================= */
.corporate-video-section {
    background-color: #0a0a0a; /* Fondo oscuro para resaltar el vídeo */
    padding: 100px 5%;
    text-align: center;
    border-top: 1px solid #222;
}

.video-content-wrapper {
    max-width: 1100px; /* Ancho máximo para que no se deforme en pantallas gigantes */
    margin: 0 auto;
}

.video-header h2 {
    color: #ffffff;
    font-size: 2.8rem;
    margin-bottom: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.video-header p {
    color: #888;
    font-size: 1.1rem;
    margin-bottom: 50px;
}

/* MARCO DEL VÍDEO */
.cinema-frame {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    /* Sombra potente azulada para dar efecto de "brillo" */
    box-shadow: 0 20px 60px rgba(4, 157, 192, 0.15); 
    border: 1px solid #333;
    background: #000;
}

.cinema-frame video {
    width: 100%;
    height: auto;
    display: block; /* Quita el espacio blanco extraño que a veces sale debajo */
}

/* Ajuste móvil */
@media (max-width: 768px) {
    .corporate-video-section {
        padding: 60px 5%;
    }
    .video-header h2 {
        font-size: 2rem;
    }
}


/* =========================================
   6. CONTACTO
   ========================================= */
.contact-compact { padding: 80px 5%; background-color: #f4f7f8; display: flex; flex-direction: column; align-items: center; position: relative; z-index: 20; }
.contact-header { text-align: center; margin-bottom: 40px; }
.contact-header h2 { color: #1a1d21; font-size: 2.5rem; margin-bottom: 10px; }
.contact-header p { color: #555555; font-size: 1.1rem; }
.contact-side-by-side { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; width: 100%; max-width: 1150px; background: white; padding: 30px; border-radius: 20px; box-shadow: 0 15px 40px rgba(0,0,0,0.05); }
.form-container, .map-container { width: 100%; min-height: 500px; }
.clean-form { display: flex; flex-direction: column; gap: 15px; }
.clean-form input, .clean-form textarea { padding: 14px; border: 1px solid #e0e0e0; border-radius: 8px; background: #ffffff; color: #333; font-family: inherit; font-size: 0.95rem; }
.clean-form input:focus, .clean-form textarea:focus { outline: none; border-color: var(--color-principal); box-shadow: 0 0 8px rgba(4, 157, 192, 0.1); }
.privacy-container { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; color: #444; }
.privacy-container a { color: var(--color-principal); text-decoration: none; font-weight: 600; }
.privacy-legal { font-size: 0.7rem; color: #888; line-height: 1.3; margin-top: -5px; }
.clean-form .btn-primary { background-color: var(--color-principal); color: white; border: none; padding: 16px; font-weight: bold; font-size: 1rem; border-radius: 8px; cursor: pointer; transition: all 0.3s ease; }
.clean-form .btn-primary:hover { background-color: #0386a4; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(4, 157, 192, 0.3); }
@media (max-width: 900px) { .contact-side-by-side { grid-template-columns: 1fr; padding: 15px; } .map-container { min-height: 300px; order: -1; } }

/* =========================================
   7. FOOTER FINAL (LOGOS GRANDES + CIAN)
   ========================================= */
.site-footer-light {
    background-color: #f4f7f8; /* Gris muy claro (zona contacto) */
    color: #555555;
    padding: 80px 5% 0;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    position: relative;
    z-index: 20;
    border-top: 1px solid #e0e0e0;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Alineación arriba para que los logos no estiren la caja */
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1500px; /* Un poco más ancho para que quepan los logos grandes */
    margin: 0 auto;
    padding-bottom: 60px;
}

.footer-col {
    flex: 1;
    min-width: 200px;
}

/* --- TEXTOS EN AZUL CIAN --- */
/* Esta regla pone todos los títulos y negritas en tu color corporativo */
.footer-col h3, 
.footer-brand-name, 
strong,
b {
    color: var(--color-principal) !important; /* #049dc0 */
}

/* --- COLUMNA 1: CONTACTO --- */
.footer-brand-name {
    font-weight: 800;
    font-size: 1.1rem;
    margin-top: 0;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.contact-details p {
    margin: 0 0 10px;
    line-height: 1.6;
    color: #666;
}

.contact-highlight {
    margin-top: 20px !important;
}

/* --- COLUMNAS LINKS --- */
.footer-col h3 {
    font-weight: 800;
    font-size: 1rem;
    text-transform: uppercase;
    margin-bottom: 25px;
    margin-top: 0;
    letter-spacing: 0.5px;
}

.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-list li {
    margin-bottom: 12px;
}

.footer-links-list a {
    color: #666;
    text-decoration: none;
    transition: all 0.2s;
}

.footer-links-list a:hover {
    color: var(--color-principal);
    font-weight: 700;
    padding-left: 5px;
}

/* --- REDES SOCIALES --- */
.social-icons-container {
    margin-top: 30px;
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-5px) scale(1.1);
}

/* Colores Oficiales */
.instagram { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.linkedin { background: #0077b5; }
.facebook { background: #1877f2; }

/* --- COLUMNA BRANDING (Alineación derecha) --- */
.brand-col {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.logos-stack {
    display: flex;
    flex-direction: column; /* Apila uno encima del otro */
    align-items: flex-end;  /* Alinea a la derecha */
    gap: 0;                 /* Sin hueco automático */
}

/* LOGO DE ARRIBA (LÁSER GARCÍA) */
.logo-stack-1 {
    max-width: 280px; /* Tamaño grande */
    width: 100%;
    height: auto;
    display: block;
    /* Margen negativo abajo para "chupar" al siguiente logo hacia arriba */
    margin-bottom: -20px; 
    position: relative;
    z-index: 2;
}

/* LOGO DE ABAJO (GRUPO GARCÍA) */
.logo-stack-2 {
    max-width: 220px; /* Tamaño grande */
    width: 80%;
    height: auto;
    display: block;
    /* Margen negativo arriba por si acaso el de arriba no bajó suficiente */
    margin-top: -10px;
}

/* AJUSTE PARA MÓVIL (Centrar todo) */
@media (max-width: 900px) {
    .brand-col, .logos-stack {
        align-items: center;
        text-align: center;
    }
}

/* TAMAÑO DE LOGOS - AJUSTADO A "MUCHO MÁS GRANDE" */
.logo-stack-2 {
    max-width: 200px; 
    width: 80%;       
    height: auto;
    opacity: 1;
    margin-top: -30px; 
}

.logos-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0px; /* IMPORTANTE: Ponemos el hueco a 0 */
}

/* --- BARRA COPYRIGHT --- */
.footer-bottom-bar {
    border-top: 1px solid #e0e0e0;
    text-align: center;
    padding: 30px 0;
    margin-top: 40px;
    color: #999;
    font-size: 0.85rem;
}

.footer-bottom-bar p { margin: 0; }

/* --- MÓVIL --- */
@media (max-width: 900px) {
    .footer-container {
        flex-direction: column;
        gap: 50px;
        text-align: center;
        align-items: center;
    }
    
    .brand-col, .logos-stack {
        align-items: center;
        text-align: center;
    }
}

/* =========================================
   8. PÁGINAS LEGALES (TEMA CLARO)
   ========================================= */
body.light-body { background-color: #f4f7f8 !important; color: #333333 !important; }
.light-body .legal-content { color: #333333; }
.light-body .legal-content h1 { color: #1a1d21; border-bottom-color: var(--color-principal); }
.light-body strong { color: #000000 !important; }
.legal-header { display: flex; justify-content: flex-end; align-items: center; padding: 0 5%; background: rgba(0, 0, 0, 0.9); border-bottom: 1px solid rgba(255, 255, 255, 0.1); position: sticky; top: 0; z-index: 1000; height: 180px; }
.logo-link { position: absolute; left: 5%; top: 50%; transform: translateY(-50%); z-index: 1100; }
.legal-logo { height: 200px; width: auto; display: block; }
.btn-back { display: flex; align-items: center; gap: 8px; color: white; text-decoration: none; font-weight: 600; font-size: 0.9rem; padding: 8px 16px; border: 1px solid var(--color-principal); border-radius: 4px; transition: 0.3s; }
.btn-back:hover { background: var(--color-principal); color: white; border-color: var(--color-principal); }
.legal-content { max-width: 900px; margin: 60px auto; padding: 0 5%; color: #dddddd; line-height: 1.8; }
.legal-content h1 { font-size: 2.5rem; color: white; margin-bottom: 40px; border-bottom: 2px solid var(--color-principal); padding-bottom: 20px; }
.legal-content h2 { font-size: 1.4rem; color: var(--color-principal); margin-top: 50px; margin-bottom: 20px; text-transform: uppercase; }
.legal-content p { margin-bottom: 20px; font-size: 1.05rem; }
.legal-content a { color: var(--color-principal); text-decoration: underline; }
.legal-content a:hover { text-decoration: none; color: white; }
.legal-list, .legal-list-dots { list-style: none; padding: 0; margin-bottom: 20px; }
.legal-list li, .legal-list-dots li { margin-bottom: 10px; padding-left: 20px; position: relative; }
.legal-list-dots li::before { content: "•"; color: var(--color-principal); font-weight: bold; font-size: 1.2rem; position: absolute; left: 0; top: -2px; }
.legal-list-numbers { margin-bottom: 20px; padding-left: 20px; }
.legal-list-numbers li { margin-bottom: 15px; padding-left: 10px; }
.legal-list-numbers strong { color: white; }
.light-body .site-footer { background-color: #f4f7f8; border-top: 1px solid #e0e0e0; }
@media (max-width: 768px) { .legal-content h1 { font-size: 2rem; } .legal-content h2 { font-size: 1.2rem; } .legal-header { height: auto; padding: 15px; flex-direction: column; gap: 15px; } .logo-link { position: relative; left: auto; top: auto; transform: none; } .legal-logo { height: 80px; } }
.table-responsive { overflow-x: auto; margin-bottom: 30px; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
.legal-table { width: 100%; border-collapse: collapse; background: white; font-size: 0.9rem; min-width: 600px; }
.legal-table th, .legal-table td { padding: 12px 15px; text-align: left; border-bottom: 1px solid #e0e0e0; }
.legal-table th { background-color: var(--color-principal); color: white; font-weight: 700; text-transform: uppercase; font-size: 0.85rem; }
.legal-table tr:hover { background-color: #f9f9f9; }

/* =========================================
   9. ESTILOS COTIZADOR (PRESUPUESTO) - TEMA CLARO
   ========================================= */
.quoter-section {
    padding: 20px 5%;
    /* Margen superior reducido porque ya lo controlamos con el div espaciador en el HTML */
    margin-top: 20px; 
}

.quoter-container {
    display: flex;
    flex-direction: row;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    align-items: flex-start;
}

.viewer-area {
    flex: 2;
    min-width: 400px;
}

/* VISOR DXF (Mantenemos fondo oscuro o neutro para que resalte el dibujo) */
#dxf-viewer {
    width: 100%;
    height: 550px;
    background: #f0f2f5; /* Gris muy suave en lugar de negro puro */
    border: 1px solid #d1d5db; /* Borde gris claro */
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    cursor: crosshair;
}

/* El canvas necesita ser visible sobre el fondo gris */
#dxf-canvas {
    display: none;
    width: 100%;
    height: 100%;
}

.upload-overlay {
    z-index: 10;
    text-align: center;
    width: 100%;
    display: flex;
    justify-content: center;
}

.dash-box {
    border: 2px dashed #bbb; /* Gris medio */
    padding: 40px;
    border-radius: 10px;
    width: 80%;
    color: #555; /* Texto gris oscuro */
    background-color: rgba(255, 255, 255, 0.8); /* Blanco semitransparente */
    transition: 0.3s;
}

#dxf-viewer:hover .dash-box {
    border-color: var(--color-principal);
    background-color: #fff;
}

.dash-box i {
    font-size: 3rem;
    color: var(--color-principal);
    display: block;
    margin-bottom: 10px;
}

.dash-box h3 {
    color: #333;
    margin-bottom: 5px;
}

.btn-select-dxf {
    background: transparent;
    border: 2px solid var(--color-principal);
    color: var(--color-principal);
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 15px;
    font-weight: bold;
    transition: all 0.3s;
}

.btn-select-dxf:hover {
    background: var(--color-principal);
    color: white;
}

.viewer-footer-info {
    margin-top: 15px;
    text-align: center;
}

.viewer-footer-info p {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

/* BOTONES DEL VISOR (Zoom, Pan, etc.) */
.viewer-tools button {
    background: #fff;
    border: 1px solid #ccc;
    color: #555;
    padding: 5px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    margin: 0 5px;
    transition: 0.2s;
}

.viewer-tools button:hover {
    background: #f0f0f0;
    border-color: #999;
}

/* PANEL DERECHO (CONFIGURACIÓN) - AHORA CLARO */
.config-panel {
    flex: 1;
    min-width: 350px;
    background: #ffffff; /* Fondo blanco */
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e0e0e0; /* Borde sutil */
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); /* Sombra suave */
}

.config-panel h2 {
    margin: 0 0 25px 0;
    font-size: 1.8rem;
    color: #333; /* Título oscuro */
}

.config-panel h2 span {
    color: var(--color-principal);
}

.config-group {
    margin-bottom: 20px;
}

.config-group label {
    display: block;
    color: #555;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 700;
}

/* SELECTORES ESTILO LIMPIO */
.cyber-select {
    width: 100%;
    padding: 12px;
    background: #f9f9f9; /* Fondo muy suave */
    border: 1px solid #ddd;
    color: #333; /* Texto oscuro */
    border-radius: 6px;
    outline: none;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.cyber-select:focus {
    border-color: var(--color-principal);
    background: #fff;
}

/* CAJA DE ESTADÍSTICAS */
.stats-box {
    background: #f4f7f8; /* Gris muy suave */
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
    border: 1px solid #eee;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    color: #666;
    border-bottom: 1px dashed #e0e0e0;
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-row span:last-child {
    color: #333; /* Valor en negro */
    font-weight: bold;
}

/* CAJA DE PRECIO */
.total-price-box {
    background: rgba(4, 157, 192, 0.05); /* Azul muy tenue */
    border: 2px solid var(--color-principal);
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 25px;
}

.price-label {
    font-size: 0.85rem;
    color: var(--color-principal);
    font-weight: 800;
    letter-spacing: 1px;
}

.total-price-box h3 {
    font-size: 3.5rem;
    margin: 10px 0;
    color: #333; /* Precio en oscuro */
    line-height: 1;
}

.tax-note {
    font-size: 0.75rem;
    color: #888;
    font-weight: 600;
    margin-top: 5px;
}

.btn-solicitar {
    width: 100%;
    padding: 20px;
    background: var(--color-principal);
    border: none;
    border-radius: 6px;
    color: white; /* Texto blanco */
    font-size: 1.2rem;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(4, 157, 192, 0.3);
}

.btn-pop {
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.3s;
}

.btn-pop:hover {
    transform: scale(1.02);
    background: #0386a4;
}

.btn-pop:active {
    transform: scale(0.98);
}

@media (max-width: 1000px) {
    .quoter-container {
        flex-direction: column;
    }
    .viewer-area {
        min-width: 100%;
    }
}

/* --- ESTILOS DEL VISOR Y CAJA DE CARGA (PRESUPUESTO) --- */

#dxf-viewer {
    position: relative;
    width: 100%;
    height: 100%;
    /* Asegúrate de que el padre (viewer-area) tenga altura definida en el HTML o CSS,
       si no, pon aquí una altura fija temporal como: min-height: 500px; */
    background-color: #000;
    overflow: hidden;
    display: flex;       /* CLAVE: Esto permite centrar el contenido hijo */
    justify-content: center;
    align-items: center;
    border: 1px solid #333;
}

#upload-ui {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    display: flex;       /* CLAVE: Esto centra la caja discontinua */
    justify-content: center;
    align-items: center;
    pointer-events: none; /* Permite que el drag & drop funcione en el contenedor padre */
}

/* Habilitamos los eventos del ratón solo en el contenido interactivo si es necesario, 
   pero para el drag & drop general, mejor dejar pointer-events: none en el padre 
   y auto en el botón */
#upload-ui .dash-box {
    pointer-events: auto;
}

.dash-box {
    border: 2px dashed #444;
    padding: 40px;
    text-align: center;
    border-radius: 8px;
    background-color: rgba(20, 20, 20, 0.9);
    color: #eee;
    max-width: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.dash-box i {
    font-size: 2rem;
    color: #00bcd4;
    font-style: normal;
    margin-bottom: 5px;
}

.dash-box h3 {
    margin: 0;
    font-weight: 500;
    font-size: 1.2rem;
}

.dash-box p {
    margin: 0;
    color: #888;
    font-size: 0.9rem;
}

/* Botón específico para seleccionar archivo */
.btn-select-dxf {
    background: transparent;
    border: 1px solid #00bcd4;
    color: #00bcd4;
    padding: 10px 20px;
    margin-top: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.btn-select-dxf:hover {
    background: #00bcd4;
    color: #000;
}

.viewer-area {
    height: 500px; /* O la altura que desees para la zona de dibujo */
    width: 100%;
}

/* =========================================
   TEMA CLARO (FONDO DE PÁGINA)
   ========================================= */
body.light-theme {
    background-color: #f4f7f8 !important; /* Gris claro (casi blanco) */
    color: #333333 !important;             /* Texto oscuro */
}

/* Opcional: Si quieres forzar que el menú también se vea claro si es transparente */
body.light-theme nav {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid #e0e0e0;
}

body.light-theme .nav-links a {
    color: #000000;
}

/* =========================================
   BOTÓN VOLVER ARRIBA (SCROLL TO TOP)
   ========================================= */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--color-principal); /* Tu azul corporativo #049dc0 */
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 9999; /* Para que quede por encima de todo */
    
    /* Estado inicial: oculto */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

/* Clase que añade JS cuando bajas haciendo scroll */
.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background-color: #0380a0; /* Un tono más oscuro al pasar el ratón */
    transform: translateY(-5px); /* Efecto de flotar */
}

/* =========================================
   10. MODAL / POP-UP (PRÓXIMAMENTE)
   ========================================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Oculto por defecto */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

/* Clase para mostrar el modal */
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #ffffff;
    border-radius: 12px;
    padding: 40px;
    max-width: 550px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    border-top: 5px solid var(--color-principal);
    
    /* Animación de entrada */
    transform: translateY(30px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #999;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #333;
}

.modal-icon {
    font-size: 3.5rem;
    color: var(--color-principal);
    margin-bottom: 20px;
}

.modal-content h2 {
    color: #1a1d21;
    font-size: 2.2rem;
    margin-top: 0;
    margin-bottom: 15px;
    font-weight: 800;
    text-transform: uppercase;
}

.modal-content p {
    color: #555;
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.modal-content p strong {
    color: #1a1d21 !important;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.btn-modal {
    padding: 15px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-email {
    background-color: var(--color-principal);
    color: white !important;
}

.btn-email:hover {
    background-color: #0380a0;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(4, 157, 192, 0.3);
}

.btn-phone {
    background-color: #f4f7f8;
    color: #333 !important;
    border: 1px solid #ddd;
}

.btn-phone:hover {
    background-color: #e2e8f0;
    border-color: #cbd5e0;
}