/* --- Galería estilo Masonry (Pinterest) --- */
.galeria-grid {
    column-count: 3;
    column-gap: 20px;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.foto-item {
    break-inside: avoid; 
    margin-bottom: 20px; 
}

.foto-item img {
    width: 100%;
    height: auto; 
    display: block;
    border-radius: 8px;
    transition: transform 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.322);
}

.foto-item img:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 24px rgba(0,0,0,0.4);
}

/* Responsividad Galería */
@media (max-width: 900px) { .galeria-grid { column-count: 2; } }
@media (max-width: 600px) { .galeria-grid { column-count: 1; } }

/* --- NAVEGACIÓN (NAVBAR) CENTRADA --- */
.navbar {
    /* Efecto Vidrio Ahumado */
    background-color: rgba(46, 46, 46, 0.349) !important; 
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px); 
    
    height: 80px;
    width: 100%;
    
    /* Flexbox para centrar el logo */
    display: flex;
    justify-content: center; /* Centra el logo horizontalmente */
    align-items: center;     /* Centra verticalmente */
    
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.logo {
    font-weight: bold;
    color: #fff;
    font-size: 1.5rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-family: 'Playfair Display', serif;
    text-decoration: none; /* Quitamos el subrayado porque ahora es un link */
}

/* Iconos del menú (Posicionamiento Absoluto a la derecha) */
.nav-socials {
    position: absolute; /* Se salen del flujo normal */
    right: 2rem;        /* Pegados a la derecha */
    display: flex;
    gap: 15px;
    align-items: center;
}

.nav-socials a {
    color: white;
    font-size: 1.2rem;
    transition: color 0.3s;
}

