/* === ESTILOS GENERALES === */
html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background-color: #FAFAFA;
    color: #333;
}

/* === ENCABEZADO (Logo y Slogan) - ¡CON RAYAS! === */
header {
    width: 100%;
    
    /* Centro negro puro, bordes se oscurecen hacia el dorado/marrón */
    background: radial-gradient(circle, #000000 60%, #2e2505 100%);
    
    padding: 25px 0 15px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-bottom: 4px solid #D4AF37;
}

/* === LOGO CON ANIMACIÓN DE RESPIRACIÓN === */

/* 1. Definimos la animación (el ciclo de respiración) */
@keyframes goldenBreath {
    0% {
        transform: scale(1); /* Tamaño normal */
        filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.2)); /* Brillo tenue */
    }
    50% {
        transform: scale(1.05); /* Crece un 5% (sutil) */
        filter: drop-shadow(0 0 25px rgba(212, 175, 55, 1)); /* Brillo intenso y dorado */
    }
    100% {
        transform: scale(1); /* Vuelve a tamaño normal */
        filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.2)); /* Vuelve a brillo tenue */
    }
}

.logo-header {
    max-width: 280px; 
    height: auto;
    
    /* 2. Aplicamos la animación */
    /* nombre | duración | suavidad | repetición */
    animation: goldenBreath 4s ease-in-out infinite; 
}

.logo-header:hover {
    cursor: pointer;
    /* Opcional: Pausar la animación cuando pones el mouse encima */
    /* animation-play-state: paused; */
}

/* === SLOGAN (Debajo del logo) === */
.slogan {
    color: #CCCCCC; 
    font-size: 0.9em;
    font-weight: 400;
    margin-top: 15px;
    margin-bottom: 0;
}

/* === BARRA DE NAVEGACIÓN === */
/* === BARRA DE NAVEGACIÓN === */
nav {
    width: 100%;
    /* Cambio: Negro casi puro para continuidad con el final de tu header */
    background-color: #0a0a0a; 
    display: flex;
    justify-content: center;
    align-items: center;
    /* Sombra suave para separar del contenido */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    
    /* Opcional: Borde superior muy fino para separar del header */
    border-top: 1px solid rgba(255, 255, 255, 0.05); 
}

nav a {
    color: #e0e0e0; /* Blanco no tan brillante para no cansar la vista */
    text-decoration: none;
    padding: 13px 15px; /* Más espacio vertical y horizontal */
    font-weight: 500;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1px; /* Separa las letras: toque elegante */
    transition: color 0.3s ease;
    
    /* Necesario para la animación de la línea */
    position: relative; 
}

/* Efecto Hover: Solo texto dorado, sin fondo de bloque */
nav a:hover {
    background-color: transparent; 
    color: #D4AF37; 
}

/* === ANIMACIÓN DE LÍNEA MÁGICA === */
/* Crea una línea invisible que aparece al pasar el mouse */
nav a::after {
    content: '';
    position: absolute;
    width: 0; /* Empieza invisible (ancho 0) */
    height: 2px;
    bottom: 12px; /* Posición desde abajo */
    left: 50%;
    background-color: #D4AF37; /* Color de la línea */
    transition: width 0.3s ease, left 0.3s ease; /* Animación suave */
}

nav a:hover::after {
    width: 60%; /* La línea crece hasta el 60% del ancho del texto */
    left: 20%; /* Se centra automáticamente (50% - la mitad del ancho) */
}

/* === ESTILOS HERO CON VIDEO === */
.hero-section {
    position: relative; /* Ancla para los elementos superpuestos */
    height: 80vh; /* 80% de la altura de la pantalla */
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden; /* Oculta cualquier desborde del video */
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Detrás de todo */
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Mágico: hace que el video cubra todo el espacio */
}

/* Overlay oscuro para legibilidad */
.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* 50% de opacidad negra */
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3; /* Encima del video y del overlay */
    color: #FFFFFF; /* Texto blanco */
    max-width: 600px;
    padding: 20px;
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 2.8em;
    color: #FFFFFF; /* Texto blanco */
    margin-bottom: 15px;
}

.hero-content p {
    font-size: 1.1em;
    color: #FAFAFA; /* Texto blanco (ligeramente gris) */
}


/* === ESTILOS DE LA SECCIÓN DE SERVICIOS === */
.services-section {
    background-color: #FFFFFF; 
    padding: 70px 20px;
    width: 100%;
    box-sizing: border-box;
    text-align: center; /* Centra el título */
}

.services-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    /* gap: 30px; <- REEMPLAZADO */
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background-color: #F1F1F1; 
    border-radius: 12px;
    padding: 35px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    flex-basis: 300px; 
    flex-grow: 1;
    max-width: 380px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    
    margin: 15px; /* <- AÑADIDO (Crea 30px de espacio entre tarjetas) */
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.service-card h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5em;
    color: #222222;
    margin-top: 0;
    margin-bottom: 15px;
}

.service-card p {
    font-family: 'Roboto', sans-serif;
    font-size: 0.95em;
    color: #555555;
    line-height: 1.6;
}

/* === ESTILOS SECCIÓN "QUIÉNES SOMOS" === */
.about-section {
    background-color: #FFFFFF; /* Fondo blanco */
    padding: 70px 20px;
    text-align: center;
}

.about-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2em;
    color: #222222;
    margin-top: 0;
    margin-bottom: 20px;
}

