/* --- Variables y Estilos Base (Actualizados para Blanco y Negro, Liquid Glass) --- */
:root {
    --color-header-fondo: rgba(20, 20, 20, 0.65); /* Gris oscuro, semitransparente */
    --color-pildora-interna: rgba(40, 40, 40, 0.7); /* Gris más oscuro para píldoras internas */
    --color-borde-header: rgba(255, 255, 255, 0.1); /* Borde sutil */
    --color-texto-header: #e0e0e0; /* Texto claro para el header */
    --color-texto-header-activo: #ffffff; /* Texto blanco para hover/activo */

    --color-primario-oscuro: #1a1a1a; /* Negro para fondos oscuros */
    --boton: #2e2e2e;
    --color-fondo-claro: #f5f5f7; /* Gris muy claro de iOS */
    --color-blanco: #ffffff;
    --color-texto-body: #333333; /* Texto principal oscuro */
    --color-texto-secundario: #666666; /* Gris para textos secundarios */
    --color-texto-blanco: #fff;
    --fuente-principal: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    --borde-radio-card: 12px;
    --sombra-card: 0 5px 20px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--fuente-principal);
    background-color: var(--color-fondo-claro);
    color: var(--color-texto-body);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

#Cotizaciones{
    margin-top: 5rem;
}

h1, h2, h3, h4 {
    font-weight: 600;
    color: var(--color-primario-oscuro);
}

h1 { font-size: 2.8rem; line-height: 1.2; }
h2 { font-size: 2.2rem; margin-bottom: 1.5rem; text-align: center; }
p { margin-bottom: 1rem; }
a { text-decoration: none; color: var(--color-primario-oscuro); } /* Enlaces por defecto */

/* --- Estilo del Header Flotante (Liquid Glass) --- */
.floating-header {
    position: fixed;
    top: 20px; 
    left: 0;
    right: 0;
    z-index: 1000;
    transition: transform 0.4s ease-out;
}

.floating-header.hide {
    /* Mueve el header hacia arriba, fuera de la vista */
    transform: translateY(-150px); 
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px; 
    gap: 1rem; 
}
.header-pill {
    background: var(--color-header-fondo); /* Liquid Glass */
    backdrop-filter: blur(20px); /* Mayor blur para efecto liquid */
    -webkit-backdrop-filter: blur(20px); 
    border: 1px solid var(--color-borde-header);
    border-radius: 50px; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
}
.logo-pill { padding: 0.8rem 1.5rem; }
.logo-pill a { color: var(--color-texto-header-activo); text-decoration: none; font-weight: 700; font-size: 1.1rem; }
.nav-pill-container { padding: 0.5rem; }
.nav-links { display: flex; list-style: none; gap: 0.5rem; }
.nav-links a { text-decoration: none; font-weight: 500; display: block; padding: 0.5rem 1rem; border-radius: 50px; transition: all 0.3s ease; }
.nav-link-text { color: var(--color-texto-header); }

.nav-link-text:hover { background: var(--color-pildora-interna); color: var(--color-texto-header-activo); }

.cta-pill { padding: 0.8rem 1.5rem; }
.cta-pill a { color: var(--color-texto-header-activo); text-decoration: none; font-weight: 700; }
.burger-menu { display: none; flex-direction: column; gap: 5px; padding: 0.8rem; cursor: pointer; }
.burger-line { width: 22px; height: 2px; background-color: var(--color-texto-header-activo); transition: all 0.3s ease; }
.burger-menu.open .burger-line:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger-menu.open .burger-line:nth-child(2) { opacity: 0; }
.burger-menu.open .burger-line:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- Menú Móvil (Liquid Glass también) --- */
.mobile-nav {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: rgba(20, 20, 20, 0.9); /* Más opaco para el menú móvil */
    backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px);
    z-index: 999; display: flex; flex-direction: column;
    justify-content: center; align-items: center; gap: 2rem;
    opacity: 0; pointer-events: none; transform: translateY(-100%);
    transition: all 0.4s ease;
}
.mobile-nav.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
.mobile-nav a { color: var(--color-texto-header-activo); text-decoration: none; font-size: 1.5rem; font-weight: 500; }
.mobile-nav .mobile-cta { background: var(--color-blanco); color: #000; padding: 0.8rem 1.5rem; border-radius: 50px; font-weight: 700; }

/* --- Botón CTA Genérico --- */
.cta-button {
    background-color: var(--boton); /* Negro sólido */
    color: var(--color-texto-blanco);
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
}
.cta-button:hover {
    background-color: #444; /* Gris oscuro al pasar el ratón */
    transform: translateY(-2px);
}

/* --- Hero Section --- */
.hero {
    background-color: var(--color-primario-oscuro);
    color: var(--color-texto-body);
    padding: 180px 0 80px 0; /* Espacio para el header flotante */
    position: relative;
    overflow: hidden; /* Para que la ola no sobresalga */
}
.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}
.hero-text { flex: 1; }

