/* =====================================================
   BITÁCORA MUSICAL — HOJA DE ESTILOS
   Paleta: borgoña + dorado (estética terciopelo elegante)
   ===================================================== */


/* =====================================================
   VARIABLES CSS — COLORES Y TIPOGRAFÍA
   ===================================================== */
:root {
    /* Colores */
    --borgona-principal: #5C1A2B;
    --borgona-oscuro: #3D0F1C;
    --dorado: #C9A961;
    --dorado-claro: #E8D4A0;
    --crema: #F2EBE0;
    --texto-oscuro: #1A0A10;

    /* Tipografía */
    --font-titulo: 'Cormorant Garamond', Georgia, serif;
    --font-cuerpo: 'Lato', 'Helvetica Neue', Arial, sans-serif;

    /* Espaciado y otros */
    --max-width: 1200px;
    --max-width-narrow: 800px;
    --section-padding: 100px 24px;
    --section-padding-mobile: 60px 20px;
}


/* =====================================================
   RESET Y BASES
   ===================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* compensa la altura del menú fijo */
}

body {
    font-family: var(--font-cuerpo);
    font-weight: 300;
    color: var(--texto-oscuro);
    background-color: var(--crema);
    line-height: 1.7;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s ease, color 0.3s ease;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* Focus visible para accesibilidad */
*:focus-visible {
    outline: 2px solid var(--dorado);
    outline-offset: 3px;
}


/* =====================================================
   TIPOGRAFÍA GENERAL
   ===================================================== */
h1, h2, h3, h4 {
    font-family: var(--font-titulo);
    font-weight: 400;
    line-height: 1.2;
}


/* =====================================================
   CONTENEDORES
   ===================================================== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow {
    max-width: var(--max-width-narrow);
    margin: 0 auto;
    padding: 0 24px;
}


/* =====================================================
   SECCIONES (alternancia de fondos)
   ===================================================== */
.section {
    padding: var(--section-padding);
    position: relative;
}

.section-crema {
    background-color: var(--crema);
    color: var(--texto-oscuro);
}

.section-borgona {
    background: radial-gradient(ellipse at center, var(--borgona-principal) 0%, var(--borgona-oscuro) 100%);
    color: var(--crema);
}

.section-borgona-oscuro {
    background: radial-gradient(ellipse at center, var(--borgona-oscuro) 0%, #2A0912 100%);
    color: var(--crema);
}

/* Títulos de sección */
.section-title {
    font-size: 2.8rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--borgona-principal);
    margin-bottom: 20px;
}

.section-title-claro {
    color: var(--dorado);
}

/* Separador entre título y contenido (líneas + estrella dorada) */
.separator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: var(--dorado);
    margin-bottom: 50px;
    font-size: 1.2rem;
}

.separator span {
    display: block;
    width: 60px;
    height: 1px;
    background-color: var(--dorado);
}

.separator-claro {
    color: var(--dorado-claro);
}

.separator-claro span {
    background-color: var(--dorado-claro);
}

/* Párrafo introductorio */
.section-intro {
    font-size: 1.15rem;
    text-align: center;
    max-width: 720px;
    margin: 0 auto 60px;
    font-weight: 300;
}

.section-intro-claro {
    color: var(--crema);
}


/* =====================================================
   BOTÓN DORADO (CTA)
   ===================================================== */
.btn-dorado {
    display: inline-block;
    padding: 16px 40px;
    background-color: transparent;
    color: var(--dorado);
    border: 1px solid var(--dorado);
    font-family: var(--font-cuerpo);
    font-size: 0.95rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    cursor: pointer;
    transition: all 0.4s ease;
}

.btn-dorado:hover,
.btn-dorado:focus-visible {
    background-color: var(--dorado);
    color: var(--borgona-oscuro);
}