.about-section p {
    font-family: 'Roboto', sans-serif;
    font-size: 1.1em;
    color: #555555;
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto;
}

/* === ESTILOS NUEVA SECCIÓN DE PRODUCTOS === */
.products-section {
    background-color: #F1F1F1; 
    padding: 70px 0;
    width: 100%;
    box-sizing: border-box;
}

.products-section > h2 { /* Título principal "Nuestros Productos" */
    font-family: 'Playfair Display', serif;
    font-size: 2.2em;
    color: #222222;
    text-align: center;
    margin-top: 0;
    margin-bottom: 20px;
}

/* Contenedor de una sola categoría */
.category-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Título de la categoría (ej. "Paneles Solares") */
.category-container h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8em;
    color: #333;
    border-bottom: 2px solid #D4AF37;
    display: inline-block;
    padding-bottom: 5px;
    margin-top: 20px;
    margin-bottom: 25px;
}

/* La tarjeta de producto */
.product-card {
    background-color: #FFFFFF; 
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex: 0 0 350px; /* Ancho fijo */

    margin-right: 20px; /* <- AÑADIDO */
}
/* AÑADIDO: quita el margen a la última tarjeta */
.product-card:last-child {
    margin-right: 0;
}


.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.product-card h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3em; 
    color: #222222;
    margin: 25px 20px 10px 20px;
}

.product-card p {
    font-family: 'Roboto', sans-serif;
    font-size: 0.95em;
    color: #555555;
    line-height: 1.6;
    padding: 0 25px 30px 25px;
    margin: 0;
}

/* === ESTILOS DEL FOOTER/CONTACTO === */
footer {
    background-color: #333333;
    color: #CCCCCC;
    text-align: center;
    padding: 70px 20px 40px 20px;
}

footer h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2em;
    color: #FFFFFF;
    margin-top: 0;
    margin-bottom: 20px;
}

footer p.cta-text {
    font-size: 1.1em;
    color: #CCCCCC;
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto 30px auto;
}

a.main-contact-link {
    color: #D4AF37;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.3em;
    transition: color 0.2s ease;
}
a.main-contact-link:hover {
    color: #FFFFFF;
}

p.copyright-text {
    font-size: 0.9em;
    color: #AAAAAA;
    margin: 40px 0 15px 0;
}

.social-links a {
    color: #D4AF37;
    text-decoration: none;
    font-size: 0.9em;
    margin: 0 10px;
    transition: color 0.2s ease;
}
.social-links a:hover {
    color: #FFFFFF;
}
.social-links span {
    color: #AAAAAA;
}

.whatsapp-container {
    margin-top: 40px; 
    display: block;   
}


/* === ESTILO PROFESIONAL PARA TÍTULOS DE SECCIÓN === */
.hero-content h1, /* <- CAMBIO */
.services-section > h2,
.products-section > h2,
.about-section h2,
.partners-section h2,
.join-us-section h2 { 
    position: relative;
    padding-bottom: 20px;
    margin-bottom: 50px;
}

.hero-content h1::after, /* <- CAMBIO */
.services-section > h2::after,
.products-section > h2::after,
.about-section h2::after,
.partners-section h2::after,
.join-us-section h2::after { 
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 4px;
    background-color: #D4AF37;
    border-radius: 2px;
}

footer h2 {
    position: relative;
    padding-bottom: 20px;
    margin-bottom: 50px;
}
footer h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 4px;
    background-color: #D4AF37;
    border-radius: 2px;
}


/* === ESTILOS PARA SCROLL POR CLICS === */
.scroller-wrapper {
    position: relative;
    max-width: 720px; /* (350px * 2) + 20px gap */
    margin: 0 auto; 
}

.products-scroller {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    /* gap: 20px; <- REEMPLAZADO */
    padding: 10px 10px 20px 10px;
    scroll-behavior: smooth;
    
    /* Ocultamos la barra de scroll */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE / Edge */
}
.products-scroller::-webkit-scrollbar {
    display: none; /* Chrome / Safari */
}

.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(calc(-50% - 20px)); 
    z-index: 10;
    background-color: #FFFFFF;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    font-size: 1.5em;
    font-weight: 600;
    color: #333;
    transition: all 0.2s ease;
}

.scroll-btn:hover {
    background-color: #D4AF37;
    color: #111;
    border-color: #D4AF37;
}

.scroll-btn.prev {
    left: 0px; 
}
.scroll-btn.next {
    right: 0px;
}

/* === ESTILOS SECCIÓN SOCIOS ESTRATÉGICOS === */
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.partners-section {
    background-color: #F1F1F1; /* Fondo gris claro, alternando */
    padding: 70px 0;
    text-align: center;
    overflow: hidden; /* Oculta el desborde del scroller */
}

