@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');

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

html, body {
    height: 100%;
    font-family: Arial, Helvetica, sans-serif;
}

/* Cabecera con imagen de fondo */
.hero {
    position: relative;
    min-height: 100vh;              /* ocupa toda la altura de la pantalla */
    background: url('../img/mozos-fondo.jpg') center center / cover no-repeat;
    color: #fff;
    display: flex;
    flex-direction: column;
    padding: 140px 20px 120px;
    text-align: center;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.4));
    z-index: 0;
}

/* Menu arriba */
.navbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7), transparent);
    z-index: 2;
}

.logo {
    font-weight: bold;
    font-size: 20px;
}

.logo img {
    height: 200px;
    max-height: 25vh;
    width: auto;
    object-fit: contain;
}

.menu {
    list-style: none;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.menu a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.menu-panel {
    display: contents;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 24px;
    line-height: 1;
    padding: 8px;
    cursor: pointer;
}

.nav-toggle .icon-close {
    display: none;
}

body.nav-open {
    overflow: hidden;
}

body.nav-open .nav-toggle .icon-menu {
    display: none;
}

body.nav-open .nav-toggle .icon-close {
    display: inline;
}

/* Texto centrado sobre la imagen */
.hero-content {
    margin-top: 40px;
    margin-bottom: 90px;
    text-align: center;
    padding: 0 20px;
    text-shadow: 0 0 8px rgba(0,0,0,0.8);
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 60px;
    margin-bottom: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
    font-family: 'Bebas Neue', sans-serif;
    padding: 6px 12px;
    border-radius: 10px;
    background: transparent;
    text-shadow:
        0 10px 28px rgba(0,0,0,0.65),
        0 0 30px rgba(0,0,0,0.55),
        0 0 2px rgba(0,0,0,0.95);
    display: inline-block; /* ajusta el fondo al ancho del texto */
}

.hero-content p {
    font-size: 22px;
    margin-top: 25px;
    margin-bottom: 26px;
    opacity: 0.9;
}

/* Boton */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    background: #ff4d4d;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: 0.3s ease;
}

.btn:hover {
    background: #ff7070;
    transform: scale(1.05);
}

/* Secciones debajo */
.section {
    padding: 60px 20px;
    text-align: center;
    background: #f4f4f4;
    color: #333;
}

.section:nth-of-type(even) {
    background: #ffffff;
}

footer {
    background: #111;
    color: #fff;
    text-align: center;
    padding: 20px;
}

.social-floating {
    position: fixed;
    bottom: 25px;   /* distancia desde abajo */
    right: 25px;    /* distancia desde la derecha */
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 9999;  /* siempre encima */
}

.social-floating img {
    width: 40px;
    height: 40px;
    border-radius: 50%;          /* icono redondo */
    background: white;           /* fondo blanco para que se vea en todas las fotos */
    padding: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.social-floating img:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 14px rgba(0,0,0,0.3);
}

.page-content {
    background: #0d1117;
    color: #fff;
    padding: 60px 20px 80px;
}

.gallery-section {
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-header h2 {
    font-size: 28px;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.gallery-header p {
    color: #d2d6dc;
    margin-bottom: 20px;
}

.album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

/* Galería: limitar altura y permitir scroll interno cuando haya muchas fotos */
.gallery-card .album-grid {
    max-height: 65vh;
    overflow-y: auto;
    padding-right: 8px;
}

.album-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.25);
}

.album-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.album-icon {
    font-size: 22px;
}

.album-card h3 {
    font-size: 18px;
    margin-bottom: 4px;
}

.album-card p {
    font-size: 14px;
    color: #cbd5e1;
}

.photo-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}

.photo-thumb {
    position: relative;
    padding-top: 70%;
    border-radius: 12px;
    background-color: #1f2937;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05), 0 8px 18px rgba(0,0,0,0.3);
}

/* Calendario eventos */
.events-card {
    position: relative;
    z-index: 2;
    max-width: 1500px;
    width: 95vw;
    margin: 80px auto 0;
    background: rgba(255,255,255,0.92);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.35);
    color: #0f172a;
}