/* =====================================================
   ============ MENÚ DE NAVEGACIÓN ===================
   ===================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(61, 15, 28, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(201, 169, 97, 0.2);
    transition: padding 0.3s ease;
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-titulo);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--dorado);
    letter-spacing: 0.05em;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    color: var(--crema);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 300;
    position: relative;
}

.nav-links a:hover {
    color: var(--dorado);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--dorado);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Selector de idioma */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
}

.lang-switcher a {
    color: var(--dorado);
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.lang-switcher a:hover {
    opacity: 0.85;
}

.lang-switcher .lang-active {
    opacity: 1;
    font-weight: 700;
}

.lang-divider {
    color: var(--dorado);
    opacity: 0.4;
}

/* Botón hamburguesa */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background-color: var(--dorado);
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* =====================================================
   ============ 1. HERO ===============================
   ===================================================== */
.hero {
    min-height: 100vh;
    background: radial-gradient(ellipse at center, var(--borgona-principal) 0%, var(--borgona-oscuro) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 24px 80px;
    color: var(--crema);
    overflow: hidden;
}

.hero-bg-video,
.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.4;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
}

.hero-logo {
    max-width: 180px;
    margin: 0 auto 30px;
}

.hero-title {
    font-family: var(--font-titulo);
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 600;
    color: var(--dorado);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 20px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--dorado-claro);
    font-style: italic;
    letter-spacing: 0.05em;
    margin-bottom: 50px;
    font-weight: 300;
}

/* Separador decorativo al final del hero */
.separator-hero {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--dorado);
}

.separator-line {
    display: block;
    width: 80px;
    height: 1px;
    background-color: var(--dorado);
    opacity: 0.6;
}

.separator-star {
    font-size: 1rem;
    opacity: 0.8;
}


/* =====================================================
   ============ 2. PROPUESTA — 3 PUNTOS DESTACADOS ====
   ===================================================== */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
}

.punto-destacado {
    text-align: center;
}

.icono-dorado {
    width: 56px;
    height: 56px;
    color: var(--dorado);
    margin: 0 auto 20px;
}

.punto-destacado h3 {
    font-size: 1.5rem;
    color: var(--borgona-principal);
    margin-bottom: 14px;
    letter-spacing: 0.05em;
}

.punto-destacado p {
    font-size: 0.98rem;
    line-height: 1.6;
}


/* =====================================================
   ============ 3. EL MÉTODO — TIMELINE ===============
   ===================================================== */
.timeline {
    list-style: none;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 20px;
    bottom: 20px;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--dorado), transparent);
}

.timeline-item {
    display: flex;
    gap: 40px;
    margin-bottom: 50px;
    position: relative;
    align-items: flex-start;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-numero {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border: 1px solid var(--dorado);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-titulo);
    font-size: 2rem;
    color: var(--dorado);
    background-color: var(--crema);
    position: relative;
    z-index: 1;
}

.timeline-contenido h3 {
    font-size: 1.6rem;
    color: var(--borgona-principal);
    margin-bottom: 10px;
    margin-top: 10px;
    letter-spacing: 0.04em;
}

.timeline-contenido p {
    font-size: 1rem;
}


/* =====================================================
   ============ 4. SOBRE MÍ ===========================
   ===================================================== */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.foto-marco {
    border: 1px solid var(--dorado);
    padding: 12px;
    background-color: rgba(0, 0, 0, 0.2);
}

.foto-marco img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
}

.sobre-mi-texto .section-title {
    text-align: left;
}

.sobre-mi-texto .separator {
    justify-content: flex-start;
    margin-bottom: 30px;
}

.sobre-mi-texto p {
    margin-bottom: 30px;
    font-size: 1.05rem;
}

/* Redes sociales (íconos) */
.redes-sociales {
    display: flex;
    gap: 16px;
    margin-top: 20px;
}

.redes-sociales a {
    width: 42px;
    height: 42px;
    border: 1px solid var(--dorado);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dorado);
    transition: all 0.3s ease;
}

.redes-sociales a:hover {
    background-color: var(--dorado);
    color: var(--borgona-oscuro);
}

.redes-sociales svg {
    width: 20px;
    height: 20px;
}