.scroller-container {
    max-width: 1200px;
    margin: 0 auto;
    /* Efecto de "fade" en los bordes */
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.logo-scroller {
    display: flex;
    width: fit-content; /* Se ajusta al contenido */
    /* Aplica la animación */
    animation: scroll 30s linear infinite;
}

.logo-scroller:hover {
    animation-play-state: paused; /* Pausa la animación al pasar el mouse */
}

.logo-group {
    display: flex;
    align-items: center;
    flex-shrink: 0; /* Evita que los grupos se encojan */
}

.partner-logo {
    padding: 0 60px; /* CAMBIO: Aumentado el espacio */
}

.partner-logo img {
    max-height: 150px; /* TAMAÑO DE ESCRITORIO */
    width: auto;
    filter: grayscale(100%); /* Logos en escala de grises */
    opacity: 0.7;
    transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease; /* Añadido transform a la transición */
}

.partner-logo img:hover {
    filter: grayscale(0%); /* Color al pasar el mouse */
    opacity: 1;
    transform: scale(1.15); /* Ligeramente más grande al hacer hover */
}


/* === ESTILOS SECCIÓN "TRABAJA CON NOSOTROS" === */
/* (Estos estilos solo son usados por trabaja.php) */
.join-us-section {
    background-color: #FFFFFF; /* Fondo blanco, alternando */
    padding: 70px 20px;
    text-align: center;
}

.join-us-text {
    font-size: 1.1em;
    color: #555555;
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto 40px auto; /* Centrado y con espacio */
}

.join-us-form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left; /* Alinea etiquetas a la izquierda */
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box; /* Importante para que el padding no desborde */
    font-family: 'Roboto', sans-serif;
    font-size: 1em;
}
.form-group textarea {
    resize: vertical; /* Permite al usuario ajustar la altura */
}

/* Estilo para el input de archivo */
.form-group input[type="file"] {
    font-family: 'Roboto', sans-serif;
}
/* Estilo del botón de envío */
.submit-btn {
    background-color: #D4AF37; /* Dorado */
    color: #111;
    border: none;
    padding: 14px 25px;
    font-size: 1em;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
    border-radius: 8px;
    cursor: pointer;
    text-transform: uppercase;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.submit-btn:hover {
    background-color: #333; /* Gris oscuro al pasar el mouse */
    color: #FFFFFF;
}

/* Mensajes de éxito o error */
.form-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-weight: 500;
}
.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}


/* ================================================= */
/* ===== MEDIA QUERIES PARA RESPONSIVIDAD MÓVIL ===== */
/* ================================================= */

