@import url('https://fonts.googleapis.com/css2?family=Kaushan+Script&family=Quicksand:wght@300..700&display=swap');

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

:root {
    --text-gold: #aea60b;
    --gold-bright: #d4af37;
    --gold-glow: rgba(189, 164, 50, 0.4);
}

body {
    background-color: #000000;
    font-family: "Great Vibes", cursive;
    width: 100%;
}

/* ============================================================
   HEADER Y NAVEGACIÓN
============================================================ */

header {
    background-color: #000000;
    width: 100%;
    padding: 20px;
    color: var(--text-gold);
    z-index: 1000;
    position: fixed;
    top: 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: center;
}

.letramenu {
    font-family: 'arial', sans-serif, cursive;
}

.menu {
    list-style: none;
    display: flex;
    gap: 50px;
    justify-content: space-between;
    text-align: center;
    align-items: center;
    margin: 0 auto;
}

.menu a {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: var(--text-gold);
    font-weight: bold;
    align-items: center;
    text-align: center;
}

.menu-toggle {
    display: none;
}

.logo {
    font-size: 1.5em;
}

/* ============================================================
   HERO: Carousel como fondo full-screen
============================================================ */

#inicio {
    /* Sin padding, el hero ocupa todo */
    padding: 0;
    margin: 0;
}

#hero-inicio {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 500px;
    overflow: hidden;
}

/* El carousel y sus hijos ocupan todo el fondo */
#hero-inicio .carousel,
#hero-inicio .carousel-inner,
#hero-inicio .carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
}

/* Imágenes cubren sin deformarse */
#hero-inicio .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
    box-shadow: none;
}

/* Overlay degradado para legibilidad del texto */
#hero-inicio .carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.40) 0%,
        rgba(0, 0, 0, 0.60) 100%
    );
    z-index: 2;
}

/* Contenido hero centrado sobre el overlay */
#hero-inicio .hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    text-align: center;
    width: 100%;
    padding: 0 1.5rem;
}

#hero-inicio .hero-content img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 100%;
    border: 3px solid rgba(174, 166, 11, 0.7);
    margin-bottom: 1.5rem;
    box-shadow: 0 0 30px var(--gold-glow);
}

#hero-inicio .hero-content h1 {
    color: #ffffff;
    font-family: "Great Vibes", cursive;
    font-size: clamp(2.2rem, 6vw, 5rem);
    text-shadow: 2px 3px 10px rgba(0, 0, 0, 0.8);
    margin-bottom: 0;
}

/* Indicadores y controles encima del overlay */
#hero-inicio .carousel-indicators,
#hero-inicio .carousel-control-prev,
#hero-inicio .carousel-control-next {
    z-index: 4;
}

/* Flecha animada de scroll */
.scroll-down-arrow {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    color: rgba(255, 255, 255, 0.75);
    font-size: 2.5rem;
    animation: bounce 1.8s infinite;
    text-decoration: none;
    line-height: 1;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(12px); }
}

/* ============================================================
   INDICADORES Y FLECHAS DEL CAROUSEL (estilos generales)
============================================================ */

.carousel-indicators button {
    background-color: var(--text-gold);
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(1);
}

/* ============================================================
   CONTENEDOR PRINCIPAL
============================================================ */

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-gold);
    font-weight: bold;
    font-family: "Great Vibes", cursive;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin: 0 auto;
}

/* ============================================================
   SECCIONES — con fondos degradados y altura flexible
============================================================ */

.seccion {
    width: 100%;
    min-height: 600px;          /* flexible, ya no altura fija */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-gold);
    font-weight: bold;
    font-family: "Great Vibes", cursive;
    padding: 5rem 2rem;         /* espacio vertical cómodo */
    border-radius: 0;
    /* background-color: #000 se sobreescribe por las reglas de sección abajo */
}

/* Nosotros — dorado/ámbar cálido oscuro */
#nosotros {
    background: linear-gradient(135deg, #1a1400 0%, #2e2200 50%, #1a1400 100%);
    border-top: 1px solid rgba(174, 166, 11, 0.25);
    border-bottom: 1px solid rgba(174, 166, 11, 0.25);
}