/* =====================================================
   ============ 5. MUESTRAS DE VIDEO ==================
   ===================================================== */
.grid-videos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.video-embed {
    background-color: var(--borgona-oscuro);
    border: 1px solid var(--dorado);
    padding: 8px;
    min-height: 500px;
    display: flex;
    align-items: stretch;
}

.video-embed .instagram-media {
    margin: 0 !important;
    width: 100% !important;
    min-width: 0 !important;
}


/* =====================================================
   ============ 6. FORMATOS — TARJETAS ================
   ===================================================== */
.card-formato {
    background: radial-gradient(ellipse at center, var(--borgona-principal) 0%, var(--borgona-oscuro) 100%);
    border: 1px solid var(--dorado);
    padding: 40px 30px;
    text-align: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.card-formato:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.card-formato h3 {
    font-size: 1.6rem;
    color: var(--dorado);
    margin-bottom: 18px;
    letter-spacing: 0.04em;
}

.card-formato p {
    color: var(--crema);
    font-size: 0.98rem;
}

/* Nota destacada sobre sonido */
.nota-sonido {
    margin-top: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid var(--dorado);
    background-color: rgba(0, 0, 0, 0.3);
    padding: 30px 40px;
    text-align: center;
}

.nota-sonido h4 {
    font-size: 1.4rem;
    color: var(--dorado-claro);
    margin-bottom: 12px;
    letter-spacing: 0.05em;
}

.nota-sonido p {
    color: var(--crema);
    font-size: 1rem;
    font-style: italic;
}


/* =====================================================
   ============ 7. PARA QUIÉN =========================
   ===================================================== */
.bloque-publico {
    text-align: center;
    padding: 30px 20px;
}

.bloque-publico h3 {
    font-size: 1.6rem;
    color: var(--borgona-principal);
    margin-bottom: 16px;
    letter-spacing: 0.04em;
}

.bloque-publico p {
    font-size: 1rem;
}


/* =====================================================
   ============ 8. FAQ — ACORDEÓN =====================
   ===================================================== */
.faq-lista {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    border-bottom: 1px solid rgba(92, 26, 43, 0.2);
}

.faq-pregunta {
    width: 100%;
    padding: 22px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    text-align: left;
    font-family: var(--font-titulo);
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--borgona-principal);
    transition: color 0.3s ease;
}

.faq-pregunta:hover {
    color: var(--borgona-oscuro);
}

.faq-icono {
    color: var(--dorado);
    font-size: 1.5rem;
    font-weight: 300;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.faq-item.activo .faq-icono {
    transform: rotate(45deg);
}

.faq-respuesta {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-respuesta p {
    padding: 0 0 22px;
    font-size: 1rem;
    line-height: 1.7;
}


/* =====================================================
   ============ 9. CONTACTO ===========================
   ===================================================== */
.contacto-grid {
    align-items: flex-start;
    gap: 80px;
}

/* Info de contacto */
.contacto-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contacto-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.icono-dorado-small {
    width: 28px;
    height: 28px;
    color: var(--dorado);
    flex-shrink: 0;
    margin-top: 4px;
}

.contacto-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--dorado);
    margin-bottom: 4px;
}

.contacto-item a {
    color: var(--crema);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.contacto-item a:hover {
    border-bottom-color: var(--dorado);
}

/* Formulario */
.contacto-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--dorado);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    background-color: transparent;
    border: 1px solid var(--dorado);
    padding: 12px 14px;
    color: var(--crema);
    font-family: var(--font-cuerpo);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--dorado-claro);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--crema);
    opacity: 0.5;
}

.form-group select {
    cursor: pointer;
}

.form-group select option {
    background-color: var(--borgona-oscuro);
    color: var(--crema);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Calendar picker estilo */
.form-group input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.8) sepia(1) saturate(2) hue-rotate(15deg);
    cursor: pointer;
}

.contacto-form .btn-dorado {
    align-self: flex-start;
    margin-top: 10px;
}