/* Para tablets y teléfonos grandes (hasta 768px) */
@media (max-width: 768px) {

    /* --- Hero Video --- */
    .hero-section {
        height: 60vh; /* Altura más pequeña en móviles */
    }
    .hero-content h1 {
        font-size: 2.2em; /* Reducir h1 */
    }

    /* --- Fuentes --- */
    .services-section > h2,
    .products-section > h2,
    .about-section h2,
    .partners-section h2, 
    .join-us-section h2,
    footer h2 {
        font-size: 1.8em; /* Reducir h2 */
        margin-bottom: 40px;
    }

    .category-container h3 {
        font-size: 1.5em; /* Reducir h3 */
    }

    .product-card h4 {
        font-size: 1.2em;
    }

    /* --- Espaciado General --- */
    .hero-section, /* <- CAMBIO */
    .services-section,
    .about-section,
    .products-section,
    .partners-section, 
    .join-us-section,
    footer {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    /* --- Navegación --- */
    nav {
        flex-wrap: wrap; /* Permite que los links bajen si no caben */
        padding: 5px 0;
    }
    nav a {
        padding: 10px 12px; /* Menos padding */
        font-size: 0.8em;
    }

    /* --- Tarjetas de Servicios --- */
    .services-container {
        flex-direction: column; /* Forzar a apilarse */
    }
    .service-card {
        max-width: 100%; /* Ocupar todo el ancho disponible */
        margin: 0 0 20px 0; /* Solo margen inferior */
    }

    /* --- Carrusel de Productos --- */
    .scroll-btn {
        display: none; /* Ocultar botones, el usuario deslizará */
    }

    .scroller-wrapper {
        max-width: none; /* Permitir que el wrapper ocupe el 100% */
        margin: 0;
    }

    .product-card {
        /* Reducir el tamaño de la tarjeta para que se vea bien */
        flex: 0 0 280px; 
        margin-right: 20px; /* <- AÑADIDO (para reemplazar gap) */
    }
    .product-card img {
        height: 200px; /* Reducir altura de imagen */
    }


    /* --- Títulos de Categoría --- */
    .category-container {
        padding: 0 15px; /* Menos padding lateral */
        text-align: center; /* Centrar el título de categoría */
    }

    /* --- Socios --- */
    .scroller-container {
        -webkit-mask-image: none; /* Desactiva el fade en móviles */
        mask-image: none;         /* Desactiva el fade en móviles */
    }
    
    .logo-scroller {
        animation-duration: 20s; /* Más rápido en móvil */
    }
    .partner-logo {
        padding: 0 30px; /* Espacio reducido para móviles */
    }
    .partner-logo img {
        max-height: 50px; /* Logos más pequeños y adecuados para móvil */
    }

    /* --- Footer --- */
    footer p.cta-text {
        font-size: 1em;
    }
    .social-links {
        display: flex;
        flex-direction: column; /* Apilar enlaces sociales */
        gap: 10px; /* gap sí funciona bien en móviles */
    }
    .social-links span {
        display: none; /* Ocultar el separador "|" */
    }
}

/* Para teléfonos más pequeños (hasta 420px) */
@media (max-width: 420px) {
    .logo-header {
        max-width: 240px; /* Logo más pequeño */
    }

    .hero-content h1 {
        font-size: 2em; /* h1 más pequeño */
    }

    .product-card {
        flex: 0 0 250px; /* Tarjeta de producto aún más pequeña */
    }

    .partner-logo img {
        max-height: 40px; /* Logos aún más pequeños para teléfonos */
    }
}

/* ================================================= */
/* ===== BOTÓN FLOTANTE (CATÁLOGO) - V.5 (PERSONALIZADO) ===== */
/* ================================================= */

.floating-catalog-btn {
    /* --- Posición --- */
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;

    /* --- Tamaño y Forma --- */
    width: 65px;
    height: 65px;
    border-radius: 50%;
    
    /* --- TUS CAMBIOS --- */
    /* Borde negro sólido para mayor contraste */
    border: 2px solid #000000; 
    /* Tu degradado personalizado */
    background: radial-gradient(circle at 35% 35%, rgba(212, 175, 55, 0.6), #D4AF37 60%, #baab88 100%);

    /* --- Sombra (Interior y Exterior) --- */
    box-shadow: 
        inset 0 3px 4px rgba(255, 255, 255, 0.4), /* Brillo superior */
        inset 0 -3px 4px rgba(0, 0, 0, 0.1), /* Sombra interna sutil */
        0 6px 15px rgba(0, 0, 0, 0.4); /* Sombra externa más oscura por el borde negro */

    /* --- Contenido --- */
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;

    /* --- Transiciones --- */
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.floating-catalog-btn:hover {
    transform: scale(1.15) translateY(-3px);
    
    /* Al pasar el mouse, hacemos el dorado un poco más intenso/brillante 
       para que se note que es interactivo */
    background: radial-gradient(circle at 35% 35%, 
        rgba(255, 215, 0, 0.8), /* Más brillante al inicio */
        #D4AF37 50%, 
        #baab88 100%
    );

    box-shadow: 
        inset 0 3px 4px rgba(255, 255, 255, 0.6),
        inset 0 -3px 4px rgba(0, 0, 0, 0.2),
        0 10px 20px rgba(0, 0, 0, 0.5);
        
    border-color: #000000; /* Mantenemos el borde negro */
}

/* --- Estilos del ícono (Libro) --- */
.floating-catalog-btn svg {
    width: 32px;
    height: 32px;
    stroke: #000000; /* Ícono negro para combinar con el borde */
    stroke-width: 2;
    fill: rgba(255, 255, 255, 0.15); /* Relleno blanco muy sutil */
    transition: all 0.3s ease;
}

.floating-catalog-btn:hover svg {
    stroke: #000000; 
    fill: rgba(255, 255, 255, 0.4); /* Se ilumina más al pasar el mouse */
    transform: scale(1.05);
}

/* --- Media Queries (Móvil) --- */
@media (max-width: 768px) {
    .floating-catalog-btn {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
    }
    .floating-catalog-btn svg {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 420px) {
    .floating-catalog-btn {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
    }
    .floating-catalog-btn svg {
        width: 24px;
        height: 24px;
    }
}


/* ================================================= */
/* ===== MEDIA QUERIES PARA RESPONSIVIDAD DEL BOTÓN ===== */
/* ================================================= */
/* (Se ajusta el tamaño del botón y del SVG interno) */

@media (max-width: 768px) {
    .floating-catalog-btn {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
    }
    .floating-catalog-btn svg {
        width: 26px; /* Ícono más pequeño */
        height: 26px;
    }
}

@media (max-width: 420px) {
    .floating-catalog-btn {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
    }
    .floating-catalog-btn svg {
        width: 24px; /* Ícono aún más pequeño */
        height: 24px;
    }
}

/* ================================================= */
/* === ESTILOS DE PRODUCTOS (REDISEÑADO PREMIUM) === */
/* ================================================= */

.products-section {
    background-color: #F8F9FA; /* Un gris un poco más frío/moderno */
    padding: 80px 0;
    width: 100%;
    box-sizing: border-box;
}

.products-section > h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5em; /* Un poco más grande */
    color: #111;
    text-align: center;
    margin-top: 0;
    margin-bottom: 40px;
    letter-spacing: 1px; /* Elegancia */
}

/* Contenedor de categoría */
.category-container {
    max-width: 1240px; /* Un poco más ancho para que respiren las tarjetas */
    margin: 0 auto;
    padding: 0 20px;
}

.category-container h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8em;
    color: #111;
    /* Eliminamos el borde inferior simple y usamos uno más moderno */
    border-bottom: none; 
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    margin-top: 30px;
    margin-bottom: 30px;
}

/* Decoración debajo del título de categoría */
.category-container h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px; /* Linea corta y elegante */
    height: 3px;
    background-color: #D4AF37;
    transition: width 0.3s ease;
}

.category-container:hover h3::after {
    width: 100%; /* Se expande al pasar el mouse por la sección */
}

/* === LA TARJETA DE PRODUCTO (LA ESTRELLA DEL SHOW) === */
.product-card {
    background-color: #FFFFFF;
    border-radius: 16px; /* Bordes más redondeados */
    /* Sombra inicial suave y difusa */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05); 
    overflow: hidden; /* Vital para el efecto de zoom */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Efecto "rebote" sutil */
    flex: 0 0 350px; 
    margin-right: 20px;
    position: relative; /* Para posicionar elementos decorativos */
    border: 1px solid rgba(0,0,0,0.03); /* Borde casi invisible */
    
    /* Flexbox interno para que el contenido se distribuya bien */
    display: flex;
    flex-direction: column;
}

.product-card:last-child {
    margin-right: 0;
}

/* --- EFECTO HOVER --- */
.product-card:hover {
    transform: translateY(-12px); /* Sube más */
    /* LA MAGIA: Sombra dorada brillante */
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.25); 
    border-color: rgba(212, 175, 55, 0.3);
}

