/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* GENERAL */
body {
    font-family: Arial, sans-serif;
    background: #000;
    color: #fff;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
}

/* POPUP BASE */
#promoPopup {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;

    /* transición limpia */
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;

    padding: 20px;
}

/* OCULTO CORRECTO */
#promoPopup.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* CONTENEDOR */
.popup-box {
    position: relative;
    max-width: 95vw;
    max-height: 90vh;
}

/* IMAGEN */
#promoImage {
    max-width: 100%;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
}

/* BOTÓN */
#closePopup {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #000;
    color: #fff;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2;
}

/* MOBILE */
@media (max-width: 768px) {
    #promoImage {
        max-height: 75vh;
    }
}

/* MOBILE */
@media (max-width: 768px) {
    #promoPopup {
        width: 200px;
        bottom: 80px;
    }
}


/* HEADER HERO */
header {
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: left;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.9)),
                url('fondo.jpg') center/cover no-repeat;
}

header .content {
    max-width: 600px;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

header p {
    font-size: 1.2em;
    color: #ccc;
}

/* BOTONES */
.btn {
    display: inline-block;
    background: #25D366;
    color: #fff;
    padding: 15px 25px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 25px;
    transition: 0.3s;
}

.btn:hover {
    background: #1ebe5d;
}

/* SECCIONES */
.section {
    padding: 70px 0;
}

.section h2 {
    color: #d4af37;
    margin-bottom: 20px;
    font-size: 1.8em;
}

.section p {
    color: #ccc;
}

/* ALERTA */
.alert {
    background: #1a0000;
    padding: 20px;
    border-left: 4px solid red;
    margin-bottom: 20px;
}

/* SERVICIOS */
.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.services div {
    background: #111;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: 0.3s;
}

.services div:hover {
    transform: translateY(-5px);
    background: #181818;
}

/* TESTIMONIOS */
.testimonial {
    background: #111;
    padding: 15px;
    margin-bottom: 15px;
    border-left: 3px solid #d4af37;
}

/* CTA FINAL */
.cta {
    text-align: center;
}

/* FOOTER */
footer {
    background: #000;
    text-align: center;
    padding: 30px;
    font-size: 0.9em;
    color: #777;
}

/* BOTÓN WHATSAPP FLOTANTE */
.whatsapp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25D366;
    color: #fff;
    padding: 15px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    z-index: 999;
}

/* RESPONSIVE */
@media (max-width: 768px) {

    header {
        text-align: center;
        background-position: center top;
    }

    header h1 {
        font-size: 1.8em;
    }

    header p {
        font-size: 1em;
    }

    header .content {
        max-width: 100%;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
    
/* FOOTER PREMIUM */
.footer-premium {
    background: #050505;
    border-top: 1px solid #111;
    margin-top: 60px;
}

/* TOP GRID */
.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding: 50px 0;
}

/* BRAND */
.footer-brand h3 {
    color: #d4af37;
    margin-bottom: 10px;
}

.footer-brand p {
    color: #aaa;
    font-size: 0.9em;
    margin-bottom: 20px;
}

/* CTA */
.footer-cta {
    display: inline-block;
    background: #25D366;
    color: #fff;
    padding: 12px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.footer-cta:hover {
    background: #1ebe5d;
}

/* COLUMNAS */
.footer-col h4 {
    color: #d4af37;
    margin-bottom: 10px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 8px;
}

.footer-col a {
    color: #aaa;
    text-decoration: none;
    font-size: 0.9em;
}

.footer-col a:hover {
    color: #fff;
}

/* MAPA */
.footer-map iframe {
    width: 100%;
    height: 180px;
    border: 0;
    filter: grayscale(100%) brightness(70%);
}

/* BOTTOM */
.footer-bottom {
    text-align: center;
    padding: 15px;
    font-size: 0.8em;
    color: #666;
    border-top: 1px solid #111;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 25px;
    }
}

@media (max-width: 600px) {
    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-cta {
        width: 100%;
    }
}