/* Estilos personalizados para el sitio de boda */

:root {
    --primary-color: #d4a373;
    --secondary-color: #8b6f47;
    --accent-color: #ff6b9d;
    --dark-color: #2c2c2c;
    --light-color: #f8f9fa;
    --white: #ffffff;
    --gold: #d4af37;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--dark-color);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Navbar */
.navbar {
    background-color: transparent;
    transition: all 0.3s ease;
    padding: 1rem 0;
    backdrop-filter: blur(0px);
}

.navbar-scrolled {
    background-color: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(20px);
}

.navbar-brand {
    font-family: 'Great Vibes', cursive;
    font-size: 1.8rem;
    color: var(--white) !important;
    transition: color 0.3s;
    display: flex;
    align-items: center;
}

.navbar-scrolled .navbar-brand,
.navbar-scrolled .nav-link {
    color: var(--dark-color) !important;
}

.nav-link {
    color: var(--white) !important;
    font-weight: 500;
    margin: 0 10px;
    transition: all 0.3s;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 80%;
}

.nav-link:hover {
    color: var(--gold) !important;
}

/* Responsive Navbar */
@media (max-width: 991px) {
    .navbar-brand {
        font-size: 1.5rem;
    }
    
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.98);
        padding: 20px;
        border-radius: 10px;
        margin-top: 15px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    }
    
    .navbar-collapse .nav-link {
        color: var(--dark-color) !important;
        padding: 10px 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .navbar-collapse .nav-link:hover {
        background: rgba(212, 175, 55, 0.1);
        padding-left: 10px;
    }
}

/* Hero Section */
.hero-section {
    height: 100vh;
    min-height: 600px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
    background-image: url('https://images.unsplash.com/photo-1519741497674-611481863552?w=1920');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    padding: 20px;
    text-align: center;
}

.hero-title {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(3rem, 8vw, 5rem);
    margin: 0;
    animation: fadeInUp 1s ease;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-divider {
    margin: 2rem 0;
    font-size: 2rem;
    color: var(--white);
    animation: pulse 2s infinite;
}

.hero-divider img {
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
}

.hero-subtitle {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 300;
    letter-spacing: 3px;
    animation: fadeInUp 1.5s ease;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3);
}

.hero-date {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    margin-top: 1rem;
    animation: fadeInUp 2s ease;
    background: rgba(212, 175, 55, 0.2);
    backdrop-filter: blur(10px);
    padding: 15px 30px;
    border-radius: 50px;
    display: inline-block;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.scroll-down a {
    color: var(--white);
    font-size: 2rem;
    animation: bounce 2s infinite;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.scroll-down a:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--gold);
}

/* Responsive Hero */
@media (max-width: 768px) {
    .hero-section {
        background-attachment: scroll;
        min-height: 500px;
    }
    
    .hero-divider img {
        height: 40px !important;
    }
    
    .hero-date {
        padding: 10px 20px;
        font-size: 1rem;
    }
}

/* Section Styling */
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--secondary-color);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
    margin-bottom: 2rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-color);
}

/* Welcome Section */
.welcome-section {
    background-color: var(--light-color);
    padding: 60px 20px;
}

.welcome-section .lead {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    line-height: 1.8;
    color: #555;
    max-width: 100%;
}

@media (max-width: 768px) {
    .welcome-section {
        padding: 40px 15px;
    }
}

/* Countdown Section */
.countdown-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 60px 20px;
}

.countdown-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 15px;
}

.countdown-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: clamp(1.5rem, 4vw, 2rem);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.countdown-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.countdown-number {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: bold;
    font-family: 'Playfair Display', serif;
    line-height: 1;
}

.countdown-label {
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 0.5rem;
}

@media (max-width: 480px) {
    .countdown-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .countdown-item {
        padding: 1.2rem 0.8rem;
    }
}

/* Gallery/Carousel 3D Moderno y Elegante */
.gallery-section {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    padding: 80px 20px;
    overflow: hidden;
}

/* Wrapper del carrusel 3D */
.carousel-3d-wrapper {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 20px 100px;
    perspective: 2000px;
}

/* Contenedor principal */
.carousel-3d-container {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
}

/* Items del carrusel */
.carousel-3d-item {
    position: absolute;
    width: 350px;
    height: 450px;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    pointer-events: none;
    transform: translateX(0) rotateY(0deg) scale(0.8);
}

/* Tarjeta 3D */
.carousel-3d-card {
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    transform-style: preserve-3d;
    transition: all 0.4s ease;
}

.carousel-3d-card:hover {
    transform: translateY(-10px);
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(212, 175, 55, 0.3);
}

/* Imagen de la tarjeta */
.card-image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.carousel-3d-card:hover .card-image img {
    transform: scale(1.1);
}

/* Overlay de la imagen */
.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.6) 40%,
        transparent 100%
    );
}

/* Información de la tarjeta */
.card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px;
    color: #fff;
    z-index: 2;
}

.card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.card-description {
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0.95;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Posiciones del carrusel 3D */
.carousel-3d-item.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0) rotateY(0deg) scale(1) translateZ(0px);
    z-index: 10;
}

.carousel-3d-item.prev {
    opacity: 0.7;
    pointer-events: auto;
    transform: translateX(-420px) rotateY(35deg) scale(0.85) translateZ(-100px);
    z-index: 5;
}

.carousel-3d-item.prev-2 {
    opacity: 0.4;
    transform: translateX(-650px) rotateY(45deg) scale(0.7) translateZ(-200px);
    z-index: 4;
}

.carousel-3d-item.next {
    opacity: 0.7;
    pointer-events: auto;
    transform: translateX(420px) rotateY(-35deg) scale(0.85) translateZ(-100px);
    z-index: 5;
}