/* --- IMAGEN --- */
.product-card img {
    width: 100%;
    height: 260px; /* Un poco más alta */
    object-fit: cover;
    transition: transform 0.6s ease; /* Transición lenta y suave */
    /* Filtro sutil para unificar colores, se quita al hover */
    filter: brightness(0.95);
}

.product-card:hover img {
    transform: scale(1.12); /* Zoom in */
    filter: brightness(1.05); /* Se ilumina */
}

/* --- CONTENIDO TEXTUAL --- */
.product-card h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4em; 
    color: #111;
    margin: 25px 25px 10px 25px;
    transition: color 0.3s ease;
}

.product-card:hover h4 {
    color: #D4AF37; /* El título se vuelve dorado */
}

.product-card p {
    font-family: 'Roboto', sans-serif;
    font-size: 0.95em;
    color: #666; /* Texto un poco más suave para contraste con el título */
    line-height: 1.6;
    padding: 0 25px 35px 25px;
    margin: 0;
}

/* --- DECORACIÓN EXTRA (Línea inferior animada) --- */
.product-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, #D4AF37, #FDC830); /* Degradado dorado */
    transition: width 0.4s ease;
}

.product-card:hover::after {
    width: 100%; /* La línea recorre toda la tarjeta */
}

/* ================================================= */
/* ===== ESTILOS PÁGINA CATÁLOGO (catalogo.php) ===== */
/* ================================================= */

.catalog-grid {
    display: flex;
    flex-wrap: wrap; 
    justify-content: center; 
    gap: 30px; /* Más espacio entre tarjetas */
    padding: 40px 20px;
}

.catalog-grid .product-card {
    margin-right: 0;
    /* Esto asegura que las tarjetas no se estiren demasiado en pantallas grandes */
    max-width: 350px; 
    width: 100%;
}

/* AJUSTE RESPONSIVO MANTENIDO */
@media (max-width: 768px) {
    .product-card {
        flex: 0 0 280px; 
        margin-right: 20px;
    }
    .catalog-grid {
        gap: 20px;
    }
}

/* === ESTILOS DEL MENÚ DE FILTROS === */
.filter-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 50px;
    padding: 0 20px;
}

.filter-btn {
    background-color: transparent;
    border: 2px solid #e0e0e0;
    border-radius: 30px;
    padding: 10px 25px;
    font-family: 'Roboto', sans-serif;
    font-size: 1em;
    font-weight: 500;
    color: #555;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: #D4AF37;
    color: #D4AF37;
    transform: translateY(-2px);
}

.filter-btn.active {
    background-color: #D4AF37;
    border-color: #D4AF37;
    color: #111;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

/* Animación */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.category-wrapper {
    animation: fadeInUp 0.5s ease forwards;
}


/*===================================================*/
/*ESTILO BOTON WHATSAPP*/
/*===================================================*/
/* Contenedor para el margen */
/* Contenedor */
.whatsapp-container {
    margin-top: 30px;
    margin-bottom: 30px;
    text-align: center;
    width: 100%; /* Asegura que ocupe el ancho para centrar */
}

/* Botón base */
.btn-whatsapp {
    display: inline-flex;       /* Flexbox */
    align-items: center;        /* Centrado vertical perfecto */
    justify-content: center;    /* Centrado horizontal */
    
    background-color: #D4AF37; 
    color: #1a1a1a;
    
    /* Padding generoso */
    padding: 12px 28px;
    border-radius: 50px;
    
    /* Texto */
    text-decoration: none;
    font-weight: bold;
    font-size: 16px; /* Usar px en lugar de rem a veces ayuda en móviles */
    
    /* Reset de bordes y apariencia en iOS */
    border: none;
    -webkit-appearance: none;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    transition: transform 0.2s ease, background-color 0.3s;
}

.btn-whatsapp:hover {
    background-color: #eebb2c;
    transform: translateY(-2px);
    cursor: pointer;
}

/* Ajustes del Icono */
.whatsapp-icon {
    width: 20px;       
    height: 20px;
    fill: currentColor;
    display: block;    /* CRUCIAL: Convierte el SVG en bloque */
    margin-right: 10px; /* Usamos margin en vez de gap por compatibilidad */
    flex-shrink: 0;     /* Evita que se aplaste */
}

/* Ajustes del Texto */
.btn-text {
    display: inline-block; /* Permite controlar alineación mejor */
    line-height: 1;        /* Resetea la altura de línea para centrar exacto */
    margin-top: 1px;       /* Truco óptico: a veces el texto se ve 1px arriba en Safari */
}

/* ================================================= */
/* ===== SECCIÓN DE PROYECTOS (OPTIMIZADO SAFARI/MÓVIL) ===== */
/* ================================================= */

.projects-section {
    background-color: #1a1a1a; 
    padding: 60px 20px;
    text-align: center;
}

.projects-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5em;
    color: #FFFFFF;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 20px;
}

.projects-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #D4AF37;
}

/* --- LA GRILLA (GRID) --- */
.projects-grid {
    display: grid;
    /* CAMBIO: Bajamos a 280px para que quepa en CUALQUIER celular sin romperse */
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 30px; 
    max-width: 1400px;
    margin: 0 auto;
}