.hero-text h1 { color: var(--color-texto-blanco); font-size: 35px;}

.hero-text p { font-size: 1.1rem; color: var(--color-texto-blanco); font-size: 15px;}
.hero-image { flex: 1; text-align: right; }
.hero-image img { 
    max-width: 100%; 
    border-radius: var(--borde-radio-card); 
    box-shadow: var(--sombra-card);
}

/* --- Divisor de Ola (adaptado a blanco y negro) --- */
.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}
.wave-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 100px; 
}
.wave-divider .shape-fill {
    fill: var(--color-fondo-claro); /* Color del fondo de la siguiente sección */
}





/* --- Sección de Servicios (Rediseñada estilo Eco-Tech) --- */
.services {
    padding: 6rem 0;
    background-color: var(--color-fondo-claro);
    text-align: center;
}

.services-header {
    max-width: 800px;
    margin: 0 auto 4rem auto;
}

.service-tag {
    color: #666; /* Gris neutro en lugar de verde */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    display: block;
}

.services-header h2 {
    font-size: 2.5rem;
    color: var(--color-primario-oscuro);
    margin-bottom: 1rem;
}

.services-header p {
    color: var(--color-texto-secundario);
    font-size: 1.1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.service-card {
    background: var(--color-blanco);
    padding: 3rem 2rem;
    border-radius: 20px; /* Bordes muy redondeados */
    box-shadow: 0 10px 30px rgba(0,0,0,0.04); /* Sombra sutil inicial */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12); /* Sombra gris al flotar */
    border-color: rgba(0, 0, 0, 0.1);
}

/* Círculo para el icono */
.service-icon-box {
    width: 80px;
    height: 80px;
    background-color: #f0f0f2; /* Gris muy clarito */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: background-color 0.3s ease;
}

.service-card:hover .service-icon-box {
    background-color: var(--color-primario-oscuro); /* Se vuelve negro al hover */
}

.service-icon-box img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    transition: filter 0.3s ease;
    /* Si tus iconos son de colores, esto los pone en escala de grises inicialmente */
    filter: grayscale(100%); 
}

.service-card:hover .service-icon-box img {
    /* Al hacer hover, el icono se vuelve blanco para contrastar con el fondo negro */
    filter: invert(100%) brightness(200%); 
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-primario-oscuro);
}

.service-card p {
    font-size: 0.95rem;
    color: var(--color-texto-secundario);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Botón de enlace estilo texto con flecha */
.service-link-btn {
    margin-top: auto; /* Empuja el botón al final de la tarjeta */
    text-decoration: none;
    color: var(--color-primario-oscuro);
    font-weight: 700;
    border-bottom: 2px solid rgba(0,0,0,0.1);
    padding-bottom: 3px;
    transition: all 0.3s ease;
}

.service-link-btn:hover {
    border-bottom-color: var(--color-primario-oscuro);
    transform: translateX(5px); /* Pequeño movimiento a la derecha */
}

/* Responsivo */
@media (max-width: 768px) {
    .services-header h2 { font-size: 2rem; }
    .service-card { padding: 2rem; }
}

















/* --- Sección Sobre Nosotros (Modo Oscuro) --- */
.about {
    padding: 5rem 0; /* Un poco más de espacio vertical */
    background-color: var(--color-primario-oscuro); /* Fondo Negro */
    color: var(--color-texto-blanco);
    position: relative; /* Por si quieres poner ondas después */
}

.about-content {
    display: flex;
    align-items: center;
    gap: 4rem; /* Más espacio entre imagen y texto */
}

.about-image {
    flex: 1;
}

.about-image img {
    max-width: 100%;
    border-radius: var(--borde-radio-card);
    /* Sombra más fuerte para que se note en el fondo negro */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5); 
    opacity: 0.95;
    transition: opacity 0.3s ease;
}