/* Colores Hover en el Menú */
.nav-socials a:hover { color: #D4AF37; } /* Dorado general */
/* Si quieres colores específicos en el menú también: */
.nav-socials a[href*="instagram"]:hover { color: #e1306c; }
.nav-socials a[href*="facebook"]:hover { color: #1877F2; }
.nav-socials a[href*="tiktok"]:hover { color: #00f2ea; }
.nav-socials a[href*="youtube"]:hover { color: #FF0000; }

/* Ajuste Móvil Navbar */
@media (max-width: 600px) {
    .logo { font-size: 1.1rem; letter-spacing: 2px; }
    .nav-socials { right: 1rem; gap: 10px; }
    .nav-socials a { font-size: 1rem; }
}

/* --- FOOTER & BOTONES REDES (UNIFORMES) --- */
footer {
    text-align: center;
    padding: 2rem;
    font-size: 0.8rem;
    color: #666;
    margin-top: 3rem;
    border-top: 1px solid #222;
}

.social-icons {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    gap: 15px; 
}

/* Estilo BASE para TODOS los botones (incluido YouTube) */
.social-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 50px;       /* Todos miden 50px */
    height: 50px;      /* Todos miden 50px */
    background-color: #333333; 
    border: 1px solid #ffffff; 
    border-radius: 50%;
    color: white; 
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

/* Colores Hover (Solo cambia el color, no el tamaño) */
.social-btn.instagram:hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    border-color: transparent;
    transform: translateY(-5px);
}

.social-btn.facebook:hover {
    background-color: #1877F2;
    border-color: #1877F2;
    transform: translateY(-5px);
}

.social-btn.tiktok:hover {
    background-color: #000000;
    border-color: #333;
    transform: translateY(-5px);
}

/* YOUTUBE: Solo le damos su color ROJO fijo */
.social-btn.youtube {
    background-color: #FF0000; /* Fondo Rojo siempre */
    border-color: #FF0000;
}

.social-btn.youtube:hover {
    background-color: #cc0000; /* Rojo más oscuro al hover */
    transform: translateY(-5px);
}

/* --- Estilos Generales (Hero, Servicios, etc) --- */
.hero-fullscreen {
    background-image: url('../img/fondo_inicio.jpg'); 
    background-size: cover;
    background-position: center;
    height: 100vh;
    width: 100%;
    position: relative;
    margin-top: -80px; 
}

.hero-overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.7)); 
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-content h2 {
    font-size: 4rem;
    color: white;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 5px;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.5rem;
    color: #f0f0f0;
    margin-bottom: 2rem;
    font-weight: 300;
}

.btn-gold {
    padding: 15px 40px;
    border: 2px solid #D4AF37;
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
    transition: all 0.3s ease;
    background-color: rgba(0,0,0,0.5);
}

.btn-gold:hover {
    background-color: #D4AF37;
    color: black;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
}

/* Animaciones */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-up { animation: fadeInUp 1s ease forwards; opacity: 0; }
.delay { animation-delay: 0.3s; }
.delay-2 { animation-delay: 0.6s; }

/* Servicios y Zoom */
.services-section { padding: 4rem 1rem; background-color: #f9f9f9; text-align: center; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; max-width: 1200px; margin: 0 auto; }

.service-card { 
    background: white; padding: 2rem; border-radius: 10px; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); 
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    text-align: left; cursor: pointer;
}
.service-card:hover { transform: translateY(-5px); border-bottom: 4px solid #d4af37; }
.service-card.zoomed {
    transform: scale(1.15); z-index: 100; box-shadow: 0 20px 40px rgba(0,0,0,0.3); border: 2px solid #d4af37; background-color: #fff;
}
body.card-active .service-card:not(.zoomed) { opacity: 0.5; filter: blur(2px); }
.service-card h3 { color: #333; margin-bottom: 1rem; font-family: 'Playfair Display', serif; }
.service-card ul { padding-left: 20px; color: #666; }
.service-card li { margin-bottom: 0.5rem; }

/* Pasos, Galería Preview, Contacto */
.steps-section { 
    padding: 4rem 1rem; background-color: rgba(0, 0, 0, 0.7) !important; 
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    color: white !important; text-align: center; border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.step-box { max-width: 800px; margin: 0 auto; line-height: 1.8; }
.highlight { color: #d4af37; font-weight: bold; }
.gallery-preview-section { padding: 4rem 1rem; text-align: center; background-color: #fff; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 15px; max-width: 1200px; margin: 0 auto; }
.gallery-img { width: 100%; height: 300px; object-fit: cover; border-radius: 8px; transition: transform 0.3s ease, box-shadow 0.3s ease; cursor: pointer; }
.gallery-img:hover { transform: scale(1.03); box-shadow: 0 10px 20px rgba(0,0,0,0.2); }
.contact-section { padding: 4rem 1rem; max-width: 800px; margin: 0 auto; text-align: center; }
.social-buttons { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }
.btn-social { padding: 10px 20px; border-radius: 50px; text-decoration: none; color: white; font-weight: bold; transition: opacity 0.3s; }
.btn-insta { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.btn-face { background: #3b5998; }
.btn-tiktok { background: #000000; border: 1px solid #333; }
.whatsapp-form { background: #fff; padding: 2rem; border-radius: 15px; box-shadow: 0 5px 20px rgba(0,0,0,0.1); border: 2px solid #25D366; }
.form-group { margin-bottom: 1rem; text-align: left; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: bold; }
.form-control { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 5px; }
.btn-whatsapp { background-color: #25D366; color: white; padding: 12px 30px; border: none; border-radius: 5px; font-size: 1.1rem; cursor: pointer; width: 100%; font-weight: bold; }
.btn-whatsapp:hover { background-color: #1ebe57; }
.whatsapp-btn { position: fixed; bottom: 20px; right: 20px; background-color: #25D366; color: white; padding: 15px 20px; border-radius: 50px; text-decoration: none; font-weight: bold; box-shadow: 0 4px 10px rgba(0,0,0,0.3); z-index: 1001; transition: transform 0.3s; }
.whatsapp-btn:hover { transform: scale(1.1); }

/* --- Estilos para Videos Verticales (Shorts) --- */

.video-grid {
    display: flex;       /* Usamos Flex para acomodarlos */
    flex-wrap: wrap;     /* Si no caben, bajan a la siguiente fila */
    justify-content: center; /* Centrados en la pantalla */
    gap: 30px;           /* Espacio entre videos */
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.video-item {
    width: 100%;
    max-width: 350px;    /* ¡IMPORTANTE! Esto limita el ancho al tamaño de un celular */
    aspect-ratio: 9 / 16; /* Fuerza la forma vertical exacta (rectángulo parado) */
    
    border-radius: 15px; /* Bordes redondeados */
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3); /* Sombra elegante */
    transition: transform 0.3s ease;
    background: #000;    /* Fondo negro mientras carga */
    position: relative;  /* Necesario para ajustar el video adentro */
}

/* Esto obliga al video de YouTube a llenar el cuadrito sin salirse */
.video-item iframe {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    border: none;
}

/* Efecto al pasar el mouse */
.video-item:hover {
    transform: translateY(-5px); /* Flota un poquito */
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.2); /* Sombra dorada */
}