/* Paleta Esotérica de Alta Gama */
:root {
    --rojo-mistico: #800000;    /* Rojo Sangre profundo */
    --rojo-brillante: #b30000;
    --dorado-oro: #dfb76c;      /* Oro refinado */
    --dorado-brillante: #f3d498;
    --negro-fondo: #0a090d;     /* Fondo místico oscuro */
    --gris-tarjeta: #141218;
    --blanco-luz: #f5f5f7;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--negro-fondo);
    color: var(--blanco-luz);
    overflow-x: hidden;
}

/* Encabezado */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background-color: rgba(10, 9, 13, 0.95);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--dorado-oro);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-placeholder {
    width: 40px;
    height: 40px;
    border: 1px solid var(--dorado-oro);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--dorado-oro);
    font-size: 1.2rem;
}

.logo-title {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dorado-oro);
    letter-spacing: 1px;
}

nav a {
    color: var(--blanco-luz);
    text-decoration: none;
    margin-left: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--dorado-oro);
}

/* Títulos Secciones */
.section-title {
    font-family: 'Cinzel', serif;
    font-size: 2.3rem;
    color: var(--dorado-oro);
    text-align: center;
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    color: #aaa;
    margin-bottom: 40px;
}

/* Slider de Inicio (3.5s) */
.hero-slider {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    margin-top: 0;
}

.slider-wrapper {
    height: 100%;
    width: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 3.2s ease-in-out; /* Transición ultra suave */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-content {
    text-align: center;
    padding: 0 20px;
}

.slide-content h1 {
    font-family: 'Cinzel', serif;
    font-size: 4rem;
    color: #fff;
    text-shadow: 0px 0px 20px var(--rojo-brillante);
    margin-bottom: 15px;
    transform: translateY(30px)
    opacity: 0;
    transition: all 3s ease 0.5s;
}

.slide.active .slide-content h1 {
    transform: translateY(0);
    opacity: 1;
    animation: brilloOro 3.5s infinite alternate;
}

.slide-content p {
    font-size: 1.3rem;
    color: var(--dorado-oro);
    font-weight: 300;
}

@keyframes brilloOro {
    0% { text-shadow: 0 0 10px var(--rojo-mistico); }
    100% { text-shadow: 0 0 25px var(--dorado-oro), 0 0 5px #fff; }
}

/* Trabajos - Videos Organizados */
.trabajos-section {
    padding: 100px 5%;
    background: linear-gradient(180deg, var(--negro-fondo) 0%, var(--gris-tarjeta) 100%);
}

.videos-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.video-card {
    background-color: var(--negro-fondo);
    border: 2px solid var(--rojo-mistico);
    border-radius: 12px;
    padding: 20px;
    width: 45%;
    min-width: 320px;
    box-shadow: 0 10px 25px rgba(128, 0, 0, 0.15);
    transition: all 0.4s ease;
}

.video-card:hover {
    border-color: var(--dorado-oro);
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(223, 183, 108, 0.2);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* Relación 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 15px;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-card h3 {
    font-family: 'Cinzel', serif;
    color: var(--dorado-oro);
    margin-bottom: 10px;
}

/* Testimonios Slider (2s) */
.testimonios-section {
    padding: 100px 5%;
    background-color: var(--rojo-mistico);
    background-image: radial-gradient(circle, rgba(179,0,0,0.4) 0%, rgba(128,0,0,0.9) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.testimonio-slider-container {
    max-width: 700px;
    margin: 40px auto 0;
    height: 320px;
    position: relative;
}

.testimonio-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.8s ease-in-out; /* Transiciones suaves de 0.8s */
    z-index: 1;
}

.testimonio-slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.testimonio-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 3px solid var(--dorado-oro);
    object-fit: cover;
    margin-bottom: 15px;
}

.testimonio-slide h3 {
    font-family: 'Cinzel', serif;
    color: var(--dorado-oro);
    margin-bottom: 5px;
}

.stars {
    color: var(--dorado-brillante);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.testimonio-text {
    font-style: italic;
    font-size: 1.2rem;
    line-height: 1.7;
    color: #fff;
}

/* Contacto y Ubicación */
.contacto-section {
    padding: 100px 5%;
    background-color: var(--negro-fondo);
}

.contacto-grid {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.mapa-box, .info-contacto {
    flex: 1;
    min-width: 320px;
}

.mapa-box iframe {
    width: 100%;
    height: 350px;
    border: 2px solid var(--dorado-oro);
    border-radius: 12px;
}

.info-contacto {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
}

.correo-box, .redes-box {
    background-color: var(--gris-tarjeta);
    padding: 30px;
    border-radius: 12px;
    border-left: 4px solid var(--rojo-brillante);
}

.correo-box h3, .redes-box h3 {
    font-family: 'Cinzel', serif;
    color: var(--dorado-oro);
    margin-bottom: 15px;
}

.icon-oro { color: var(--dorado-oro); margin-right: 10px;}

.redes-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.red-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    transition: opacity 0.3s;
}

.red-btn:hover { opacity: 0.85; }
.fb { background-color: #3b5998; }
.ig { background-color: #e1306c; }
.wa { background-color: #25d366; }

/* Footer */
footer {
    text-align: center;
    padding: 30px;
    background-color: #050507;
    border-top: 1px solid rgba(223, 183, 108, 0.2);
    color: #666;
    font-size: 0.85rem;
}

/* Botón Flotante WhatsApp Inferior Izquierdo Animado */
.whatsapp-flotante-izq {
    position: fixed;
    bottom: 30px;
    left: 30px; /* Ubicación solicitada */
    width: 65px;
    height: 65px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    box-shadow: 0px 4px 15px rgba(0,0,0,0.4);
    z-index: 9999;
    text-decoration: none;
    animation: saltito 3s infinite;
}

.pulso {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #25d366;
    border-radius: 50%;
    z-index: -1;
    animation: ondaPulso 2s infinite;
}

@keyframes saltito {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-12px); }
    60% { transform: translateY(-6px); }
}

@keyframes ondaPulso {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* Responsivo */
@media (max-width: 768px) {
    header { flex-direction: column; gap: 10px; padding: 15px; }
    nav a { margin: 0 10px; }
    .slide-content h1 { font-size: 2.5rem; }
    .video-card { width: 100%; }
}

/* Botón Flotante del Logo en la Derecha */
.logo-flotante-der {
    position: fixed;
    bottom: 30px;
    right: 30px; /* Ubicación en la esquina inferior derecha */
    width: 70px;
    height: 70px;
    z-index: 9999;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: flotacionSuave 3s infinite ease-in-out;
}

/* Contenedor circular del logo con marco dorado */
.logo-flotante-wrapper {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid var(--dorado-oro); /* Marco dorado grueso llamativo */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

.logo-flotante-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Efecto de onda expansiva dorada */
.pulso-dorado {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--dorado-oro);
    opacity: 0.5;
    z-index: 1;
    animation: ondaDorada 2s infinite ease-out;
}

/* Animación de flotación arriba/abajo */
@keyframes flotacionSuave {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Animación del pulso dorado */
@keyframes ondaDorada {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.4); opacity: 0; }
}

/* Asegurar que se vea perfecto en celulares disminuyendo un poco el tamaño */
@media (max-width: 480px) {
    .logo-flotante-der {
        bottom: 20px;
        right: 20px;
        width: 60px;
        height: 60px;
    }
}