/* ===== ESTILOS GENERALES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}
body {
    background: #f5f6f8;
    color: #1a1a1a;
    scroll-behavior: smooth;
}
body.modal-open {
    overflow: hidden; /* Evita scroll de fondo con menú o modal abierto */
}

/* ===== HEADER ===== */
header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    background: #000000;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 25px 70px;
    z-index: 1000;
    transition: all 0.4s ease;
}
header.scrolled {
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(8px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}
.logo {
    position: absolute;
    left: 70px;
    top: 0;
}
.logo img {
    height: 100px;
    position: absolute;
    top: 15px;
    transition: height 0.3s ease;
}
nav {
    display: flex;
    gap: 35px;
}
nav a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.3s ease;
}
nav a:hover {
    color: #a0a5b0;
}

/* BOTÓN HAMBURGUESA (MÓVIL) */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1100;
}
.menu-toggle .bar {
    width: 28px;
    height: 3px;
    background-color: #ffffff;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Animaciones de la hamburguesa activa a X */
.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ===== HERO SECCIÓN ===== */
.hero {
    position: relative;
    height: 85vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 90px;
    background-color: #000; /* Fondo base negro mientras carga el vídeo */
}
.hero video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1;
}

/* ANIMACIÓN NATIVA CSS DEL HERO CONTENT (EVITA PARPADEO DE CARGA) */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    animation: fadeInUpHero 1s ease-out forwards;
}
@keyframes fadeInUpHero {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-cards {
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}
.hero-card {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    border-radius: 14px;
    padding: 20px;
    width: 180px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}
.hero-card img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
}
.hero-card:hover {
    transform: translateY(-8px);
    background: rgba(255,255,255,0.25);
}
.hero-content h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0 15px;
    line-height: 1.2;
}
.hero-content h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 35px;
    color: #e2e8f0;
}
.hero .btn-primary {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 6px;
    padding: 14px 32px;
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}
.hero .btn-primary:hover {
    background: rgba(255,255,255,0.1);
}
.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}
.hero-buttons .btn-primary {
    flex: 1;
    text-align: center;
    max-width: 320px;
}