/* Servicios — negro con toque azul muy oscuro */
#servicios {
    background: linear-gradient(135deg, #000000 0%, #0a0a1a 50%, #000000 100%);
    border-top: 1px solid rgba(174, 166, 11, 0.2);
    border-bottom: 1px solid rgba(174, 166, 11, 0.2);
}

/* Galería fotos — oscuro azul/índigo */
#galeria {
    background: linear-gradient(135deg, #050510 0%, #0d0d2b 50%, #050510 100%);
    border-top: 1px solid rgba(100, 100, 200, 0.2);
    border-bottom: 1px solid rgba(100, 100, 200, 0.2);
}

/* Galería videos — negro con toque verde oscuro */
#galeriavideos {
    background: linear-gradient(135deg, #000000 0%, #001a0d 50%, #000000 100%);
    border-top: 1px solid rgba(0, 174, 100, 0.15);
    border-bottom: 1px solid rgba(0, 174, 100, 0.15);
}

/* Contacto — negro carbón neutro */
#contacto {
    background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 100%);
    border-top: 1px solid rgba(174, 166, 11, 0.25);
}

/* ============================================================
   TIPOGRAFÍA GLOBAL
============================================================ */

h1 {
    color: var(--text-gold);
    font-size: 4rem;
}

p {
    color: #f3f3f3;
    font-size: 1.5em;
    text-align: center;
    font-family: "Plus Jakarta Sans", sans-serif;
}

/* ============================================================
   GRID DE FOTOS
============================================================ */

.fotos {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    padding: 20px;
}

.foto {
    flex: 1 1 200px;
    max-width: 300px;
    border: 3px solid var(--text-gold);
    border-radius: 5px;
    box-shadow: 0 2px 6px var(--gold-glow);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.foto img {
    width: 100%;
    height: auto;
    display: block;
}

.foto p {
    font-size: 1.5em;
}

.fotos-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 20px 0;
}

.foto-item {
    flex: 1 1 300px;
    max-width: 400px;
    text-align: center;
    transition: transform 0.3s ease;
}

.foto-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #333;
}

.foto-item:hover {
    transform: translateY(-10px);
}

.img-container {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(211, 175, 55, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.overlay span {
    color: #000;
    font-weight: bold;
    font-size: 1.2rem;
    border: 2px solid #000;
    padding: 5px 15px;
}

.img-container:hover .overlay {
    opacity: 1;
}

.galeria-card img {
    height: 350px;
    object-fit: cover;
}

/* ============================================================
   SERVICIOS
============================================================ */

.servicios {
    display: flex;
}

.serv1 {
    margin: 20px;
    flex: 1;
    border: 1px solid rgba(174, 166, 11, 0.4);
    padding: 20px;
    border-radius: 10px;
}

.serv1 p {
    font-size: 1em;
}

.serv1 h2 {
    font-weight: bold;
    color: var(--text-gold);
    list-style: none;
    text-decoration: none;
}

.serv1 h2:hover {
    color: #8d8c8c;
    transform: translateY(-10px);
}

.serv1 a {
    color: var(--text-gold);
    text-decoration: none;
}

.serv1 a:hover {
    color: #fff;
}

/* ============================================================
   GALERÍA INDIVIDUAL (galeriabarras.html / galeriadulces.html)
============================================================ */

.galeria {
    width: 80px;
    padding: 20px;
    margin-bottom: 20px;
}

.fotogaleria {
    flex: 1 1 500px;
    width: 600px;
    height: 600px;
    border: 3px solid var(--text-gold);
    border-radius: 5px;
    box-shadow: 0 2px 6px var(--gold-glow);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.fotogaleria p {
    font-size: 1.5em;
}

.fotogaleria a img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.fotogaleria img:hover {
    box-shadow: 10px 10px 30px rgba(250, 226, 87, 0.801);
}

.fotogaleria img {
    width: 300px;
    height: 300px;
    border: 1px solid #ffff;
    border-radius: 5px;
}

.fotos2 {
    display: flex;
    margin-top: 20px;
    gap: 40px;
}

/* ============================================================
   VIDEOS
============================================================ */

.videos {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    padding: 20px;
}

.video {
    flex: 1 1 200px;
    max-width: 300px;
    border: 3px solid var(--text-gold);
    border-radius: 5px;
    box-shadow: 0 2px 6px var(--gold-glow);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.video img {
    width: 100%;
    height: auto;
    display: block;
}

.video p {
    font-size: 1.5em;
}

.video-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 20px 0;
}

.video-item {
    flex: 1 1 300px;
    max-width: 400px;
    text-align: center;
    transition: transform 0.3s ease;
}

.video-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #333;
}

.video-item:hover {
    transform: translateY(-10px);
}

.video-container {
    position: absolute;
    top: 90px;
    width: 80%;
    height: 60vh;
    overflow: hidden;
    z-index: -1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-container video {
    width: 80%;
    height: 80%;
    object-fit: cover;
    z-index: -1;
}

/* ============================================================
   FORMULARIO DE CONTACTO
============================================================ */

.formulario {
    display: flex;
    justify-content: center;
    flex-direction: column;
    width: 70%;
    border: 2px solid var(--text-gold);
    border-radius: 5px;
    color: #f3f3f3;
    padding: 30px;
    font-size: 1.5rem;
    font-family: Arial, Helvetica, sans-serif;
}

#contacto {
    text-align: center;
}

#contacto h1 {
    text-align: left;
}

#contacto form {
    max-width: 800px;
    margin: 0 auto;
}