/* --- TARJETA DE PROYECTO --- */
.project-item {
    position: relative; 
    height: 420px; 
    border-radius: 16px; /* Bordes un poco más redondeados */
    
    /* FIX SAFARI: Esto evita que la imagen se salga de los bordes redondeados */
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    mask-image: radial-gradient(white, black);
    overflow: hidden; 
    isolation: isolate; /* Crea un nuevo contexto de apilamiento */
    
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    border: 1px solid #333;
    background-color: #000;
    
    /* Transición suave */
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* --- EFECTO HOVER (SOLO EN PC) --- */
/* Usamos @media (hover: hover) para que este efecto "exagerado" 
   solo ocurra en computadoras con mouse, no en celulares */
@media (hover: hover) {
    .project-item:hover {
        transform: translateY(-10px) scale(1.02); /* Movimiento más sutil para Safari */
        z-index: 10;
        box-shadow: 0 20px 50px rgba(0,0,0,0.8);
        border-color: #D4AF37;
    }
    
    .project-item:hover img {
        transform: scale(1.1);
        filter: brightness(0.4); /* Oscurece imagen */
    }
    
    .project-item:hover .project-overlay {
        transform: translateY(0); /* Sube el texto */
        background: rgba(0, 0, 0, 0.85);
    }
    
    .project-item:hover .project-overlay p {
        opacity: 1;
        max-height: 200px; /* Despliega texto */
    }
}

/* --- IMAGEN --- */
.project-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease, filter 0.4s ease;
    /* FIX SAFARI: Evita parpadeos */
    will-change: transform;
}

/* --- CAPA SUPERPUESTA (OVERLAY) --- */
.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px;
    box-sizing: border-box;
    text-align: left;
    
    /* Fondo base: Degradado para que el texto blanco siempre se lea */
    background: linear-gradient(to top, rgba(0,0,0,0.95) 10%, rgba(0,0,0,0.4) 100%);
    
    /* En PC, el overlay se moverá. En móvil, se queda fijo. */
    transition: all 0.4s ease;
}

/* --- TEXTOS --- */
.project-tag {
    display: inline-block;
    background-color: #D4AF37;
    color: #000;
    font-size: 0.75em;
    font-weight: 700;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 4px;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.project-overlay h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5em;
    color: #fff;
    margin: 5px 0 10px 0;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5); /* Sombra para leer mejor */
}

.project-overlay p {
    font-family: 'Roboto', sans-serif;
    font-size: 0.95em;
    color: #eee;
    margin: 0;
    line-height: 1.5;
    
    /* Configuración por defecto (PC): Texto oculto o cortado */
    opacity: 0.9;
    max-height: 0; /* Oculto hasta hover en PC */
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.3s ease;
}


/* ================================================= */
/* ===== VERSIÓN MÓVIL (TOUCH) - IMPORTANTE ===== */
/* ================================================= */

@media (max-width: 1024px) {
    /* En Tablets y Celulares cambiamos la lógica */
    
    .projects-grid {
        gap: 20px;
        padding: 0 15px; /* Margen lateral seguro */
    }

    .project-item {
        height: auto; /* Altura flexible */
        min-height: 450px; /* Altura mínima asegurada */
        /* Quitamos efectos hover complejos que confunden al táctil */
        transform: none !important; 
    }
    
    .project-item img {
        height: 450px; /* Forzamos altura de imagen */
        filter: brightness(0.6); /* Imagen siempre un poco oscura para leer texto */
    }

    /* El Overlay en móvil SIEMPRE muestra la información */
    .project-overlay {
        background: linear-gradient(to top, rgba(0,0,0,0.95) 20%, transparent 100%);
        padding-bottom: 30px;
    }

    .project-overlay h3 {
        font-size: 1.4em;
    }

    .project-overlay p {
        /* En móvil, el texto SIEMPRE es visible */
        max-height: none; 
        opacity: 1;
        display: block;
        margin-top: 10px;
        font-size: 0.9em;
    }
    
    /* Pequeño indicador visual de "tarjeta" */
    .project-item:active {
        transform: scale(0.98); /* Efecto sutil al tocar con el dedo */
    }
}

/* ================================================= */
/* === CALCULADOR SOLAR (DISEÑO BASE) === */
/* ================================================= */

.calc-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 50px; /* Aumentamos el espacio entre ambas columnas para que respiren mejor */
    
    /* LA MAGIA DEL ANCHO COMPLETO */
    max-width: 100%; 
    width: 100%;
    margin: 0;
    border-radius: 0; /* Quitamos los bordes curvos para el efecto "Edge to Edge" */
    
    /* Padding dinámico: 60px arriba/abajo, y 8% a los lados para no pegar el texto a la pantalla */
    padding: 60px 8%; 
    box-sizing: border-box; /* Vital para que el padding no genere scroll horizontal */
    
    background-color: #1a1a1a; 
    color: #e0e0e0;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    font-family: 'Roboto', sans-serif;
}

.calc-panel {
    flex: 1;
    min-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 30px; /* Un poco más de espacio vertical entre los bloques */
}

.calc-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5em;
    color: #fff;
    margin: 0 0 10px 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3); /* Línea dorada sutil */
    padding-bottom: 15px;
}

.calc-subtitle {
    font-size: 0.9em;
    color: #aaaaaa;
    font-weight: 500;
    margin: 0 0 15px 0;
}

/* === PANEL IZQUIERDO === */

.dial-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.dial-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 8px solid #2a2a2a;
    border-top-color: #D4AF37; /* Simula el progreso dorado */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle, #222 50%, #111 100%);
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
}

.dial-amount {
    font-size: 2em;
    font-weight: 700;
    color: #D4AF37;
}

