/*
  STYLE REFACTORIZADO - BODA LUIS & MICAELA
  - Estilo plano (sin sombras) para un look moderno.
  - Fondos de sección alternados para un mejor ritmo visual.
  - Estructura limpia y organizada.
*/

/* --- Variables Globales --- */
:root {
    --font-primary: 'Montserrat', Arial, sans-serif;
    --font-headings: 'Playball', cursive;
    --font-display: 'Great Vibes', cursive;
    --font-hero-names: 'Monsieur La Doulaise', cursive;
    --font-hero-title: 'Epilogue', sans-serif;
    --font-mono: 'Courier New', monospace;

    --color-dark: #111;
    --color-light: #fff;
    --color-text: #333;
    --color-text-muted: #666;
    --color-background: #f8f4f4; /* Gris claro */
    --color-background-alt: #fff; /* Blanco */
}

/* --- Reset y Estilos Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--color-dark);
    color: var(--color-light);
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Componentes Reutilizables --- */
.btn {
    background: #111;
    color: var(--color-light);
    border: 2px solid #111;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.2s ease; /* Transición solo para el "levantamiento" */
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn:hover {
    transform: translateY(-2px); /* Efecto sutil sin sombras */
}

.btn.btn-full {
    width: 100%;
}

.section-title {
    font-family: var(--font-headings);
    font-style: normal;
    font-weight: 400;
    font-size: 2.5rem;
    color: var(--color-text);
    text-align: center;
    margin-bottom: 50px;
}

#overlay-bienvenida {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(255,255,255,0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s;
}

.overlay-contenido {
  text-align: center;
}

#play-music-btn {
  background: none;
  border: none;
  cursor: pointer;
  outline: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}
#play-music-btn:hover {
  transform: scale(1.1);
}

/* Inversión de colores en hover */
#play-music-btn:hover circle {
  stroke: #fff;
  fill: #111;
}

#play-music-btn:hover polygon {
  fill: #fff;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 800px;
    background: url('../img/6-\ Mica\ &\ flia.jpg') center center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.hero-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.hero-title {
    color: var(--color-light);
    font-family: var(--font-hero-title);
    font-size: 2rem;
    margin-top: 400px;
    text-align: center;
    letter-spacing: 2px;
    font-weight: 300;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.hero-names {
    color: var(--color-light);
    font-size: 6rem;
    font-family: var(--font-hero-names);
    margin-top: 5vh;
    text-align: center;
    font-weight: 400;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* --- Date Section (Calendario) --- */
.date-elegant {
    text-align: center;
    padding: 60px 0;
    background: var(--color-dark); /* Mantenemos el fondo oscuro como pidió el usuario */
    color: var(--color-light);
}

.date-elegant .day-of-week {
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 4px;
    color: rgba(255, 255, 255, 0.7);
}

.date-elegant .date-main {
    font-family: var(--font-display);
    font-size: 8rem;
    line-height: 1;
    margin: 10px 0;
    color: var(--color-light);
    text-shadow: 0 2px 15px rgba(0,0,0,0.3);
}

.date-elegant .month-year {
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--color-light);
}

/* --- Estilos de Secciones Alternadas --- */
#countdown-section,
#photo-gallery,
#gifts {
    padding: 80px 0;
    background: var(--color-background); /* Fondo gris claro */
    color: var(--color-text);
}

#ceremony,
#dress-code,
#rsvp {
    padding: 80px 0;
    background: var(--color-background-alt); /* Fondo blanco */
    color: var(--color-text);
}

/* --- Countdown Section --- */
.countdown {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.time-unit {
    text-align: center;
    background: var(--color-background-alt); /* Fondo blanco para contrastar */
    padding: 30px 20px;
    border-radius: 15px;
    min-width: 120px;
    border: 1px solid #eee; /* Borde sutil en lugar de sombra */
}

.time-unit .number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-dark);
    line-height: 1;
}

.time-unit .label {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
}

/* --- Frase Section --- */
.frase {
    font-family: 'Playball', cursive;
    font-style: italic;
    font-weight: 400;
    font-size: 1.5rem;
    text-align: center;
    margin: 2rem 0;
    color: #f8ebeb;
}

/* --- Locations Section (Ceremony) --- */
.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.location-card {
    background: var(--color-background); /* Fondo gris claro para contrastar */
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid #eee; /* Borde sutil */
}