.btn {
    width: 90px;
    margin: 0 auto;
}

/* ============================================================
   WHATSAPP FLOTANTE
============================================================ */

.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    cursor: pointer;
}

.whatsapp-float img {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* ============================================================
   FONDO ANTIGUO (.fondo) — mantenido por si se usa en otra página
============================================================ */

.fondo {
    background-size: cover;
    background-color: #000000;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    text-align: center;
    align-items: center;
    margin: 0 auto;
    flex-direction: column;
    color: var(--text-gold);
    font-weight: bold;
    font-family: "Great Vibes", cursive;
    margin-top: 30px;
    margin-bottom: 20px;
    width: 90%;
    height: 800px;
}

.fondo img {
    width: 30%;
    height: auto;
    border-radius: 400px;
    margin-bottom: 30px;
}

/* ============================================================
   PIE DE PÁGINA
============================================================ */

.pie {
    padding: 20px;
    text-align: center;
}

.pie a {
    width: 200px;
    font-size: 2rem;
}

/* ============================================================
   RESPONSIVE — Tablet grande / laptop pequeña (1024px)
============================================================ */

@media (max-width: 1024px) {

    .menu {
        gap: 20px;
    }

    .menu a {
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    .menu img {
        width: 45px !important;
    }

    #hero-inicio .hero-content img {
        width: 110px;
        height: 110px;
    }

    .fotos-grid {
        gap: 15px;
    }

    .foto-item {
        flex: 1 1 250px;
    }

    .galeria-card img {
        height: 280px;
    }

    .servicios {
        gap: 10px;
    }

    .formulario {
        width: 85%;
    }
}

/* ============================================================
   RESPONSIVE — Tablet (480px – 768px)
============================================================ */

@media (max-width: 768px) {

    /* --- Navegación: menú hamburguesa --- */
    nav {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 10px 15px;
    }

    .menu-toggle {
        display: block;
        font-size: 28px;
        cursor: pointer;
        color: var(--text-gold);
        background: none;
        border: none;
        padding: 5px 10px;
        z-index: 1100;
    }

    .menu {
        display: none;
        flex-direction: column;
        gap: 0;
        width: 100%;
        background-color: #111;
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 999;
        border-top: 1px solid rgba(174, 166, 11, 0.3);
        padding: 10px 0;
    }

    .menu.open {
        display: flex !important;
    }

    .menu a {
        padding: 14px 20px;
        color: var(--text-gold);
        text-align: left;
        font-size: 1rem;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        width: 100%;
    }

    .menu a:hover {
        background-color: rgba(174, 166, 11, 0.1);
    }

    /* Logo en el menú, centrado */
    .menu img {
        display: block;
        margin: 8px auto;
        width: 50px !important;
    }

    /* --- Hero --- */
    #hero-inicio {
        height: 100dvh;
        min-height: 400px;
    }

    #hero-inicio .hero-content img {
        width: 90px;
        height: 90px;
        margin-bottom: 1rem;
    }

    #hero-inicio .hero-content h1 {
        font-size: clamp(1.8rem, 8vw, 3rem);
    }

    /* --- Secciones --- */
    .seccion {
        padding: 3.5rem 1.2rem;
        min-height: auto;
        width: 100%;
    }

    h1 {
        font-size: 2.8rem;
        margin-bottom: 0.5rem;
    }

    p {
        font-size: 1rem;
        line-height: 1.6;
    }

    /* --- Fotos grid: 2 columnas en tablet --- */
    .fotos-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 15px 0;
    }

    .foto-item {
        max-width: 100%;
        flex: unset;
    }

    .foto-item img,
    .galeria-card img {
        height: 200px;
    }

    /* --- Servicios: columna en tablet --- */
    .servicios {
        flex-direction: column;
        gap: 20px;
        width: 100%;
    }

    .serv1 {
        width: 100%;
        margin: 0;
    }

    /* --- Formulario --- */
    .formulario {
        width: 95%;
        padding: 20px 15px;
        font-size: 1rem;
    }

    .formulario .row {
        flex-direction: column;
    }

    .formulario .col,
    .formulario .col-md-6 {
        width: 100%;
    }

    /* --- Fotos clásicas --- */
    .fotos {
        flex-direction: column;
        align-items: center;
    }

    .foto {
        width: 90%;
        max-width: 100%;
        margin-bottom: 15px;
    }

    /* Evitar que imágenes genéricas rompan el layout */
    img {
        max-width: 100%;
        height: auto;
    }
}