.about-image img:hover {
    opacity: 1;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    text-align: left;
    color: var(--color-texto-blanco); /* Título Blanco */
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-text p {
    color: #b0b0b0; /* Gris claro para lectura cómoda sobre negro */
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}











/* --- Sección Formulario de Contacto --- */
.contact-form-section {
    padding: 4rem 0;
    background-color: var(--color-fondo-claro); /* Fondo gris claro */
}
.contact-form-section h2 {
    color: var(--color-primario-oscuro);
}
.section-subtitle {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 2rem auto;
    color: var(--color-texto-secundario);
}
.quote-form {
    max-width: 900px;
    margin: 0 auto;
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.form-group {
    display: flex;
    flex-direction: column;
}
.form-group.full-width {
    grid-column: 1 / -1; 
}
.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--color-primario-oscuro);
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #dcdcdc; /* Borde más claro */
    border-radius: 8px;
    font-family: var(--fuente-principal);
    font-size: 1rem;
    background-color: var(--color-blanco);
    color: var(--color-texto-body);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primario-oscuro); /* Negro al enfocar */
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}
.checkbox-group {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.5rem;
}
.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 5px;
    accent-color: var(--color-primario-oscuro); /* Checkbox en negro */
}
.checkbox-group label {
    font-weight: 400;
    font-size: 0.9rem;
    color: var(--color-texto-secundario);
}
.checkbox-group a {
    color: var(--color-primario-oscuro); /* Enlace negro */
    text-decoration: underline;
}
.button-group {
    text-align: center;
}
.button-group .cta-button {
    width: 100%;
    max-width: 300px;
    padding: 1rem;
    font-size: 1.1rem;
}
.whatsapp-link {
    text-align: center;
    margin-top: 2rem;
    font-weight: 500;
    color: var(--color-texto-secundario);
}
.whatsapp-link a {
    color: #25D366; /* Color de WhatsApp (puede ser el único color aquí) */
    text-decoration: none;
    font-weight: 600;
}

/* --- Footer --- */
.footer {
    background-color: var(--color-primario-oscuro); /* Fondo negro */
    color: var(--color-texto-header);
    padding: 6rem 0 0 0;
    position: relative;
    font-size: 0.9rem;
}
/* Ola invertida para el top del footer */
.wave-divider-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}
.wave-divider-top svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px; 
}
.wave-divider-top .shape-fill {
    fill: var(--color-fondo-claro); /* Color del fondo de la sección anterior */
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding-bottom: 3rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 0;
}
.footer-col h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--color-texto-header-activo);
}
.footer-col ul {
    list-style: none;
}
.footer-col ul li {
    margin-bottom: 0.5rem;
}
.footer-col ul li a {
    text-decoration: none;
    color: var(--color-texto-header);
    transition: color 0.3s ease;
}
.footer-col ul li a:hover {
    color: var(--color-texto-header-activo);
}

#footer-newsletter-form {
    grid-column: span 2; 
}


.social-icons {
    display: flex;
    gap: 0.8rem; /* Un poco más de espacio */
    margin-top: 1rem;
}
.social-icons img { 
    max-width: 28px; /* Ligeramente más pequeños */
    height: auto;
    border-radius: 50%; 
    /* Filtrar iconos a monocromo por defecto, excepto WhatsApp si se quiere */
    filter: grayscale(100%); 
    transition: filter 0.3s ease;
}
.social-icons img:hover {
    filter: grayscale(0%); /* Color al pasar el ratón */
}
.newsletter-form input {
    width: 100%;
    padding: 0.7rem;
    border-radius: 8px; /* Ligeramente más redondeado */
    border: none;
    margin-bottom: 0.8rem; /* Más espacio */
    font-family: var(--fuente-principal);
    background-color: #333; /* Fondo gris oscuro */
    color: var(--color-texto-header-activo);
}
.newsletter-form input::placeholder {
    color: #999;
}
.cta-button-yellow {
    background-color: var(--color-texto-header-activo); /* Botón blanco */
    color: var(--color-primario-oscuro); /* Texto negro */
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s ease;
}
.cta-button-yellow:hover {
    background-color: #ccc; /* Gris claro al pasar */
}
.footer-bottom {
    border-top: 1px solid #333;
    padding: 1.5rem 0;
    text-align: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem 20px;
}