.dial-currency {
    font-size: 0.9em;
    color: #888;
}

.slider-input {
    width: 80%;
    accent-color: #D4AF37; /* Tinte dorado para navegadores modernos */
}

.location-grid {
    display: flex;
    gap: 15px;
}

.map-placeholder {
    flex: 1;
    height: 120px;
    background-color: #2a2a2a;
    border-radius: 12px;
    border: 1px solid #333;
    /* Aquí puedes poner un background-image con el mapa */
}

.sun-hours {
    flex: 1;
    background-color: #2a2a2a;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    border: 1px solid #333;
}

.sun-hours p {
    font-size: 0.8em;
    margin-top: 0;
}

.gauge-val {
    display: block;
    font-size: 1.5em;
    font-weight: 700;
    color: #D4AF37;
}

.roof-options {
    display: flex;
    gap: 15px;
}

.roof-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.9em;
}

/* === PANEL DERECHO === */

.result-card {
    background-color: #222222;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.05);
}

.system-proposal {
    display: flex;
    gap: 20px;
    align-items: center;
}

.house-mockup {
    flex: 2;
    height: 100px;
    background-color: #333;
    border-radius: 8px;
    /* Aquí irá tu imagen 3D de la casa */
}

.system-stats {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: right;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-big {
    font-size: 1.8em;
    font-weight: 700;
}

.text-green {
    color: #4ade80; /* Verde brillante para resultados positivos */
}

.savings-grid {
    display: flex;
    justify-content: space-between;
}

.savings-amount {
    font-size: 1.5em;
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
}

.chart-placeholder {
    display: flex;
    align-items: flex-end;
    gap: 5px;
    height: 60px;
    border-bottom: 1px solid #444;
}

.chart-placeholder .bar {
    width: 15px;
    background-color: #4ade80;
    border-radius: 3px 3px 0 0;
    opacity: 0.8;
    transition: height 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.3s ease;
}

.savings-right {
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.amortization-val {
    font-size: 2em;
    font-weight: 700;
    color: #D4AF37;
}

.impact-grid {
    display: flex;
    justify-content: space-between;
}

.impact-item {
    display: flex;
    flex-direction: column;
}

.calc-submit-btn {
    background: linear-gradient(135deg, #444, #222);
    color: #fff;
    border: 1px solid #555;
    padding: 15px 20px;
    border-radius: 12px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 500;
}

.calc-submit-btn:hover {
    background: linear-gradient(135deg, #D4AF37, #baab88);
    color: #000;
    border-color: #D4AF37;
}

/* Responsividad */
@media (max-width: 768px) {
    .calc-wrapper {
        flex-direction: column;
    }
}

/* Estilo para el input de consumo que reemplaza al span */
.dial-amount-input {
    font-size: 2em;
    font-weight: 700;
    color: #D4AF37;
    background: transparent;
    border: none;
    outline: none;
    text-align: center;
    width: 90%;
    font-family: inherit;
    /* Transición suave cuando el usuario hace clic (focus) */
    transition: text-shadow 0.3s ease;
}

/* Efecto visual al hacer clic para escribir */
.dial-amount-input:focus {
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

#plataforma {
    padding: 0;
    background-color: #1a1a1a; /* Igualamos el color de fondo para que no queden líneas blancas */
}

/* ==========================================================================
   ESTILOS DEL MODAL (CAPTURA DE LEADS)
   ========================================================================== */

#lead-modal {
    display: none; 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0,0,0,0.85); /* Fondo oscuro semitransparente */
    z-index: 1000; 
    justify-content: center; 
    align-items: center;
    backdrop-filter: blur(5px); /* Efecto de desenfoque moderno */
}

.modal-content {
    background: #1a1a1a; 
    padding: 40px; 
    border-radius: 12px; 
    border: 1px solid #D4AF37; /* Borde dorado AlphaSol */
    width: 90%; 
    max-width: 550px; 
    color: white; 
    position: relative; 
    box-shadow: 0 15px 40px rgba(0,0,0,0.6); /* Sombra profunda */
    animation: slideUp 0.3s ease-out; /* Animación de entrada */
}

/* Animación de aparición suave */
@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

#close-modal {
    position: absolute; 
    top: 15px; 
    right: 20px; 
    background: transparent; 
    border: none; 
    color: #888; 
    font-size: 2em; 
    cursor: pointer; 
    transition: color 0.3s, transform 0.2s;
}

#close-modal:hover {
    color: #D4AF37; /* Se vuelve dorado al pasar el mouse */
    transform: scale(1.1);
}

.modal-content h3 {
    color: #D4AF37; 
    margin-top: 0; 
    margin-bottom: 10px; 
    text-align: center; 
    font-size: 1.6em;
}

.modal-content p {
    font-size: 0.95em; 
    color: #ccc; 
    text-align: center; 
    margin-bottom: 30px; 
    line-height: 1.5;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block; 
    font-size: 0.9em; 
    margin-bottom: 8px; 
    color: #aaa; 
    font-weight: bold;
    letter-spacing: 0.5px;
}

.form-group input {
    width: 100%; 
    padding: 12px 15px; 
    background: #222; 
    border: 1px solid #444; 
    border-radius: 8px; 
    color: white; 
    font-size: 1em;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box; /* Asegura que el padding no rompa el ancho */
}

/* Efecto luminoso (Glow) al hacer clic en un input */
.form-group input:focus {
    outline: none;
    border-color: #D4AF37;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.3);
}

