:root {
    --color-principal: #f9b455;
    --color-secundario: #c18f54;
    --color-negro: #000000;
}

/* Hero */
.hero-section {
    position: relative;
    margin-top: 60px;           /* altura del navbar */
    height: calc(100vh - 10px); /* resto del hero menos navbar */
    overflow: hidden;
}

.bg-video {
    position: absolute;
    top: 0;
    left: 50%;
    width: 100vw;       /* ancho total de la ventana */
    height: auto;       /* altura automática para no deformar */
    min-height: 100%;   /* asegura que cubra todo el contenedor */
    transform: translateX(-50%);
    object-fit: cover;  /* cubre todo el contenedor sin distorsión */
    z-index: -2;
}


.desktop-video { display: block; }
.mobile-video { display: none; }

@media (max-width: 767px) {
    .desktop-video { display: none; }
    .mobile-video { display: block; }
}

.overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: rgba(0,0,0,0.3); /* sombreado suave */
}

.hero-content {
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    padding: 0 15px;
    text-align: center;
}

.btn-cta {
    background-color: var(--color-principal);
    border: none;
    color: var(--color-negro);
}
.btn-cta:hover {
    background-color: var(--color-secundario);
    color: white;
}

.navbar {
    background-color: #000 !important; /* fondo negro */
    z-index: 10;
    position: fixed;
    top: 0;
    width: 100%;
}

/* Fondo negro al desplegar menú en móviles */
.navbar-collapse {
    background-color: #000 !important;
}

/* Asegura que los links sean visibles */
.navbar-dark .navbar-nav .nav-link {
    color: #fff;
}


/* Ajuste de scroll para que no tape el navbar fijo */
section[id] {
  scroll-margin-top: 80px; /* igual a la altura del navbar */
}

/* CSS Contador  */
.contador-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 20px;
    background-color: #f9b455;
    border-radius: 12px;
    color: #000;
    font-weight: bold;
    max-width: 100%;
}

.contador-boxes {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: nowrap;
    overflow-x: auto;
}

.contador-box {
    background-color: #fff;
    padding: 10px 15px;
    border-radius: 8px;
    min-width: 60px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
    text-align: center;
    flex-shrink: 0;
}

.contador-box span {
    font-size: 1.5rem;
    display: block;
}

.contador-box small {
    display: block;
    font-size: 0.8rem;
    color: #555;
}


/* Contador de visitas en línea antes del footer */
.contador-footer {
    width: 100%;
    text-align: center;
    padding: 8px 0;
    background-color: #ffffff; /* fondo blanco */
    color: var(--color-negro);
    font-weight: bold;
    font-size: 0.9rem;
    border-top: 2px solid var(--color-principal);
    border-bottom: 2px solid var(--color-principal);
    box-shadow: 0 -2px 6px rgba(0,0,0,0.1);
}

.contador-footer i {
    margin-right: 6px;
    color: var(--color-principal);
}




/* Efecto de desvanecimiento suave al hacer scroll */
section:not(.parallax) {
    opacity: 0;
    transform: translateY(20px); /* pequeña subida desde abajo */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

section:not(.parallax).visible {
    opacity: 1;
    transform: translateY(0);
}
/* Parallax */
.parallax {
    background-image: url('Public/Imagen de WhatsApp 2025-08-20 a las 21.22.38_c1a9c829.jpg');
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    height: 400px;
}




/* Botón flotante WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: white;
    font-size: 2.1rem;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.whatsapp-float:hover {
    background-color: #1ebe57;
    transform: scale(1.1);
    color: white;
}

/* Iconos sociales */
.instagram-icon {
    color: black;
    transition: color 0.3s ease, transform 0.3s ease;
}
.instagram-icon:hover {
    color: #b42c49;
    transform: scale(1.2);
}

.email-icon {
    color: black;
    transition: color 0.3s ease, transform 0.3s ease;
}
.email-icon:hover {
    color: #a3362c;
    transform: scale(1.2);
}

.social-link { text-decoration: none; }

.navbar { background-color: #000000 !important; }

footer { font-size: 0.9rem; }