.events-header {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 14px;
    margin-bottom: 12px;
}

.filters {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.filters label {
    font-size: 12px;
    color: #0f172a;
}

.month-picker {
    position: relative;
}

.picker-trigger {
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.12);
    background: #fff;
    color: #0f172a;
    font-weight: 700;
    cursor: pointer;
    min-width: 220px;
    text-align: center;
    box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

.picker-panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
    padding: 14px;
    min-width: 320px;
    z-index: 5;
    display: none;
}

.month-picker.open .picker-panel {
    display: block;
}

.picker-title {
    font-weight: 800;
    color: #0b3c5c;
    text-align: center;
    margin-bottom: 6px;
}

.picker-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 8px;
    font-weight: 700;
    color: #0f172a;
}

.picker-arrow {
    background: #0b3c5c;
    color: #fff;
    border: none;
    border-radius: 8px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}

.picker-arrow:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.18);
    background: #092f46;
}

.picker-months {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

.picker-month {
    background: #f1f5f9;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    font-weight: 700;
    color: #0f172a;
    transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.picker-month:hover {
    background: #e2e8f0;
    transform: translateY(-1px);
}

.picker-month.active {
    background: #0b3c5c;
    color: #fff;
    border-color: transparent;
}

.month-display {
    font-size: 18px;
    font-weight: 800;
    color: #0b3c5c;
    margin: 10px 0;
    text-align: center;
}

.event-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.event-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.05);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.event-row:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.08);
    border-color: rgba(15,116,144,0.35);
}

.event-row .day {
    font-weight: 800;
    color: #0b3c5c;
    min-width: 32px;
}

.event-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: #0f172a;
    width: 100%;
}

.event-text strong {
    font-size: 14px;
}

.event-text p {
    font-size: 13px;
    margin: 0;
    color: #475569;
        width: 100%;
}

.event-row.placeholder {
    background: #fff;
    border-style: solid;
    color: #0f172a;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.event-detail {
    background: #0d1117;
    color: #fff;
    padding: 50px 20px 80px;
}

.detail-card {
    max-width: 900px;
    margin: 0 auto;
    background: #111827;
    border-radius: 16px;
    padding: 22px 24px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.06);
}

.detail-card h2 {
    font-size: 22px;
    margin-bottom: 10px;
}

.detail-card p {
    color: #e2e8f0;
    line-height: 1.6;
}

/* Ajustes responsive */
@media (max-width: 900px) {
    .navbar {
        padding: 16px 20px;
    }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        z-index: 10;
    }

    .menu-panel {
        display: none;
        position: fixed;
        inset: 0;
        background: #ffffff;
        color: #0f172a;
        padding: 80px 24px 32px;
        overflow-y: auto;
        box-shadow: 0 10px 30px rgba(0,0,0,0.35);
        z-index: 9;
    }

    body.nav-open .menu-panel {
        display: block;
    }

    body.nav-open .navbar {
        background: #ffffff;
    }

    body.nav-open .nav-toggle {
        color: #0f172a;
        position: fixed;
        top: 22px;
        right: 20px;
    }

    .menu {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        width: 100%;
    }

    .menu li {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 0;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }

    .menu li::after {
        content: '›';
        color: #4b5563;
        font-size: 18px;
    }

    .menu a {
        color: #0f172a;
        font-size: 16px;
    }

    .logo img {
        height: 160px;
        max-height: 22vh;
    }

    .hero {
        padding: 120px 18px 100px;
    }

    .hero-content {
        margin-bottom: 80px;
    }

    .hero-content h1 {
        font-size: 48px;
        letter-spacing: 1.5px;
    }

    .hero-content p {
        font-size: 20px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 16px;
    }

    .calendar-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .logo img {
        height: 120px;
        max-height: 20vh;
    }

    .hero {
        padding: 110px 16px 90px;
    }

    .hero-content {
        margin-bottom: 60px;
        padding: 0 14px;
    }

    .hero-content h1 {
        font-size: 42px;
    }

    .hero-content p {
        font-size: 18px;
    }

    .btn {
        padding: 12px 22px;
        font-size: 16px;
    }

    .calendar-grid {
        grid-template-columns: 1fr;
    }
}