#btn-descargar-pdf {
    width: 100%; 
    padding: 15px; 
    background: linear-gradient(135deg, #D4AF37 0%, #B8962E 100%); /* Degradado sutil */
    color: #000; 
    border: none; 
    border-radius: 8px; 
    font-weight: 800; 
    font-size: 1.1em; 
    cursor: pointer; 
    transition: transform 0.2s, box-shadow 0.3s; 
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
    margin-top: 10px;
}

#btn-descargar-pdf:hover {
    transform: translateY(-2px); /* Se levanta un poco al pasar el mouse */
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

#btn-descargar-pdf:disabled {
    background: #555;
    color: #888;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Estilos para que el PDF se vea corporativo y centrado */
/* Limpieza total para que los elementos del PDF no hereden márgenes de la web */
#pdf-template * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

#pdf-template {
    padding: 40px; /* Margen interno fijo para todo el reporte */
}

.pdf-section {
    margin-bottom: 25px; /* Separación clara entre bloques */
}

/* =========================================
   ESTILOS DEL MODAL DE DESCARGA
========================================= */
.modal-overlay {
    display: none; 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0,0,0,0.85); 
    z-index: 1000; 
    justify-content: center; 
    align-items: center; 
    backdrop-filter: blur(5px);
}

.modal-content {
    background: #1a1a1a; 
    padding: 40px; 
    border-radius: 12px; 
    border: 1px solid #D4AF37; 
    width: 90%; 
    max-width: 550px; 
    color: white; 
    position: relative; 
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
}

.modal-close-btn {
    position: absolute; 
    top: 15px; 
    right: 20px; 
    background: transparent; 
    border: none; 
    color: #aaa; 
    font-size: 1.8em; 
    cursor: pointer;
}

.modal-title {
    color: #D4AF37; 
    margin-top: 0; 
    margin-bottom: 10px; 
    text-align: center; 
    font-size: 1.5em;
}

.modal-subtitle {
    font-size: 0.95em; 
    color: #ccc; 
    text-align: center; 
    margin-bottom: 25px; 
    line-height: 1.5;
}

.modal-form-group {
    margin-bottom: 18px;
}

.modal-label {
    display: block; 
    font-size: 0.9em; 
    margin-bottom: 8px; 
    color: #aaa; 
    font-weight: bold;
}

.modal-input {
    width: 100%; 
    padding: 12px; 
    background: #222; 
    border: 1px solid #444; 
    border-radius: 6px; 
    color: white; 
    font-size: 1em;
    box-sizing: border-box;
}

.modal-submit-btn {
    width: 100%; 
    padding: 14px; 
    background: #D4AF37; 
    color: black; 
    border: none; 
    border-radius: 6px; 
    font-weight: bold; 
    font-size: 1.1em; 
    cursor: pointer;
    margin-top: 7px;
}

/* ==========================
   PDF ALPHASOL PREMIUM
========================== */

.pdf-hidden-wrapper{
    position:absolute;
    left:-99999px;
    top:0;
}

.pdf-document{
    display:flex;
    flex-direction:column;
    gap:25px;
}

.pdf-header{
    text-align:left;
}

.pdf-logo{
    width:180px;
    height:auto;
    display:block;
    margin-bottom:100px;
}

.pdf-title{
    margin:0;
    font-size:42px;
    font-weight:900;
    color:#222;
    text-transform:uppercase;
    line-height:1;
}

.pdf-subtitle{
    margin-top:10px;
    margin-bottom:30px;
    font-size:24px;
    color:#333;
    font-weight:700;
}

.pdf-client-data{
    background:#f5f5f7;
    border:1px solid #ddd;

    border-radius:20px;

    padding:30px 35px;

    display:flex;
    flex-direction:column;

    gap:22px;

    margin-bottom:40px;
}

.pdf-summary{
    margin-bottom:30px;
}

.pdf-section-title{
    font-size:22px;
    color:#333;
    margin-bottom:30px;
    font-weight:700;
}

.pdf-description{
    font-size:15px;
    line-height:1.8;
    text-align:justify;
    color:#444;
}

.pdf-system-section{
    margin-top:20px;
}

.pdf-metric-card{
    background:#f7f7f7;
    border:1px solid #ddd;
    border-radius:10px;
    padding:12px;
    text-align:center;
    margin-bottom:10px;
}

.pdf-metric-value{
    font-size:42px;
    font-weight:800;
    color:#D4AF37;
}

.pdf-metric-label{
    font-size:14px;
    color:#555;
}

.pdf-technical-section{
    margin-top:35px;
}

.pdf-table{
    width:100%;
    border-collapse:separate;
    border-spacing:0 8px;
    font-size:15px;
}

.pdf-table td{
    background:#fafafa;
    padding:12px 16px;
}

.pdf-table td:first-child{
    border-radius:8px 0 0 8px;
    color:#555;
    font-weight:600;
}

.pdf-table td:last-child{
    border-radius:0 8px 8px 0;
    text-align:right;
    font-weight:700;
    color:#333;
}

.pdf-green{
    color:#1f8f3a;
    font-weight:700;
}

.pdf-divider{
    width:100%;
    height:3px;

    background:linear-gradient(
        90deg,
        #D4AF37,
        #F4D76E,
        #D4AF37
    );

    border-radius:10px;

    margin:30px 0;
}

.no-break{
    page-break-inside: avoid !important;
    break-inside: avoid !important;
}