/* --- Diseño Responsivo --- */
@media (max-width: 900px) {
    .header-container { gap: 0.5rem; padding: 0 20px; }
    .logo-pill { padding: 0.6rem 1rem; }
    .logo-pill a { font-size: 1rem; }
    .nav-pill-container { padding: 0.4rem; }
    .nav-links a { padding: 0.4rem 0.8rem; font-size: 0.9rem; }
    .cta-pill { padding: 0.6rem 1rem; font-size: 0.9rem; }

    .hero-content { flex-direction: column; text-align: center; }
    .hero-text { order: 2; }
    .hero-image { order: 1; text-align: center; }
    
    .about-content { flex-direction: column; }
    .about-text h2 { text-align: center; }

    .form-grid { grid-template-columns: 1fr; }
    #footer-newsletter { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    
    /* Ocultar nav de desktop y mostrar hamburguesa */
    .nav-pill-container,
    .cta-pill {
        display: none; 
    }
    .burger-menu {
        display: flex; 
    }
    .header-container {
        justify-content: space-between;
    }
    .floating-header {
        top: 10px; 
    }
    .footer-content {
        padding-left: 20px;
        padding-right: 20px;
    }
}


@media (max-width: 900px) {
    .footer-content {
        /* En tablet, volvemos a un grid de 2 columnas */
        grid-template-columns: repeat(2, 1fr); 
    }
    #footer-newsletter-form {
        /* Ocupa el ancho completo superior */
        grid-column: 1 / -1; 
    }
}
@media (max-width: 768px) {
    .footer-content {
        /* En móvil, todas las columnas van apiladas */
        grid-template-columns: 1fr; 
    }
    #footer-newsletter-form {
        grid-column: 1 / -1; 
    }
}






/* --- Estilos para el Dropdown de Contacto  --- */

/* Contenedor del Dropdown */
.contact-dropdown-wrapper {
    position: relative;
    padding: 0; /* Quitamos padding de la píldora para ponerlo en el botón */
    overflow: visible; /* Importante para que el menú se salga del borde de la píldora */
}

/* Estilo para el botón que reemplaza al enlace CTA */
.cta-dropdown-btn {
    background: transparent;
    border: none;
    color: var(--color-texto-header-activo);
    font-weight: 700;
    cursor: pointer;
    padding: 0.8rem 1.5rem; /* Mantiene el tamaño original de la píldora */
    font-family: var(--fuente-principal);
    font-size: 1rem;
    height: 100%;
    border-radius: 50px;
    transition: background 0.3s ease;
}