/* Gallery filters and lightbox overrides */
.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 14px;
    margin-bottom: 16px;
}

.filter-btn {
    padding: 10px 16px;
    border: 1px solid rgba(0,0,0,0.08);
    background: #e3e8f0;
    color: #0f172a;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease, border-color 0.15s ease, color 0.15s ease;
}

.filter-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(0,0,0,0.15);
    background: #d7deeb;
}

.filter-btn.active {
    background: #0b3c5c;
    border-color: #0b3c5c;
    color: #fff;
}

.photo-thumb {
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* Contacto */
.contact-hero {
    margin-top: 80px;
    margin-bottom: 50px;
}

.contact-card {
    background: rgba(255,255,255,0.9);
    color: #0f172a;
    padding: 28px;
    border-radius: 16px;
    max-width: 560px;
    margin: 0 auto;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: center;
}

/* Alinea el arranque del bloque principal en todas las páginas */
.hero .events-card,
.hero .contact-card {
    margin-top: 80px;
}

.contact-card h1 {
    color: #0f172a;
}

.contact-card p {
    margin: 0 0 4px;
    font-size: 16px;
    color: #1f2937;
}

.contact-actions {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.btn-email {
    padding: 14px 32px;
    font-size: 20px;
    background: #0b3c5c;
    border: 1px solid #0b3c5c;
    box-shadow: none;
}

.btn-email:hover {
    background: #0e4d75;
}

.social-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(255,255,255,0.95);
    color: #0f172a;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 6px 14px rgba(0,0,0,0.18);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.social-link img {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    object-fit: contain;
    background: #fff;
}

.social-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.22);
    background: #eef3f9;
}

.lightbox {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.lightbox.open {
    display: flex;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
}

.lightbox-content {
    position: relative;
    z-index: 1;
    background: #0b1625;
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.lightbox-content img {
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 10px;
}

.lightbox-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 16px;
}

.lightbox-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.45);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-btn.prev { left: 8px; }
.lightbox-btn.next { right: 8px; }

/* Gallery filters and lightbox */
.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 14px;
    margin-bottom: 16px;
}

.filter-btn {
    padding: 10px 16px;
    border: 1px solid rgba(0,0,0,0.16);
    background: #edf1f7;
    color: #0f172a;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.filter-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(0,0,0,0.25);
    background: #e1e7f0;
}

.filter-btn.active {
    background: #0b3c5c;
    border-color: #0b3c5c;
    color: #fff;
    box-shadow: 0 6px 14px rgba(0,0,0,0.2);
}

.album-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
}

.album-thumb {
    display: block;
    width: 100%;
    padding-top: 65%;
    background-size: cover;
    background-position: center;
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.album-thumb:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 22px rgba(0,0,0,0.35);
}

.album-meta {
    padding: 12px 14px 14px;
    background: #fff;
    color: #0f172a;
}

.album-meta h3 {
    margin: 0 0 6px;
    font-size: 16px;
}

.album-meta p {
    margin: 0;
    font-size: 13px;
    color: #475569;
}

.lightbox {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.lightbox.open {
    display: flex;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
}

.lightbox-content {
    position: relative;
    z-index: 1;
    background: #0b1625;
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.lightbox-content img {
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 10px;
}

.lightbox-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 16px;
}

/* Quiénes somos */
.about-card {
    max-width: 1100px;
    padding: 40px 48px;
    text-align: left;
    background: rgba(255,255,255,0.96);
    border: 1px solid rgba(0,0,0,0.06);
}

.about-card h1 {
    margin-bottom: 10px;
    font-size: 32px;
    letter-spacing: 1px;
    color: #0f172a;
}

.about-accent {
    width: 80px;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(90deg, #0b3c5c, #0e6ba8);
    margin-bottom: 20px;
}

.about-card p {
    margin: 0 0 14px;
    line-height: 1.65;
    color: #1f2937;
    font-size: 16px;
}

.about-card .about-lead {
    font-weight: 700;
    color: #0f172a;
}