/* ============================================================
   RESPONSIVE — Mobile chico (menos de 480px)
============================================================ */

@media (max-width: 480px) {

    /* --- Header más compacto --- */
    header {
        padding: 12px 15px;
    }

    .menu-toggle {
        font-size: 26px;
    }

    /* --- Hero: ajuste de logo y texto --- */
    #hero-inicio {
        min-height: 380px;
    }

    #hero-inicio .hero-content img {
        width: 70px;
        height: 70px;
        margin-bottom: 0.8rem;
    }

    #hero-inicio .hero-content h1 {
        font-size: clamp(1.5rem, 9vw, 2.2rem);
        line-height: 1.3;
    }

    .scroll-down-arrow {
        font-size: 2rem;
        bottom: 20px;
    }

    /* --- Tipografía reducida --- */
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    p {
        font-size: 0.95rem;
    }

    /* --- Fotos en 1 columna en móvil chico --- */
    .fotos-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .foto-item img,
    .galeria-card img {
        height: 220px;
    }

    /* --- Secciones con menos padding --- */
    .seccion {
        padding: 2.5rem 1rem;
    }

    /* --- Formulario full width --- */
    .formulario {
        width: 100%;
        border-radius: 0;
        border-left: none;
        border-right: none;
        padding: 15px 12px;
    }

    .btn {
        width: 100%;
        padding: 10px;
        font-size: 1rem;
    }

    /* --- Servicios: texto más compacto --- */
    .serv1 {
        padding: 15px;
    }

    .serv1 p {
        font-size: 0.9rem;
    }

    /* --- WhatsApp flotante: más pequeño --- */
    .whatsapp-float img {
        width: 46px;
        height: 46px;
    }

    /* --- Overlay de galería siempre visible en touch --- */
    .overlay {
        opacity: 1;
        background: rgba(211, 175, 55, 0.45);
    }
}