.contact-dropdown-menu.visible { 
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


.cta-dropdown-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Estilos del Menú Desplegable */
.contact-dropdown-menu {
    position: absolute;
    top: 100%; /* Posicionamiento debajo del botón */
    right: 0;
    margin-top: 10px;
    width: 250px;
    padding: 5px;
    
    /* Efecto Liquid Glass / Card */
    background: rgba(20, 20, 20, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--color-borde-header);
    border-radius: var(--borde-radio-card); /* 12px de tus variables */
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    
    /* Oculto por defecto */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1010;
}


/* Estilos de los enlaces dentro del menú */
.dropdown-link {
    display: flex;
    align-items: center;
    margin-top: 0px;
    padding: 10px 15px;
    color: var(--color-texto-header);
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease;
    font-size: 0.95rem;
    font-weight: 500;
}

.dropdown-link:hover {
    background: rgba(255, 255, 255, 0.15); /* Efecto hover sutil */
    color: var(--color-texto-header-activo);
}

/* Opcional: Iconos (usar emojis o font awesome) 
.whatsapp-link::before { content: "💬"; margin-right: 10px; }
.email-link::before { content: "📧"; margin-right: 10px; }
.phone-link::before { content: "📞"; margin-right: 10px; }
*/

/* Esconde el elemento original en móvil ya que usamos el menú de hamburguesa */
@media (max-width: 768px) {
    .contact-dropdown-wrapper {
        display: none; /* Se oculta completamente en móvil */
    }
}













/* --- Estilos Nuevos para el Cotizador Dinámico --- */

/* Contenedor de Pestañas tipo iOS */
.tabs-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.tabs-container {
    background-color: #e5e5ea; /* Gris iOS inactivo */
    padding: 4px;
    border-radius: 50px;
    display: inline-flex;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.tab-btn {
    padding: 10px 25px;
    border: none;
    background: transparent;
    border-radius: 50px;
    cursor: pointer;
    font-family: var(--fuente-principal);
    font-weight: 500;
    color: #8e8e93;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.tab-btn.active {
    background-color: var(--color-blanco);
    color: var(--color-primario-oscuro);
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    font-weight: 600;
}

/* Layout Grid: Formulario + Precio */
.quote-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
    align-items: start;
    margin-bottom: 6rem;
}

/* Formularios */
.quote-form {
    display: none; /* Ocultos por defecto */
    animation: fadeIn 0.5s ease;
    background: var(--color-blanco);
    padding: 2rem;
    border-radius: var(--borde-radio-card);
    box-shadow: var(--sombra-card);
}

.quote-form.active-form {
    display: block;
}

.quote-form h3 {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.full-width-btn {
    width: 100%;
    margin-top: 1rem;
    font-size: 1.1rem;
}

/* Tarjeta de Precio — Sticky activo */
.price-card {
    display: block;
    background: var(--color-primario-oscuro);
    color: var(--color-blanco);
    border-radius: var(--borde-radio-card);
    padding: 2rem;
    position: sticky;
    top: 100px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.price-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.price-header h4 {
    color: var(--color-blanco);
    font-size: 1.1rem;
    margin: 0;
}

.live-indicator {
    font-size: 0.7rem;
    background: rgba(255,255,255,0.1);
    padding: 4px 8px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.blink {
    width: 6px;
    height: 6px;
    background-color: #4ade80; /* Verde */
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

.price-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    color: #a0a0a0;
    font-size: 0.95rem;
}

.divider-dotted {
    border-top: 1px dashed #555;
    margin: 1rem 0;
}

.total-price {
    text-align: right;
}

.total-price small {
    display: block;
    color: #ccc;
    font-size: 0.8rem;
}

.total-price span {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-blanco);
    line-height: 1.2;
}

.disclaimer {
    margin-top: 1.5rem;
    font-size: 0.75rem;
    color: #666;
    line-height: 1.4;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.4; }
    100% { opacity: 1; }
}

/* Responsivo para el cotizador */
@media (max-width: 768px) {
    .quote-layout {
        grid-template-columns: 1fr; /* Una sola columna en móvil */
    }
    .price-card {
        position: static; /* Ya no sticky en móvil */
        order: -1; /* Muestra precio arriba del formulario en móvil */
        margin-bottom: 2rem;
    }
    .tabs-container {
        width: 100%;
        justify-content: space-between;
    }
    .tab-btn {
        padding: 10px 15px;
        font-size: 0.8rem;
        flex: 1;
    }
}

























/* --- Sección de Desarrollo de Software (Dark Style) --- */
.software-section {
    padding: 5rem 0;
    background-color: var(--color-primario-oscuro); /* Fondo Negro/Gris Oscuro */
    color: var(--color-texto-blanco);
    position: relative;
}

.software-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    /* Invertimos el orden en móvil si es necesario, pero en desktop texto-imagen se ve bien */
}

.software-text {
    flex: 1;
}

.software-text h2 {
    color: var(--color-texto-blanco); /* Forzamos blanco */
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
}

.software-text p {
    color: #a0a0a0; /* Gris suave para lectura en fondo oscuro */
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.software-text strong {
    color: var(--color-texto-blanco);
    font-weight: 600;
}

/* Badge estilo iOS */
.badge {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #4ade80; /* Un verde sutil tipo terminal/código */
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Botón Blanco para fondo oscuro */
.cta-button-white {
    background-color: var(--color-blanco);
    color: var(--color-primario-oscuro);
    padding: 0.8rem 1.8rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    display: inline-block;
    transition: all 0.3s ease;
}

.cta-button-white:hover {
    background-color: #e0e0e0;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
}

.software-image {
    flex: 1;
}

.software-image img {
    width: 100%;
    border-radius: var(--borde-radio-card);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4); /* Sombra más fuerte para fondo oscuro */
    opacity: 0.9; /* Un toque sutil para que se fusione mejor */
    transition: opacity 0.3s ease;
}

.software-image img:hover {
    opacity: 1;
}

/* Responsivo */
@media (max-width: 900px) {
    .software-content {
        flex-direction: column-reverse; /* Imagen arriba, texto abajo en móvil */
        text-align: center;
        gap: 2rem;
    }
    
    .badge {
        margin: 0 auto 1rem auto;
    }
}





















/* --- Estilos Sección Medio Ambiente --- */
.eco-section {
    padding: 6rem 0;
    background-color: var(--color-fondo-claro); /* Mantiene el gris muy suave de fondo */
    text-align: center;
}

.eco-header {
    max-width: 800px;
    margin: 0 auto 4rem auto;
}

.eco-tag {
    color: #10b981; /* Verde Esmeralda Moderno */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    display: block;
}

.eco-header h2 {
    font-size: 2.5rem;
    color: var(--color-primario-oscuro);
    margin-bottom: 1.5rem;
}

.eco-header p {
    color: var(--color-texto-secundario);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Grid de Tarjetas Ecológicas */
.eco-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.eco-card {
    background: var(--color-blanco);
    padding: 3rem 2rem;
    border-radius: 20px; /* Bordes más redondeados para suavidad */
    box-shadow: 0 10px 30px rgba(0,0,0,0.04); /* Sombra muy sutil */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid transparent;
}

.eco-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.15); /* Sombra verdosa al hacer hover */
    border-color: rgba(16, 185, 129, 0.3);
}

.eco-icon-box {
    width: 70px;
    height: 70px;
    background-color: rgba(16, 185, 129, 0.1); /* Fondo verde muy claro */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
}

.eco-icon-box img {
    width: 35px;
    height: 35px;
    /* Si tus iconos son negros, este filtro los hace verdes automáticamente */
    filter: invert(48%) sepia(79%) saturate(2476%) hue-rotate(130deg) brightness(95%) contrast(101%);
}

.eco-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--color-primario-oscuro);
}