/* =====================================================
   ============ 10. FOOTER ============================
   ===================================================== */
.footer {
    background: radial-gradient(ellipse at center, var(--borgona-oscuro) 0%, #2A0912 100%);
    color: var(--crema);
    padding: 60px 24px 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
    margin-bottom: 40px;
}

.footer-bloque h4 {
    font-size: 1.2rem;
    color: var(--dorado);
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.footer-bloque p {
    font-style: italic;
    font-size: 0.95rem;
    color: var(--dorado-claro);
}

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

.footer-bloque ul a {
    font-size: 0.95rem;
    color: var(--crema);
    transition: color 0.3s ease;
}

.footer-bloque ul a:hover {
    color: var(--dorado);
}

.footer-divisor {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--dorado), transparent);
    opacity: 0.5;
    margin-bottom: 24px;
}

.footer-copyright {
    text-align: center;
    font-size: 0.85rem;
    color: var(--crema);
    opacity: 0.7;
    letter-spacing: 0.05em;
}


/* =====================================================
   ============ ANIMACIONES DE SCROLL =================
   ===================================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}


/* =====================================================
   ============ RESPONSIVE — BREAKPOINTS ==============
   ===================================================== */

/* Tablet horizontal (≤1024px) */
@media (max-width: 1024px) {
    .section-title {
        font-size: 2.4rem;
    }

    .grid-3 {
        gap: 40px;
    }

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

    .nav-links {
        gap: 22px;
    }

    .nav-links a {
        font-size: 0.82rem;
    }
}

/* Tablet vertical (≤768px) */
@media (max-width: 768px) {
    .section {
        padding: var(--section-padding-mobile);
    }

    .section-title {
        font-size: 2rem;
    }

    .section-intro {
        font-size: 1.05rem;
        margin-bottom: 40px;
    }

    /* Menú hamburguesa visible */
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 340px;
        height: 100vh;
        background: radial-gradient(ellipse at center, var(--borgona-principal) 0%, var(--borgona-oscuro) 100%);
        flex-direction: column;
        justify-content: center;
        gap: 40px;
        padding: 80px 40px 40px;
        transition: right 0.4s ease;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-links {
        flex-direction: column;
        gap: 22px;
        width: 100%;
    }

    .nav-links a {
        font-size: 1rem;
        padding: 8px 0;
        display: block;
    }

    .lang-switcher {
        margin-top: 20px;
        font-size: 1rem;
    }

    /* Grillas pasan a 1 columna */
    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    /* Timeline */
    .timeline::before {
        left: 24px;
    }

    .timeline-item {
        gap: 24px;
    }

    .timeline-numero {
        width: 48px;
        height: 48px;
        font-size: 1.6rem;
    }

    /* Sobre mí: foto y texto se apilan */
    .sobre-mi-texto .section-title,
    .sobre-mi-texto .separator {
        text-align: center;
        justify-content: center;
    }

    /* Contacto */
    .contacto-grid {
        gap: 50px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
        text-align: center;
    }

    .footer-bloque ul {
        align-items: center;
    }

    .redes-sociales {
        justify-content: center;
    }

    /* Hero */
    .hero {
        padding: 100px 20px 60px;
        min-height: 90vh;
    }

    .hero-logo {
        max-width: 140px;
    }
}

/* Mobile (≤480px) */
@media (max-width: 480px) {
    .section-title {
        font-size: 1.7rem;
        letter-spacing: 0.1em;
    }

    .hero-title {
        letter-spacing: 0.05em;
    }

    .nota-sonido {
        padding: 24px 20px;
    }

    .card-formato {
        padding: 30px 22px;
    }

    .faq-pregunta {
        font-size: 1.05rem;
    }

    .container,
    .container-narrow {
        padding: 0 16px;
    }
}

/* Desktop grande (≥1440px) — refinamientos */
@media (min-width: 1440px) {
    .hero-title {
        font-size: 5.5rem;
    }

    .section-title {
        font-size: 3rem;
    }
}