/* ===== SECCIONES Y MAQUETACIÓN ===== */
section {
    padding: 60px 80px;
    scroll-margin-top: 90px;
}
.confianza-section {
    background: #ffffff; 
    text-align: center;
}
.confianza-section h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 26px;
    margin-bottom: 10px;
}
#productos h2, #servicios h2 {
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-size: 26px;
    margin-bottom: 10px;
}
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 60px;
}
.card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    text-align: center;
    padding-bottom: 30px;
    opacity: 0;
    transform: translateY(20px);
}
.card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}
.card h3 {
    font-family: 'Poppins', sans-serif;
    margin: 20px 0 10px;
    font-size: 20px;
}
.card p {
    padding: 0 20px 20px;
    color: #555;
    font-size: 0.92rem;
    line-height: 1.5;
}
.card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    box-shadow: none;
    padding-bottom: 0;
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(8px);
    color: #fff;
    padding: 15px 40px;
    display: none;
    z-index: 9999;
}
.cookie-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.cookie-text {
    font-size: 13px;
    max-width: 65%;
}
.cookie-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.btn-outline {
    padding: 10px 20px;
    border: 1px solid rgba(255,255,255,0.6);
    background: transparent;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-outline:hover {
    background: rgba(255,255,255,0.1);
}

/* ===== COOKIE MODAL ===== */
.cookie-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}
.cookie-modal {
    background: #fff;
    width: 95%;
    max-width: 650px;
    border-radius: 18px;
    padding: 40px;
    max-height: 85vh;
    overflow-y: auto;
}
.cookie-modal h2 {
    font-family: 'Poppins', sans-serif;
    margin-bottom: 20px;
}
.cookie-category {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}
.cookie-category p {
    font-size: 0.85rem;
    color: #666;
}
.switch {
    position: relative;
    width: 46px;
    height: 24px;
}
.switch input {
    display: none;
}
.slider {
    position: absolute;
    inset: 0;
    background: #ccc;
    border-radius: 30px;
}
.slider:before {
    content: "";
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: .3s;
}
input:checked + .slider {
    background: #141619;
}
input:checked + .slider:before {
    transform: translateX(22px);
}
.modal-actions {
    text-align: right;
    margin-top: 25px;
}
.modal-actions .btn-primary {
    background: #141619;
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

/* ===== CONTACTO ===== */
.contacto-section {
    padding: 80px 20px;
    background: #f5f7fa;
}
.contacto-container {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: stretch; /* Cambiado de 'center' a 'stretch' para que ambos midan lo mismo en altura */
}

.contacto-mapa {
    display: flex; /* Permite que el iframe ocupe todo el alto disponible */
}

.contacto-mapa iframe {
    width: 100%;
    height: 100%; /* Cambiado a 100% para que llene el alto de la tarjeta contigua */
    min-height: 450px; /* Asegura una altura mínima en pantallas grandes */
    border: 0;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}
.contacto-info {
    background: #ffffff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}
.contacto-info h2 {
    font-family: 'Poppins', sans-serif;
    margin-bottom: 25px;
    font-size: 28px;
    color: #222;
}
.info-block {
    margin-bottom: 20px;
}
.info-block h4 {
    font-family: 'Poppins', sans-serif;
    margin-bottom: 5px;
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.info-block p {
    margin: 0;
    color: #333;
    line-height: 1.6;
    font-size: 0.95rem;
}
.contacto-info a {
    color: #0077cc;
    text-decoration: none;
    transition: 0.3s;
}
.contacto-info a:hover {
    color: #005999;
}

/* ===== FORMULARIO DE PRESUPUESTO PREMIUM ===== */
.presupuesto-section {
    padding: 80px 20px;
    background: #ffffff;
}
.presupuesto-container {
    max-width: 650px;
    margin: 0 auto;
    background: #f8f9fa;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.04);
}
.presupuesto-container h2 {
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    color: #141619;
    margin-bottom: 10px;
}
.presupuesto-container p {
    text-align: center;
    color: #6c727f;
    font-size: 0.95rem;
    margin-bottom: 35px;
    line-height: 1.5;
}
.form-group {
    margin-bottom: 22px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #141619;
    letter-spacing: 0.5px;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background-color: #ffffff;
    font-size: 0.95rem;
    color: #1a1a1a;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #141619;
    box-shadow: 0 0 0 3px rgba(20, 22, 25, 0.05);
}
.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236c727f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 14px;
    cursor: pointer;
}
.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 25px 0;
}
.form-checkbox input[type="checkbox"] {
    margin-top: 3px;
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #141619;
}
.form-checkbox label {
    font-size: 0.85rem;
    color: #6c727f;
    line-height: 1.4;
}
.form-checkbox a {
    color: #141619;
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.3s ease;
}
.form-checkbox a:hover {
    color: #000000;
}
.btn-form-submit {
    display: block;
    width: 100%;
    background: #141619;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 16px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}
.btn-form-submit:hover {
    background: #000000;
}
.btn-form-submit:active {
    transform: scale(0.99);
}

/* ===== FOOTER MODERN ===== */
.footer-modern {
    background: #141619;
    color: #a0a5b0;
    padding: 80px 20px 30px;
}
.footer-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: auto;
}
.footer-col h4 {
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 25px;
}
.footer-text {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #a0a5b0;
    margin-top: 10px;
}
.footer-logo {
    width: 160px;
    margin-bottom: 15px;
    display: block;
}
.footer-col ul {
    list-style: none;
    padding: 0;
}
.footer-col ul li {
    margin-bottom: 12px;
}
.footer-col a {
    color: #a0a5b0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}
.footer-col a:hover {
    color: #ffffff; 
    transform: translateX(4px); 
}
.footer-col p {
    font-size: 0.88rem;
    line-height: 1.6;
    color: #a0a5b0;
    margin-bottom: 15px;
}
.footer-col strong {
    color: #ffffff;
    display: block;
    margin-bottom: 5px;
    font-size: 0.9rem;
}
.social-icons {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}
.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.3s ease, color 0.3s ease;
}
.social-icons a:hover {
    background: #ffffff;
    color: #141619;
    transform: translateY(-3px);
}
.footer-bottom {
    text-align: center;
    margin-top: 60px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.8rem;
    color: #6c727f;
}
.footer-bottom a {
    color: #6c727f;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}
.footer-bottom a:hover {
    color: #ffffff;
}

/* ===== ELEMENTOS COMPLEMENTARIOS ===== */
.whatsapp-float {
    position: fixed;
    bottom: 50px;
    right: 25px;
    background: #25D366;
    color: #fff;
    font-size: 26px;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    z-index: 9999;
    transition: all 0.3s ease;
}
.whatsapp-float:hover {
    transform: scale(1.1);
}
.whatsapp-float img {
    width: 28px;
    height: 28px;
}

/* ===== MEDIAS QUERIES RESPONSIVE ===== */
@media (max-width: 900px) {
    .footer-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    header {
        padding: 15px 30px;
        justify-content: space-between;
    }
    header.scrolled .logo img {
        height: 40px;
    }
    .logo {
        position: relative;
        left: auto;
        top: auto;
    }
    .logo img {
        position: relative;
        top: auto;
        height: 50px;
    }
    
    /* ACTIVACIÓN DEL MENÚ HAMBURGUESA */
    .menu-toggle {
        display: flex;
    }
    
    /* NAVEGACIÓN MÓVIL EN MODO CORTINA LATERAL */
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 320px;
        height: 100vh;
        background: #141619;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 35px;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
        z-index: 1050;
    }
    nav.active {
        right: 0;
    }
    nav a {
        font-size: 1.2rem;
    }

    .hero {
        height: 65vh;
        margin-top: 75px;
    }
    .hero-content h1 {
        font-size: 1.8rem;
    }
    .hero-content h2 {
        font-size: 1.1rem;
        margin-bottom: 25px;
    }
    .hero .btn-primary {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
    .hero-cards {
        gap: 15px;
    }
    .hero-card {
        width: 43%;
        height: 90px;
    }
    section {
        padding: 40px 20px;
    }
    .contacto-container {
        grid-template-columns: 1fr;
    }
    .contacto-mapa iframe {
        height: 300px;
    }
}

@media (max-width: 600px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    .hero-buttons .btn-primary {
        width: 100%;
    }
    .presupuesto-container {
        padding: 25px 20px;
    }
    .footer-row {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-logo {
        margin: 0 auto 15px;
    }
    .social-icons {
        justify-content: center;
    }
    .footer-col a:hover {
        transform: none;
    }
}