.eco-card p {
    font-size: 0.95rem;
    color: var(--color-texto-secundario);
}

.eco-footer p {
    display: inline-block;
    margin-right: 10px;
    font-weight: 500;
}

.link-arrow {
    color: #10b981;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.link-arrow:hover {
    border-bottom-color: #10b981;
}

/* Ajuste Responsivo */
@media (max-width: 768px) {
    .eco-header h2 {
        font-size: 2rem;
    }
    .eco-card {
        padding: 2rem;
    }
}





















/* --- Estilos del Modal de Reciclaje (Glassmorphism) --- */
.modal-overlay {
    display: none; /* Oculto por defecto */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Fondo oscuro semitransparente */
    backdrop-filter: blur(8px); /* EFECTO DE DESENFOQUE */
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000; /* Por encima de todo, incluso el header */
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    opacity: 1; /* Para la animación de entrada */
}

.modal-content {
    background-color: var(--color-blanco);
    width: 100%;
    max-width: 500px; /* Ancho máximo en PC */
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    max-height: 90vh; /* Para que no se salga en pantallas bajitas */
    overflow-y: auto; /* Scroll si el formulario es muy largo en celular */
}

.modal-overlay.show .modal-content {
    transform: scale(1); /* Efecto pop-up */
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
}

.close-modal:hover {
    color: var(--color-primario-oscuro);
}

.modal-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.icon-recycle-header {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.modal-header h2 {
    color: #10b981; /* Verde ecológico */
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.modal-header p {
    font-size: 0.9rem;
    color: var(--color-texto-secundario);
    line-height: 1.4;
}

/* Ajustes específicos para este formulario */
.recycle-form label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #444;
}

.recycle-form select {
    background-color: #f9f9f9;
}


/* =============================================
   COTIZADOR — NUEVOS ESTILOS
   ============================================= */

/* Hint de label */
.label-hint {
    font-size: 0.75rem;
    font-weight: 400;
    color: #999;
    margin-left: 6px;
}

/* Grid de checkboxes de fallas */
.issues-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 8px;
}