.location-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-bottom: 20px;
}

.location-card h3 {
    font-family: var(--font-headings);
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--color-text);
    margin-bottom: 15px;
}

.location-card .venue {
    font-family: var(--font-hero-title);
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--color-text);
    margin-bottom: 25px;
}

/* --- Photo Gallery Section --- */
.carousel-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    cursor: grab;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-out;
    will-change: transform;
}

.carousel-track.is-dragging {
    transition: none;
    cursor: grabbing;
}

.carousel-slide {
    flex: 0 0 80%;
    margin: 0 15px;
    box-sizing: border-box;
}

.carousel-slide img {
    width: 100%;
    height: 700px;
    object-fit: cover;
    border-radius: 15px;
    user-select: none;
    border: 1px solid #ddd; /* Borde sutil */
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 2rem;
    font-weight: 300;
    color: #333;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    display: none;
}

.carousel-btn:hover {
    background-color: white;
}

.carousel-btn.prev { left: 20px; }
.carousel-btn.next { right: 20px; }

/* --- Dress Code Section --- */
.dress-code-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.dress-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-bottom: 30px;
}

.dress-description {
    font-family: var(--font-headings);
    font-size: 2rem;
    color: var(--color-dark);
    margin-bottom: 20px;
    font-weight: 400;
}

.dress-note,
.gift-message,
.rsvp-subtitle {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    text-align: center; 
}

.gift-message {
    margin-bottom: 40px;
}

/* --- Gifts Section --- */
.gifts-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.gift-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-bottom: 30px;
}

.bank-info {
    background: var(--color-background-alt); /* Fondo blanco para contrastar */
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 20px;
    border: 1px solid #eee;
}

.alias-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.alias-label {
    font-weight: 600;
    color: var(--color-text);
}

.alias-value {
    font-family: var(--font-mono);
    background: var(--color-background-alt);
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: 600;
    color: var(--color-dark);
    border: 2px solid var(--color-dark);
}

.copy-message {
    background: #d4edda;
    color: #155724;
    padding: 10px 20px;
    border-radius: 8px;
    margin-top: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: inline-block;
}

.copy-message.show { opacity: 1; }

/* --- RSVP Section --- */
.rsvp-subtitle {
    margin-bottom: 50px;
}

.rsvp-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--color-background); /* Fondo gris claro para contrastar */
    padding: 40px;
    border-radius: 20px;
    border: 1px solid #eee;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--color-text);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-primary);
    background-color: var(--color-background-alt);
    transition: border-color 0.3s ease;
}

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

.companion-group { display: none; }
.companion-group.show { display: block; }

.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.form-message.success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.form-message.error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.form-message.show { opacity: 1; }

/* --- Footer --- */
.footer {
    background: #333;
    color: var(--color-light);
    padding: 50px 0;
    text-align: center;
}

.footer-content p { margin-bottom: 10px; }
.footer-heart { font-size: 1.5rem; margin-top: 20px; }

/* --- Responsive Design --- */
@media (min-width: 768px) {
    .carousel-btn { display: block; }
}

@media (max-width: 768px) {
    .section-title { font-size: 2.2rem; }
    .countdown { gap: 20px; }
    .time-unit { min-width: 100px; padding: 20px 15px; }
    .time-unit .number { font-size: 2rem; }
    .locations-grid { grid-template-columns: 1fr; gap: 30px; }
    .alias-container { flex-direction: column; gap: 10px; }
    .carousel-slide { flex-basis: 85%; margin: 0 10px; }
    .carousel-slide img { height: 400px; }
    .frase { font-size: 1.2rem; font-weight: 100; padding-left: 20px; padding-right: 20px; }
}

@media (max-width: 600px) {
    .hero { height: 45vh; min-height: 300px; }
    .hero-title { font-size: 0.7rem; margin-top: 230px; }
    .hero-names { font-size: 3rem; margin-top: 2.5vh; }
}

@media (max-width: 480px) {
    .section-title { font-size: 1.8rem; }
    .countdown { gap: 10px; }
    .time-unit { flex: 1; min-width: 65px; padding: 15px 5px; }
    .time-unit .number { font-size: 2.2rem; }
    .time-unit .label { font-size: 0.7rem; }
    .rsvp-form { padding: 25px 20px; }
    .carousel-slide { flex-basis: 90%; margin: 0 5px; }
    .carousel-slide img { height: 300px; }
}