.carousel-3d-item.next-2 {
    opacity: 0.4;
    transform: translateX(650px) rotateY(-45deg) scale(0.7) translateZ(-200px);
    z-index: 4;
}

/* Botones de control */
.carousel-3d-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 55px;
    height: 55px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    color: #1a1a1a;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-3d-btn:hover {
    background: #d4af37;
    color: #fff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 30px rgba(212, 175, 55, 0.5);
}

.carousel-3d-prev {
    left: 20px;
}

.carousel-3d-next {
    right: 20px;
}

/* Indicadores */
.carousel-3d-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 20;
    padding: 12px 24px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 50px;
}

.indicator-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.indicator-dot:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.2);
}

.indicator-dot.active {
    background: #d4af37;
    width: 30px;
    border-radius: 5px;
}

/* Responsive para Tablets */
@media (max-width: 1024px) {
    .carousel-3d-container {
        height: 450px;
    }
    
    .carousel-3d-item {
        width: 300px;
        height: 400px;
    }
    
    .carousel-3d-item.prev {
        transform: translateX(-350px) rotateY(30deg) scale(0.85) translateZ(-80px);
    }
    
    .carousel-3d-item.next {
        transform: translateX(350px) rotateY(-30deg) scale(0.85) translateZ(-80px);
    }
    
    .carousel-3d-item.prev-2,
    .carousel-3d-item.next-2 {
        display: none;
    }
}

/* Responsive para Móviles */
@media (max-width: 768px) {
    .carousel-3d-wrapper {
        padding: 40px 10px 80px;
        perspective: 1000px;
    }
    
    .carousel-3d-container {
        height: 400px;
    }
    
    .carousel-3d-item {
        width: 280px;
        height: 380px;
    }
    
    .carousel-3d-item.active {
        transform: translateX(0) rotateY(0deg) scale(0.95);
    }
    
    .carousel-3d-item.prev {
        opacity: 0.5;
        transform: translateX(-200px) rotateY(20deg) scale(0.7) translateZ(-50px);
    }
    
    .carousel-3d-item.next {
        opacity: 0.5;
        transform: translateX(200px) rotateY(-20deg) scale(0.7) translateZ(-50px);
    }
    
    .carousel-3d-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .carousel-3d-prev {
        left: 10px;
    }
    
    .carousel-3d-next {
        right: 10px;
    }
    
    .card-info {
        padding: 20px;
    }
    
    .card-title {
        font-size: 1.2rem;
    }
    
    .card-description {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .carousel-3d-container {
        height: 350px;
    }
    
    .carousel-3d-item {
        width: 250px;
        height: 340px;
    }
    
    .carousel-3d-item.prev,
    .carousel-3d-item.next {
        opacity: 0.3;
        transform: translateX(-150px) rotateY(15deg) scale(0.6);
    }
    
    .carousel-3d-item.next {
        transform: translateX(150px) rotateY(-15deg) scale(0.6);
    }
    
    .carousel-3d-card {
        border-radius: 20px;
    }
}

.carousel-item img {
    height: 100%;
    object-fit: cover;
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.6);
    padding: 1.5rem;
    border-radius: 10px;
}

/* Details Section */
.details-section {
    background-color: var(--light-color);
    padding: 60px 20px;
}

.detail-card {
    background: var(--white);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    border: 2px solid transparent;
}

.detail-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--gold);
}

.detail-icon {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--accent-color);
    margin-bottom: 1rem;
    display: inline-block;
    animation: pulse 2s infinite;
}

.detail-card h3 {
    font-family: 'Playfair Display', serif;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.detail-time,
.detail-location {
    font-size: clamp(1rem, 2vw, 1.1rem);
    margin: 0.8rem 0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.detail-time i,
.detail-location i {
    color: var(--gold);
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .details-section .row.g-4 {
        gap: 1.5rem !important;
    }
    
    .detail-card {
        margin-bottom: 1rem;
    }
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: var(--white);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Utility Classes */
.text-gold {
    color: var(--gold) !important;
}

.bg-gradient-gold {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--gold) 100%);
}

/* Container Padding Responsive */
@media (max-width: 576px) {
    .container,
    .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    section {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }
}

/* Mejoras de accesibilidad */
a:focus,
button:focus {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* Scroll suave para toda la página */
html {
    scroll-padding-top: 80px;
}

/* Carga optimizada de imágenes */
img {
    max-width: 100%;
    height: auto;
}

/* Responsive - Mobile First Approach */
@media (max-width: 768px) {
    .hero-title {
        font-size: clamp(2.5rem, 8vw, 3.5rem);
    }
    
    .hero-subtitle {
        font-size: clamp(1.2rem, 4vw, 1.5rem);
        letter-spacing: 2px;
    }
    
    .section-title {
        font-size: clamp(1.8rem, 5vw, 2.5rem);
    }
    
    .countdown-number {
        font-size: clamp(2rem, 6vw, 3rem);
    }
    
    .carousel-item {
        height: 400px;
    }
    
    /* Ajuste para menú móvil inferior */
    body {
        padding-bottom: 70px;
    }
}

/* Tablet optimizations */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-title {
        font-size: 4rem;
    }
    
    .countdown-item {
        min-width: 140px;
    }
    
    .carousel-item {
        height: 500px;
    }
}

/* Large screens */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-title {
        font-size: 6rem;
    }
    
    .section-title {
        font-size: 3.5rem;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .detail-card:hover,
    .countdown-item:hover {
        transform: none;
    }
    
    .detail-card:active {
        transform: scale(0.98);
    }
}