/* Tarjeta de falla individual */
.issue-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: #f7f7f9;
    border: 2px solid transparent;
    border-radius: 10px;
    padding: 12px 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    gap: 4px;
    user-select: none;
}

.issue-card:hover {
    background: #efeff2;
    border-color: rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.issue-card.selected {
    background: #1a1a1a;
    border-color: #1a1a1a;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.issue-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.issue-name {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--color-texto-body);
    line-height: 1.3;
}
.issue-card.selected .issue-name {
    color: #fff;
}

.issue-price {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-primario-oscuro);
}
.issue-card.selected .issue-price {
    color: #4ade80; /* Verde al seleccionar */
}

/* Indicador visual de selección (checkmark) */
.issue-card::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 10px;
    font-size: 0.8rem;
    color: transparent;
    transition: color 0.2s ease;
}
.issue-card.selected::after {
    color: #4ade80;
}

/* Responsive issues grid */
@media (max-width: 600px) {
    .issues-grid {
        grid-template-columns: 1fr;
    }
}

/* Selector de Urgencia */
.urgency-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 6px;
}

.urgency-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
    background: #f7f7f9;
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 16px 10px;
    cursor: pointer;
    transition: all 0.25s ease;
    user-select: none;
}

.urgency-option:hover {
    border-color: rgba(0,0,0,0.15);
    background: #efeff2;
}

.urgency-option.selected {
    background: #1a1a1a;
    border-color: #1a1a1a;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.urgency-option input[type="radio"] {
    display: none;
}

.urgency-icon {
    font-size: 1.6rem;
    line-height: 1;
}

.urgency-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-primario-oscuro);
}
.urgency-option.selected .urgency-title {
    color: #fff;
}

.urgency-desc {
    font-size: 0.72rem;
    color: #888;
    line-height: 1.3;
}
.urgency-option.selected .urgency-desc {
    color: #aaa;
}

/* Desglose de fallas en price-card */
.price-section-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
    margin-bottom: 8px !important;
    font-weight: 600;
}

.issue-breakdown-item {
    padding: 4px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.breakdown-name {
    font-size: 0.78rem;
    color: #999;
    line-height: 1.3;
    flex: 1;
    padding-right: 8px;
}

/* Fila de urgencia en price-card */
.urgency-row {
    color: #4ade80 !important;
}
.urgency-row span:first-child {
    color: #4ade80;
}
.urgency-row span:last-child {
    color: #4ade80;
    font-weight: 600;
}

/* textarea en form de reparación */
#form-reparacion textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    font-family: var(--fuente-principal);
    font-size: 0.95rem;
    background-color: var(--color-blanco);
    color: var(--color-texto-body);
}
#form-reparacion textarea:focus {
    outline: none;
    border-color: var(--color-primario-oscuro);
    box-shadow: 0 0 0 2px rgba(0,0,0,0.08);
}

/* Animación de aparición para grupos progresivos */
#group-model,
#group-issues,
#group-urgency,
#group-contact,
#btn-agendar {
    animation: fadeSlideIn 0.35s ease;
}

@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}


/* =============================================
   WIZARD DE REPARACIÓN
   ============================================= */

/* ---------- Filas de resumen (acordeón) ---------- */
.rep-summary {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 4px;
}

.summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f0f0f3;
    border-radius: 10px;
    padding: 10px 14px;
    animation: fadeSlideIn 0.3s ease;
    gap: 8px;
}

.summary-row-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.summary-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.summary-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.summary-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #999;
    font-weight: 600;
    line-height: 1;
    margin-bottom: 2px;
}

.summary-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primario-oscuro);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.summary-edit-btn {
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 4px 10px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    font-family: var(--fuente-principal);
    flex-shrink: 0;
}
.summary-edit-btn:hover {
    background: var(--color-primario-oscuro);
    border-color: var(--color-primario-oscuro);
    color: #fff;
}

/* ---------- Contenedor del paso activo ---------- */
.rep-step {
    margin-top: 8px;
}

.wizard-step {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.wizard-step.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Cabecera del paso */
.wiz-step-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.wiz-step-num {
    width: 22px;
    height: 22px;
    background: var(--color-primario-oscuro);
    color: #fff;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wiz-step-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-primario-oscuro);
}

.wiz-step-hint {
    font-size: 0.72rem;
    color: #999;
    font-weight: 400;
}

/* Select del wizard */
.wiz-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    font-family: var(--fuente-principal);
    font-size: 0.95rem;
    background: #fff;
    color: var(--color-texto-body);
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23999' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}
.wiz-select:focus {
    outline: none;
    border-color: var(--color-primario-oscuro);
    box-shadow: 0 0 0 3px rgba(0,0,0,0.06);
}

/* Grid de pills (familias / modelos) */
.wiz-pill-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.wiz-pill-btn {
    background: #f7f7f9;
    border: 1.5px solid transparent;
    border-radius: 10px;
    padding: 10px 12px;
    font-family: var(--fuente-principal);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--color-texto-body);
    cursor: pointer;
    text-align: left;
    line-height: 1.3;
    transition: all 0.2s ease;
}
.wiz-pill-btn:hover {
    background: #efeff2;
    border-color: rgba(0,0,0,0.12);
    transform: translateY(-1px);
}
.wiz-pill-btn.selected {
    background: var(--color-primario-oscuro);
    border-color: var(--color-primario-oscuro);
    color: #fff;
}

@media (max-width: 500px) {
    .wiz-pill-grid { grid-template-columns: 1fr; }
}

/* Grid de fallas (checkboxes) */
.wiz-issues-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}
@media (max-width: 500px) {
    .wiz-issues-grid { grid-template-columns: 1fr; }
}

/* Botón confirmar fallas */
.wiz-confirm-btn {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
}

/* ---------- Formulario de contacto final ---------- */
.rep-contact {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.rep-contact.visible {
    opacity: 1;
    transform: translateY(0);
}

.rep-contact-divider {
    border-top: 1px dashed #e0e0e0;
    margin: 8px 0 4px;
}

.rep-contact-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primario-oscuro);
    display: block;
}

.rep-contact input,
.rep-contact textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    font-family: var(--fuente-principal);
    font-size: 0.95rem;
    background: #fff;
    color: var(--color-texto-body);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.rep-contact input:focus,
.rep-contact textarea:focus {
    outline: none;
    border-color: var(--color-primario-oscuro);
    box-shadow: 0 0 0 3px rgba(0,0,0,0.06);
}
.rep-contact textarea {
    resize: vertical;
    min-height: 60px;
}

/* ---------- Animación shake para error ---------- */
@keyframes shake {
    0%,100% { transform: translateX(0); }
    20%      { transform: translateX(-6px); }
    40%      { transform: translateX(6px); }
    60%      { transform: translateX(-4px); }
    80%      { transform: translateX(4px); }
}
.shake {
    animation: shake 0.45s ease;
}


/* =============================================
   TOAST NOTIFICATIONS
   ============================================= */

#toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 360px;
    width: calc(100vw - 48px);
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #1a1a1a;
    color: #f0f0f0;
    padding: 14px 16px;
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.25);
    border-left: 4px solid #555;
    font-family: var(--fuente-principal);
    font-size: 0.88rem;
    line-height: 1.4;
    pointer-events: all;

    /* Estado inicial — fuera de pantalla */
    opacity: 0;
    transform: translateX(110%);
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

/* Colores por tipo */
.toast-error   { border-left-color: #ef4444; }
.toast-success { border-left-color: #22c55e; }
.toast-info    { border-left-color: #3b82f6; }
.toast-warning { border-left-color: #f59e0b; }

.toast-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
    line-height: 1;
}

.toast-msg {
    flex: 1;
    color: #e0e0e0;
}

.toast-close {
    background: transparent;
    border: none;
    color: #666;
    font-size: 1.2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0 2px;
    flex-shrink: 0;
    transition: color 0.2s ease;
    font-family: var(--fuente-principal);
}
.toast-close:hover {
    color: #fff;
}

/* Barra de progreso opcional dentro del toast */
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(255,255,255,0.2);
    border-radius: 0 0 12px 12px;
    animation: toastProgress linear forwards;
}

@keyframes toastProgress {
    from { width: 100%; }
    to   { width: 0%; }
}

@media (max-width: 480px) {
    #toast-container {
        bottom: 16px;
        right: 12px;
        left: 12px;
        width: auto;
        max-width: none;
    }
}
