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

:root {
    --color-black: #000000;
    --color-white: #ffffff;
    --color-gray-light: #f5f5f5;
    --color-gray-medium: #999999;
    --color-gray-dark: #333333;
    --color-accent: #1a1a1a;
    --font-serif: 'Lora', serif;
    --font-sans: 'Montserrat', sans-serif;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    --border-radius: 8px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: var(--font-sans);
    color: var(--color-black);
    background-color: var(--color-white);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "kern" 1;
    text-rendering: optimizeLegibility;
}

body.loading {
    overflow: hidden;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-white);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.6s ease, visibility 0.6s ease;
    visibility: visible;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-content {
    text-align: center;
    animation: fadeInUp 0.8s ease;
}

.loading-logo {
    color: var(--color-black);
    margin-bottom: 2rem;
    animation: pulse 2s ease-in-out infinite;
}

.loading-logo svg {
    width: 80px;
    height: 80px;
    display: block;
    margin: 0 auto;
}

.loading-title {
    font-family: var(--font-serif);
    font-size: 4rem;
    font-weight: 500;
    color: var(--color-black);
    margin: 0 0 1rem 0;
    letter-spacing: 0.08em;
    animation: fadeIn 1s ease 0.3s both;
    font-style: italic;
}

.loading-tagline {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    color: var(--color-gray-medium);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin: 0 0 3rem 0;
    animation: fadeIn 1s ease 0.5s both;
}

.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    animation: fadeIn 1s ease 0.7s both;
}

.spinner-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-black);
    border-radius: 50%;
    animation: bounce 1.4s ease-in-out infinite both;
}

.spinner-dot:nth-child(1) {
    animation-delay: -0.32s;
}

.spinner-dot:nth-child(2) {
    animation-delay: -0.16s;
}

.spinner-dot:nth-child(3) {
    animation-delay: 0s;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 4rem !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.98);
    z-index: 1000;
    transition: var(--transition);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    width: 100%;
    box-sizing: border-box;
}

.logo {
    color: var(--color-black);
}

.logo svg {
    width: 32px;
    height: 32px;
}

.header-center {
    text-align: center;
    flex: 1;
    min-width: 0; /* Permite que el texto se ajuste */
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    line-height: 0;
    font-size: 0;
}

.logo-text {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 400;
    color: var(--color-black);
    margin: 0;
    letter-spacing: 0.15em;
    position: relative;
    line-height: 1;
}

.inverted-a {
    display: inline-block;
    transform: rotate(180deg);
}

.header-center img {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
    margin-bottom: 0.2rem !important;
}

.header-center .logo-text {
    margin-bottom: 0.2rem !important;
}

.header-center .tagline {
    font-family: var(--font-sans);
    font-size: 0.7rem !important;
    color: var(--color-gray-medium);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    display: block !important;
    transform: none !important;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Language Selector */
.language-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
}

.lang-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: var(--color-gray-medium);
    padding: 0.3rem 0.5rem;
    transition: var(--transition);
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.lang-btn:hover {
    color: var(--color-black);
}

.lang-btn.active {
    color: var(--color-black);
    font-weight: 500;
}

.lang-separator {
    color: var(--color-gray-light);
    font-size: 0.9rem;
}

.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--color-black);
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

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

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

/* Navigation Menu */
.nav-menu {
    position: fixed;
    top: 0;
    right: -350px;
    width: 350px;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 999;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 6rem 3rem;
    box-shadow: -4px 0 30px rgba(0, 0, 0, 0.1);
}

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

.nav-menu ul {
    list-style: none;
}

.nav-menu li {
    margin-bottom: 2rem;
}

.nav-menu a {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--color-black);
    text-decoration: none;
    transition: var(--transition);
    display: block;
    position: relative;
    padding-left: 1rem;
    font-weight: 400;
    letter-spacing: 0.02em;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 0;
    background: var(--color-black);
    transition: height 0.3s ease;
}

.nav-menu a:hover {
    color: var(--color-gray-dark);
    padding-left: 1.5rem;
}

.nav-menu a:hover::before {
    height: 60%;
}

/* Main Gallery */
.main-gallery {
    margin-top: 90px;
    padding: 2rem 2rem 0.5rem 2rem;
    min-height: 50vh;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.main-gallery::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 100px;
    background: linear-gradient(to bottom, transparent, var(--color-gray-light), transparent);
}

/* Gallery Carousel */
.gallery-carousel-wrapper {
    position: relative;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 3rem;
}

.gallery-carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.gallery-carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    gap: 1.5rem;
}

.gallery-carousel-track .gallery-item {
    flex: 0 0 calc((100% - 3rem) / 3); /* 3 imágenes con 2 gaps de 1.5rem */
    min-width: 0;
}

.gallery-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.gallery-carousel-btn:hover {
    background: var(--color-black);
    color: var(--color-white);
    border-color: var(--color-black);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.gallery-carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.gallery-carousel-btn-prev {
    left: 0;
}

.gallery-carousel-btn-next {
    right: 0;
}

.gallery-carousel-btn svg {
    width: 20px;
    height: 20px;
}

.gallery-carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

/* Grid fallback para cuando no hay carrusel */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1600px;
    margin: 0 auto;
}

@media (min-width: 1400px) {
    .gallery-grid {
        gap: 2rem;
    }
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

/* Para la galería principal (home) mantener aspect ratio */
/* Las imágenes son 800 × 1200, relación 2/3 */
.main-gallery .gallery-item {
    aspect-ratio: 2/3; /* 800/1200 = 2/3 */
    flex-shrink: 0;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.main-gallery .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cubre el espacio sin recortar innecesariamente */
    object-position: center; /* Centra la imagen */
    transition: var(--transition);
    display: block;
}

.main-gallery .gallery-item:hover {
    z-index: 10;
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.main-gallery .gallery-item:hover img {
    transform: scale(1.06);
    filter: brightness(1.08) contrast(1.02);
}

/* Para álbum, las imágenes mantienen su proporción natural */
.album-gallery-grid .gallery-item {
    aspect-ratio: auto;
}

.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.2s; }
.gallery-item:nth-child(3) { animation-delay: 0.3s; }
.gallery-item:nth-child(4) { animation-delay: 0.4s; }
.gallery-item:nth-child(5) { animation-delay: 0.5s; }
.gallery-item:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Portfolio Page */
.portfolio-header {
    text-align: center;
    padding: 6rem 2rem 4rem;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.portfolio-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 1px;
    background: var(--color-gray-light);
}

.portfolio-title {
    font-family: var(--font-serif);
    font-size: 5rem;
    color: var(--color-black);
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
    font-weight: 500;
    letter-spacing: 0.08em;
    line-height: 1.2;
    font-style: italic;
}

.portfolio-subtitle {
    font-family: var(--font-sans);
    font-size: 1.2rem;
    color: var(--color-gray-dark);
    font-style: normal;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease 0.3s forwards;
    font-weight: 300;
    letter-spacing: 0.01em;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Junebug Weddings Recognition Section */
.junebug-section {
    margin-top: 0;
    padding: 0.5rem 0 6rem 0;
    background: var(--color-white);
    position: relative;
    width: 100%;
}

.junebug-container {
    margin: 0 auto;
    padding: 2rem 4rem;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.junebug-logo {
    margin: 0 auto 4rem;
    width: 200px;
    height: 200px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

.junebug-logo svg {
    width: 100%;
    height: 100%;
    display: block;
}

.junebug-text {
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease 0.3s forwards;
}

.junebug-text p {
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--color-black);
    line-height: 1.8;
    font-weight: 300;
    letter-spacing: 0.01em;
    text-align: center;
    max-width: 100%;
    margin: 0 auto;
}

.junebug-review {
    margin-top: 3rem;
    padding-top: 2rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease 0.5s forwards;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--color-black);
}

.review-label {
    color: var(--color-black);
    font-weight: 300;
}

.review-brand {
    color: #D4AF37;
    font-weight: 700;
    letter-spacing: 0.05em;
}

/* About Section */
.about-section-page {
    margin-top: 0;
    padding: 6rem 0;
    background: var(--color-white);
    position: relative;
}

.about-section-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--color-gray-light), transparent);
}

.about-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 4rem;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.about-header {
    text-align: center;
    margin-bottom: 4rem;
}

.about-title {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    color: var(--color-black);
    font-weight: 400;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
    font-style: italic;
    letter-spacing: 0.05em;
}

.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
    margin-bottom: 4rem;
}

.about-image {
    position: relative;
    opacity: 0;
    transform: translateX(-30px) rotate(-2deg);
    animation: fadeInLeftRotated 0.8s ease 0.3s forwards;
    padding: 1.5rem;
    background: var(--color-white);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}


.about-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
    aspect-ratio: 3/4;
    display: block;
    border: 8px solid var(--color-white);
}

.about-content {
    text-align: left;
    max-width: 100%;
    position: relative;
    opacity: 0;
    transform: translateX(30px);
    animation: fadeInRight 0.8s ease 0.5s forwards;
}

.about-content::before {
    display: none;
}

.about-content p {
    font-family: var(--font-sans);
    font-size: 1.15rem;
    color: var(--color-black);
    margin-bottom: 2.5rem;
    line-height: 1.9;
    font-weight: 300;
    letter-spacing: 0.01em;
    opacity: 0;
    animation: fadeInRight 0.8s ease forwards;
}

.about-content p:nth-child(1) { animation-delay: 0.6s; }
.about-content p:nth-child(2) { animation-delay: 0.7s; }
.about-content p:nth-child(3) { animation-delay: 0.8s; }
.about-content p:nth-child(4) { animation-delay: 0.9s; }

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInLeftRotated {
    from {
        opacity: 0;
        transform: translateX(-50px) rotate(-2deg);
    }
    to {
        opacity: 1;
        transform: translateX(0) rotate(-2deg);
    }
}

.about-tagline {
    text-align: center;
    margin-top: 5rem;
    padding-top: 4rem;
    font-family: var(--font-serif);
    font-size: 1.4rem;
    color: var(--color-gray-dark);
    font-style: italic;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease 0.6s forwards;
    position: relative;
    font-weight: 400;
    letter-spacing: 0.02em;
}

.about-tagline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background: var(--color-gray-medium);
}

/* Contact Info Section (Index) */
.contact-info-section {
    margin-top: 0;
    padding: 6rem 0;
    background: linear-gradient(to bottom, #fafafa 0%, var(--color-white) 100%);
    position: relative;
    width: 100%;
}

.contact-info-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--color-gray-light), transparent);
}

/* Contact Page */
.contact-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 4rem;
    width: 100%;
    box-sizing: border-box;
}

.contact-header {
    text-align: center;
    margin-bottom: 5rem;
    position: relative;
}

.contact-header::after {
    content: '';
    position: absolute;
    bottom: -2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 1px;
    background: var(--color-gray-light);
}

.contact-title {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    color: var(--color-black);
    font-weight: 400;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
    font-style: italic;
    letter-spacing: 0.05em;
}

.contact-intro {
    text-align: center;
    margin-bottom: 5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.contact-intro h2 {
    font-family: var(--font-serif);
    font-size: 3.2rem;
    color: var(--color-black);
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease 0.2s forwards;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: 0.05em;
    font-style: italic;
}

.contact-intro p {
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--color-gray-dark);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease 0.4s forwards;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    margin-top: 5rem;
    border-top: 1px solid var(--color-gray-light);
    border-bottom: 1px solid var(--color-gray-light);
    padding: 4rem 0;
    position: relative;
}

.contact-section {
    text-align: center;
    padding: 2rem 1rem;
    transition: var(--transition);
    border-radius: var(--border-radius);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.contact-section:hover {
    background: rgba(0, 0, 0, 0.02);
}

.contact-section h3 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--color-black);
    margin-bottom: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    font-style: italic;
}

.contact-section p {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--color-gray-dark);
    margin-bottom: 0.5rem;
}

.contact-section a {
    color: var(--color-black);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
    position: relative;
    font-weight: 400;
    word-break: break-word;
    max-width: 100%;
}

.contact-section a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-black);
    transition: width 0.3s ease;
}

.contact-section a:hover {
    color: var(--color-gray-dark);
    transform: translateY(-2px);
}

.contact-section a:hover::after {
    width: 100%;
}

/* Evitar overflow en textos largos */
.contact-section p,
.contact-section h3 {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.contact-button {
    display: inline-block;
    padding: 1.1rem 3.5rem;
    background-color: var(--color-black);
    color: var(--color-white) !important;
    text-decoration: none;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 1rem;
    z-index: 1;
}

.contact-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: -1;
}

.contact-button {
    position: relative;
    z-index: 1;
}

.contact-button > * {
    position: relative;
    z-index: 2;
}

.contact-button:hover {
    background-color: var(--color-gray-dark);
    color: var(--color-white) !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.contact-button:hover::before {
    width: 400px;
    height: 400px;
}

/* Contact Form */
.contact-form-container {
    max-width: 1100px;
    margin: 6rem auto 4rem;
    padding: 0 2rem;
    width: 100%;
    box-sizing: border-box;
}

.form-intro {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.form-intro p {
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--color-gray-dark);
    margin-bottom: 1rem;
}

.form-intro h2 {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    color: var(--color-black);
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease 0.3s forwards;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0.01em;
}

.form-intro .subtitle {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--color-gray-dark);
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-top: 4rem;
    background: var(--color-gray-light);
    padding: 3rem;
    border-radius: var(--border-radius);
}

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

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--color-black);
    margin-bottom: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    display: block;
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: var(--font-sans);
    font-size: 1rem;
    padding: 1rem 1.2rem;
    border: 1px solid transparent;
    background-color: var(--color-white);
    color: var(--color-black);
    transition: var(--transition);
    border-radius: 4px;
    width: 100%;
    font-weight: 300;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-black);
    background-color: var(--color-white);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.form-group textarea {
    min-height: 180px;
    resize: vertical;
    font-family: var(--font-sans);
    line-height: 1.6;
}

.form-submit {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 2rem;
}

.btn-submit {
    padding: 1.2rem 5rem;
    background-color: var(--color-black);
    color: var(--color-white);
    border: none;
    font-family: var(--font-sans);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-submit:hover {
    background-color: var(--color-gray-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.btn-submit:hover::before {
    width: 400px;
    height: 400px;
}

.btn-submit:active {
    transform: translateY(-1px);
}

/* Admin Styles */
.admin-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    background-color: #f8f9fa;
    min-height: 100vh;
    width: 100%;
    box-sizing: border-box;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--color-black);
    background: var(--color-white);
    padding: 1.5rem 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.admin-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: var(--color-black);
}

.admin-logout {
    padding: 0.5rem 1.5rem;
    background-color: var(--color-black);
    color: var(--color-white);
    border: none;
    cursor: pointer;
    font-family: var(--font-sans);
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.admin-logout:hover {
    background-color: var(--color-gray-dark);
}

/* Admin Tabs */
.admin-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    background: var(--color-white);
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    flex-wrap: wrap;
}

.admin-tab {
    flex: 1;
    min-width: 150px;
    padding: 1rem 2rem;
    background: transparent;
    border: 2px solid var(--color-gray-light);
    border-radius: 6px;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--color-gray-dark);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.admin-tab:hover {
    border-color: var(--color-gray-medium);
    background: var(--color-gray-light);
}

.admin-tab.active {
    background: var(--color-black);
    color: var(--color-white);
    border-color: var(--color-black);
}

.admin-tab span {
    font-size: 1.2rem;
}

/* Admin Section Content */
.admin-section-content {
    background: var(--color-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: none;
}

.admin-section-content.active {
    display: block;
}

.section-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-gray-light);
}

.section-header h2 {
    font-family: var(--font-serif);
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--color-black);
}

.section-description {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--color-gray-medium);
    margin: 0;
}

.admin-action-bar {
    margin-bottom: 2rem;
    display: flex;
    justify-content: flex-end;
}

.btn-primary {
    padding: 0.8rem 2rem;
    background-color: var(--color-black);
    color: var(--color-white);
    border: none;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 1rem;
    border-radius: 6px;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    background-color: var(--color-gray-dark);
}

.admin-section {
    margin-bottom: 3rem;
}

.admin-section h2 {
    font-family: var(--font-sans);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-black);
}

.admin-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1rem 0;
}

.admin-images-grid:empty::before {
    content: "No hay imágenes. Sube algunas usando el formulario de arriba.";
    display: block;
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--color-gray-medium);
    font-family: var(--font-sans);
}

.admin-image-item {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: move; /* Cambiar cursor para indicar que es arrastrable */
}

.admin-image-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Estados de drag and drop */
.admin-image-item.dragging {
    opacity: 0.5;
    transform: scale(0.95);
    z-index: 1000;
    cursor: grabbing;
}

.admin-image-item.drag-over {
    border: 2px dashed var(--color-black);
    border-radius: 8px;
}

.admin-image-item.drag-over-top::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--color-black);
    z-index: 100;
    border-radius: 2px;
}

.admin-image-item.drag-over-bottom::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--color-black);
    z-index: 100;
    border-radius: 2px;
}

.admin-image-item.drag-over-left::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -2px;
    width: 4px;
    background: var(--color-black);
    z-index: 100;
    border-radius: 2px;
}

.admin-image-item.drag-over-right::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    right: -2px;
    width: 4px;
    background: var(--color-black);
    z-index: 100;
    border-radius: 2px;
}

/* Handle de drag */
.drag-handle {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(0, 0, 0, 0.7);
    color: var(--color-white);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.2s ease;
    cursor: grab;
    backdrop-filter: blur(4px);
}

.drag-handle:active {
    cursor: grabbing;
}

.story-item-with-order:hover .drag-handle {
    opacity: 1;
}

.drag-handle:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.drag-handle svg {
    width: 20px;
    height: 20px;
}

.admin-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Badge de orden */
.order-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: linear-gradient(135deg, var(--color-black) 0%, var(--color-gray-dark) 100%);
    color: var(--color-white);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.95rem;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    font-family: var(--font-sans);
}

/* Acciones mejoradas para stories */
.story-item-with-order .admin-image-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 100%);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.story-item-with-order:hover .admin-image-actions {
    opacity: 1;
}

.story-actions {
    flex-direction: column;
    align-items: stretch;
}

/* Control de orden */
.order-control {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.order-title {
    color: var(--color-white);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--font-sans);
    margin-bottom: 0.25rem;
}

.order-input {
    width: 100%;
    background: var(--color-white);
    border: 2px solid transparent;
    border-radius: 4px;
    padding: 0.5rem;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-black);
    font-family: var(--font-sans);
    transition: all 0.2s ease;
}

.order-input:focus {
    outline: none;
    border-color: var(--color-white);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.order-input::-webkit-inner-spin-button,
.order-input::-webkit-outer-spin-button {
    opacity: 1;
    height: auto;
}

/* Botón eliminar mejorado */
.story-actions .delete-btn {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border: none;
    padding: 0.6rem 1rem;
    cursor: pointer;
    font-size: 0.85rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-family: var(--font-sans);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
}

.story-actions .delete-btn:hover {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.story-actions .delete-btn:active {
    transform: translateY(0);
}

.story-actions .delete-btn svg {
    width: 16px;
    height: 16px;
}

/* Acciones generales (para otras secciones) */
.admin-image-actions {
    position: absolute;
    top: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 0.5rem;
}

.admin-image-actions button {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 0.4rem 0.8rem;
    cursor: pointer;
    font-size: 0.85rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    font-family: var(--font-sans);
}

.admin-image-actions button:hover {
    background-color: #c82333;
}

/* Admin Upload Box */
.admin-upload-box {
    background: var(--color-gray-light);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border: 1px dashed var(--color-gray-medium);
}

.admin-upload-box h3 {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--color-black);
}

.admin-upload {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-upload input[type="file"] {
    padding: 0.8rem;
    border: 1px solid var(--color-gray-medium);
    border-radius: 4px;
    font-family: var(--font-sans);
    background: var(--color-white);
}

.btn-upload {
    padding: 0.8rem 2rem;
    background-color: var(--color-black);
    color: var(--color-white);
    border: none;
    cursor: pointer;
    font-family: var(--font-sans);
    border-radius: 6px;
    transition: background-color 0.3s ease;
    align-self: flex-start;
}

.btn-upload:hover {
    background-color: var(--color-gray-dark);
}

.section-content {
    margin-top: 2rem;
}

.section-content h3 {
    font-family: var(--font-sans);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--color-black);
}

/* Admin Forms */
.admin-form-box {
    background: var(--color-gray-light);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border: 1px solid var(--color-gray-medium);
}

.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.form-header h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--color-black);
    margin: 0;
}

.btn-close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-gray-dark);
    padding: 0.5rem;
    line-height: 1;
    transition: color 0.3s ease;
}

.btn-close:hover {
    color: var(--color-black);
}

.admin-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

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

.admin-form .form-group.full-width {
    grid-column: 1 / -1;
}

.admin-form label {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--color-black);
}

.admin-form input[type="text"],
.admin-form input[type="date"] {
    padding: 0.8rem;
    border: 1px solid var(--color-gray-medium);
    border-radius: 4px;
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.admin-form input[type="text"]:focus,
.admin-form input[type="date"]:focus {
    outline: none;
    border-color: var(--color-black);
}

.admin-form small {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.85rem;
    color: var(--color-gray-medium);
    font-family: var(--font-sans);
}

.form-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.btn-save {
    padding: 0.8rem 2rem;
    background-color: var(--color-black);
    color: var(--color-white);
    border: none;
    cursor: pointer;
    font-family: var(--font-sans);
    transition: background-color 0.3s ease;
}

.btn-save:hover {
    background-color: var(--color-gray-dark);
}

.btn-cancel {
    padding: 0.8rem 2rem;
    background-color: var(--color-gray-medium);
    color: var(--color-white);
    border: none;
    cursor: pointer;
    font-family: var(--font-sans);
}

.btn-back {
    padding: 0.6rem 1.5rem;
    background-color: var(--color-gray-medium);
    color: var(--color-white);
    border: none;
    cursor: pointer;
    font-family: var(--font-sans);
    border-radius: 6px;
    transition: background-color 0.3s ease;
    margin-bottom: 1rem;
    display: inline-block;
}

.btn-back:hover {
    background-color: var(--color-gray-dark);
}

/* Admin Albums List */
.admin-albums-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.admin-album-card {
    background: var(--color-white);
    border: 2px solid var(--color-gray-light);
    border-radius: 8px;
    padding: 1.5rem;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.admin-album-card:hover {
    border-color: var(--color-gray-medium);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.admin-album-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.admin-album-card h4 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--color-black);
}

.admin-album-card p {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--color-gray-dark);
    margin-bottom: 0.3rem;
}

.admin-album-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.btn-edit {
    padding: 0.5rem 1rem;
    background-color: var(--color-black);
    color: var(--color-white);
    border: none;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    flex: 1;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.btn-edit:hover {
    background-color: var(--color-gray-dark);
}

.btn-delete-album {
    padding: 0.5rem 1rem;
    background-color: #dc3545;
    color: var(--color-white);
    border: none;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    flex: 1;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.btn-delete-album:hover {
    background-color: #c82333;
}

.btn-manage-images {
    padding: 0.5rem 1rem;
    background-color: var(--color-gray-dark);
    color: var(--color-white);
    border: none;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    width: 100%;
    margin-top: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.btn-manage-images:hover {
    background-color: var(--color-black);
}

/* Login Page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-white);
}

.login-box {
    max-width: 400px;
    width: 100%;
    padding: 3rem;
    border: 1px solid var(--color-gray-light);
}

.login-box h1 {
    font-family: var(--font-serif);
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.login-form .form-group {
    margin-bottom: 1.5rem;
}

.login-form input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--color-gray-light);
    font-family: var(--font-sans);
    font-size: 1rem;
}

.login-form button {
    width: 100%;
    padding: 1rem;
    background-color: var(--color-black);
    color: var(--color-white);
    border: none;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.login-form button:hover {
    background-color: var(--color-gray-dark);
}

.error-message {
    color: #ff0000;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Albums Grid */
.albums-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 3rem;
    max-width: 1600px;
    margin: 0 auto;
    padding: 4rem 2rem;
    width: 100%;
    box-sizing: border-box;
}

.album-item {
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.album-item:nth-child(1) { animation-delay: 0.1s; }
.album-item:nth-child(2) { animation-delay: 0.2s; }
.album-item:nth-child(3) { animation-delay: 0.3s; }
.album-item:nth-child(4) { animation-delay: 0.4s; }
.album-item:nth-child(5) { animation-delay: 0.5s; }
.album-item:nth-child(6) { animation-delay: 0.6s; }

.album-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.album-cover {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.album-cover:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.album-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.album-cover:hover img {
    transform: scale(1.1);
}

.album-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 2rem 1.5rem 1.5rem;
    color: var(--color-white);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.album-cover:hover .album-overlay {
    transform: translateY(0);
    opacity: 1;
}

.album-title-card {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--color-white);
}

.album-meta-card {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--color-gray-light);
}

/* Portfolio Section */
.portfolio-section {
    margin-top: 0;
    padding: 6rem 0 4rem;
    background: linear-gradient(to bottom, var(--color-white) 0%, #fafafa 100%);
}

/* Contact Section Page */
.contact-section-page {
    margin-top: 0;
    padding: 6rem 0;
    background: linear-gradient(to bottom, #fafafa 0%, var(--color-white) 100%);
    position: relative;
}

.contact-section-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--color-gray-light), transparent);
}

/* Testimonials Section */
.testimonials-section {
    margin-top: 0;
    padding: 6rem 0;
    background: linear-gradient(to bottom, var(--color-white) 0%, #fafafa 100%);
    position: relative;
    width: 100%;
}

.testimonials-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--color-gray-light), transparent);
}

.testimonials-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 4rem;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.testimonials-header {
    text-align: center;
    margin-bottom: 5rem;
}

.testimonials-title {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    color: var(--color-black);
    font-weight: 400;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
    font-style: italic;
    letter-spacing: 0.05em;
}

.testimonials-subtitle {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    color: var(--color-gray-dark);
    font-style: normal;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

/* Testimonials Carousel */
.testimonials-carousel-wrapper {
    position: relative;
    margin-top: 4rem;
    padding: 0 4rem;
}

.testimonials-carousel {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.testimonials-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    width: 100%;
}

.testimonial-card {
    background: var(--color-white);
    padding: 3rem;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    flex-shrink: 0;
    flex-grow: 0;
    box-sizing: border-box;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.3s forwards;
}

.testimonial-stars {
    display: flex;
    justify-content: center;
    gap: 0.3rem;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    color: #FFD700;
    letter-spacing: 0.2rem;
}

.testimonial-stars .star {
    display: inline-block;
    filter: drop-shadow(0 2px 4px rgba(255, 215, 0, 0.3));
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-white);
    border: 1px solid var(--color-gray-light);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    color: var(--color-black);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.carousel-btn:hover {
    background: var(--color-black);
    color: var(--color-white);
    border-color: var(--color-black);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-btn-prev {
    left: 0;
}

.carousel-btn-next {
    right: 0;
}

.carousel-btn svg {
    width: 20px;
    height: 20px;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 3rem;
}

.carousel-indicators .indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--color-gray-medium);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-indicators .indicator:hover {
    border-color: var(--color-black);
    transform: scale(1.2);
}

.carousel-indicators .indicator.active {
    background: var(--color-black);
    border-color: var(--color-black);
    width: 32px;
    border-radius: 6px;
}

.testimonial-content {
    margin-bottom: 2.5rem;
}

.testimonial-text {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    color: var(--color-black);
    line-height: 1.9;
    font-weight: 400;
    font-style: italic;
    position: relative;
    padding-left: 1.5rem;
}

.testimonial-text::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -0.5rem;
    font-size: 4rem;
    color: var(--color-gray-light);
    font-family: var(--font-serif);
    line-height: 1;
}

.testimonial-author {
    border-top: 1px solid var(--color-gray-light);
    padding-top: 1.5rem;
}

.author-name {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--color-black);
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-style: italic;
    letter-spacing: 0.03em;
}

.author-location {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--color-gray-dark);
    font-style: normal;
    font-weight: 300;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Album Header */
.album-header-section {
    margin-top: 70px;
    padding: 4rem 2rem 2rem;
    text-align: center;
    background-color: var(--color-white);
    position: relative;
    z-index: 1;
}

.album-header {
    max-width: 800px;
    margin: 0 auto;
}

.back-link {
    display: inline-block !important;
    margin-bottom: 2rem;
    font-family: var(--font-sans);
    color: var(--color-gray-medium) !important;
    text-decoration: none;
    transition: color 0.3s ease;
    opacity: 1 !important;
    visibility: visible !important;
}

.back-link:hover {
    color: var(--color-black);
}

.album-title {
    font-family: var(--font-serif);
    font-size: 4.5rem;
    color: var(--color-black) !important;
    font-weight: 500;
    margin-bottom: 1rem;
    letter-spacing: 0.08em;
    font-style: italic;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

.album-meta {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    color: var(--color-gray-medium) !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

/* Album Gallery - Masonry/Collage Layout */
.album-gallery-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
    box-sizing: border-box;
}

/* Stories page - centered content */
body:has(#storiesGallery) .album-gallery-container,
.stories-page .album-gallery-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 2rem;
}

.album-gallery-grid {
    column-count: 4;
    column-gap: 1rem;
    line-height: 0;
}

/* Stories page - Layout pattern: 1 col, 2 cols, 3 cols (repetitivo) */
body:has(#storiesGallery) .album-gallery-grid,
.stories-page .album-gallery-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
    max-width: 100%;
    margin: 0 auto;
    column-count: auto; /* Override column-count */
    line-height: normal;
}

.album-gallery-grid .gallery-item {
    display: inline-block;
    width: 100%;
    margin-bottom: 1rem;
    break-inside: avoid;
    page-break-inside: avoid;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
    cursor: pointer;
}

/* Stories page - Patrón de grid: 1, 2, 3 columnas */
body:has(#storiesGallery) .album-gallery-grid .gallery-item,
.stories-page .album-gallery-grid .gallery-item {
    display: block;
    margin-bottom: 0;
    width: 100%;
    break-inside: auto;
    page-break-inside: auto;
}

/* Patrón repetitivo cada 6 imágenes (mantener layout visual):
   1ra: 1 columna (span 6)
   2da-3ra: 2 columnas (span 3 cada una)
   4ta-6ta: 3 columnas (span 2 cada una)
*/
body:has(#storiesGallery) .album-gallery-grid .gallery-item:nth-child(6n+1),
.stories-page .album-gallery-grid .gallery-item:nth-child(6n+1) {
    grid-column: 1 / -1; /* 1 columna - ocupa todas las 6 columnas */
}

body:has(#storiesGallery) .album-gallery-grid .gallery-item:nth-child(6n+2),
.stories-page .album-gallery-grid .gallery-item:nth-child(6n+2) {
    grid-column: 1 / 4; /* 2 columnas - ocupa columnas 1-3 */
}

body:has(#storiesGallery) .album-gallery-grid .gallery-item:nth-child(6n+3),
.stories-page .album-gallery-grid .gallery-item:nth-child(6n+3) {
    grid-column: 4 / -1; /* 2 columnas - ocupa columnas 4-6 */
}

body:has(#storiesGallery) .album-gallery-grid .gallery-item:nth-child(6n+4),
.stories-page .album-gallery-grid .gallery-item:nth-child(6n+4) {
    grid-column: 1 / 3; /* 3 columnas - ocupa columnas 1-2 */
}

body:has(#storiesGallery) .album-gallery-grid .gallery-item:nth-child(6n+5),
.stories-page .album-gallery-grid .gallery-item:nth-child(6n+5) {
    grid-column: 3 / 5; /* 3 columnas - ocupa columnas 3-4 */
}

body:has(#storiesGallery) .album-gallery-grid .gallery-item:nth-child(6n+6),
.stories-page .album-gallery-grid .gallery-item:nth-child(6n+6) {
    grid-column: 5 / -1; /* 3 columnas - ocupa columnas 5-6 */
}

.album-gallery-grid .gallery-item:nth-child(1) { animation-delay: 0.05s; }
.album-gallery-grid .gallery-item:nth-child(2) { animation-delay: 0.1s; }
.album-gallery-grid .gallery-item:nth-child(3) { animation-delay: 0.15s; }
.album-gallery-grid .gallery-item:nth-child(4) { animation-delay: 0.2s; }
.album-gallery-grid .gallery-item:nth-child(5) { animation-delay: 0.25s; }
.album-gallery-grid .gallery-item:nth-child(6) { animation-delay: 0.3s; }
.album-gallery-grid .gallery-item:nth-child(7) { animation-delay: 0.35s; }
.album-gallery-grid .gallery-item:nth-child(8) { animation-delay: 0.4s; }

.album-gallery-grid .gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Stories page - imágenes en tamaño real */
body:has(#storiesGallery) .album-gallery-grid .gallery-item img,
.stories-page .album-gallery-grid .gallery-item img {
    width: 100%;
    height: auto;
    object-fit: contain; /* Mantener tamaño real sin recortar */
    object-position: center;
}

.album-gallery-grid .gallery-item:hover img {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* ============================================
   RESPONSIVE DESIGN - BREAKPOINTS
   ============================================
   Mobile Small: 320px - 480px
   Mobile Large: 481px - 768px
   Tablet: 769px - 1024px
   Desktop Small: 1025px - 1400px
   Desktop Large: 1400px+
   ============================================ */

/* Responsive Masonry */
@media (max-width: 1400px) {
    .album-gallery-grid {
        column-count: 3;
    }
}

/* Tablet and Small Desktop (769px - 1024px) - Mantener patrón 1,2,3 */
@media (max-width: 1024px) {
    .album-gallery-grid {
        column-count: 2;
    }
    
    /* Stories page - Mantener grid pero con menos columnas base */
    body:has(#storiesGallery) .album-gallery-grid,
    .stories-page .album-gallery-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 1rem;
    }
    
    body:has(#storiesGallery) .album-gallery-container,
    .stories-page .album-gallery-container {
        padding: 1.5rem 1.5rem;
        max-width: 1400px;
        margin: 0 auto;
    }
    
    .albums-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* Mobile (max-width: 768px) - 1 columna */
@media (max-width: 768px) {
    body:has(#storiesGallery) .album-gallery-grid,
    .stories-page .album-gallery-grid {
        display: grid;
        grid-template-columns: 1fr; /* 1 columna en móvil */
        gap: 1rem;
    }
    
    /* En móvil, todas las imágenes ocupan 1 columna */
    body:has(#storiesGallery) .album-gallery-grid .gallery-item,
    .stories-page .album-gallery-grid .gallery-item {
        grid-column: 1 / -1 !important;
    }
    
    body:has(#storiesGallery) .album-gallery-container,
    .stories-page .album-gallery-container {
        padding: 1rem 1rem;
        max-width: 100%;
        margin: 0 auto;
    }
}

/* Footer */
.footer {
    background-color: var(--color-black);
    color: var(--color-white);
    padding: 4rem 2rem 2rem;
    margin-top: 6rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    box-sizing: border-box;
}

.footer-section h3,
.footer-section h4 {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--color-white);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-logo svg {
    color: var(--color-white);
    width: 40px;
    height: 40px;
}

.footer-tagline {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: var(--color-gray-medium);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

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

.footer-links a:hover {
    color: var(--color-white);
    transform: translateX(5px);
}

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

.footer-section p {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.footer-note {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    box-sizing: border-box;
}

.footer-bottom p {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.5rem;
}

.footer-credits {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
}

.footer-credits a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.footer-credits a:hover {
    color: rgba(255, 255, 255, 0.9);
}

/* Animaciones profesionales */
@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Aplicar animaciones a elementos */
.header {
    animation: slideInFromTop 0.6s ease;
}

.main-gallery {
    animation: fadeIn 0.8s ease;
}

.about-section-page {
    animation: fadeIn 1s ease;
}

.portfolio-section {
    animation: fadeIn 1s ease;
}

.contact-section-page {
    animation: fadeIn 1s ease;
}

.footer {
    animation: fadeIn 1.2s ease;
}

/* Efectos de scroll suave mejorados */
html {
    scroll-behavior: smooth;
}

/* Mejoras en transiciones */
.gallery-item,
.album-item {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover,
.album-item:hover {
    transform: translateY(-5px);
}

/* Efecto parallax sutil en header */
.header {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.header.scrolled {
    padding: 0.7rem 4rem !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    background-color: rgba(255, 255, 255, 0.99);
}

/* Mejoras en formularios */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}


/* Responsive */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* Tablet (769px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
    .admin-container {
        padding: 1.5rem;
    }
    
    .admin-tabs {
        gap: 0.8rem;
    }
    
    .admin-tab {
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .admin-images-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .admin-albums-list {
        grid-template-columns: repeat(2, 1fr);
    }
    .header {
        padding: 0.8rem 2rem !important;
    }
    
    .header.scrolled {
        padding: 0.7rem 2rem !important;
    }
    
    .main-gallery {
        padding: 2rem 1.5rem 0.5rem 1.5rem;
        margin-top: 90px;
    }
    
    .gallery-carousel-wrapper {
        padding: 0 2rem;
    }
    
    .gallery-carousel-track {
        gap: 1.5rem;
    }
    
    .gallery-carousel-track .gallery-item {
        flex: 0 0 calc((100% - 1.5rem) / 2); /* 2 imágenes con 1 gap */
    }
    
    .gallery-carousel-btn {
        width: 40px;
        height: 40px;
    }
    
    .gallery-carousel-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .junebug-container {
        padding: 1.5rem 2rem;
    }
    
    .junebug-logo {
        width: 180px;
        height: 180px;
        margin-bottom: 3rem;
    }
    
    .junebug-text p {
        font-size: 0.95rem;
    }
    
    .about-container,
    .testimonials-container {
        padding: 3rem 2rem;
    }
    
    .testimonials-carousel-wrapper {
        padding: 0 3rem;
    }
    
    .testimonial-card {
        padding: 2.5rem;
    }
    
    .carousel-btn {
        width: 45px;
        height: 45px;
    }
    
    .contact-container {
        padding: 3rem 2rem;
    }
    
    .portfolio-title {
        font-size: 3.5rem;
    }
    
    .portfolio-subtitle {
        font-size: 1.2rem;
    }
    
    .contact-intro h2 {
        font-size: 2.5rem;
    }
    
    .form-intro h2 {
        font-size: 2.8rem;
    }
    
    .about-title,
    .contact-title {
        font-size: 2.5rem;
    }
    
    .about-content p {
        font-size: 1.1rem;
    }
    
    .contact-form {
        padding: 2.5rem;
    }
    
    .nav-menu {
        width: 300px;
        right: -300px;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

/* Mobile Large (481px - 768px) */
@media (max-width: 768px) and (min-width: 481px) {
    .admin-container {
        padding: 1.2rem;
    }
    
    .admin-images-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .admin-albums-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }
    .loading-title {
        font-size: 3rem;
    }
    
    .loading-logo svg {
        width: 70px;
        height: 70px;
    }
    
    .loading-tagline {
        font-size: 0.7rem;
    }
    
    .header {
        padding: 0.8rem 1.5rem !important;
    }
    
    .header.scrolled {
        padding: 0.7rem 1.5rem !important;
    }
    
    .logo svg {
        width: 32px;
        height: 32px;
    }
    
    .logo-text {
        font-size: 2rem;
    }
    
    .tagline {
        font-size: 0.65rem !important;
        line-height: 1 !important;
        transform: none !important;
    }
    
    .header-right {
        gap: 1rem;
    }
    
    .language-selector {
        gap: 0.4rem;
    }
    
    .lang-btn {
        font-size: 0.8rem;
        padding: 0.25rem 0.45rem;
    }
    
    .main-gallery {
        margin-top: 90px;
        padding: 2rem 1.5rem 0.5rem 1.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .albums-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 3rem 1.5rem;
    }
    
    .album-gallery-grid {
        column-count: 2;
        column-gap: 0.8rem;
    }
    
    .junebug-container {
        padding: 1.5rem 1.5rem;
    }
    
    .junebug-logo {
        width: 160px;
        height: 160px;
        margin-bottom: 2.5rem;
    }
    
    .junebug-text p {
        font-size: 0.9rem;
        line-height: 1.7;
    }
    
    .junebug-review {
        font-size: 0.9rem;
    }
    
    .about-container,
    .testimonials-container {
        padding: 3rem 1.5rem;
    }
    
    .testimonials-title {
        font-size: 2.5rem;
    }
    
    .testimonials-carousel-wrapper {
        padding: 0 2rem;
    }
    
    .testimonial-card {
        padding: 2rem;
    }
    
    .testimonial-stars {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }
    
    .testimonial-text {
        font-size: 1.05rem;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
    }
    
    .carousel-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .contact-container {
        padding: 3rem 1.5rem;
    }
    
    .about-title,
    .contact-title {
        font-size: 2.2rem;
    }
    
    .about-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-image {
        order: 1;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .about-content {
        order: 2;
        text-align: left;
        max-width: 100%;
    }
    
    .about-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-image {
        order: 1;
        margin-bottom: 1rem;
    }
    
    .about-content {
        order: 2;
    }
    
    .about-content p {
        font-size: 1.05rem;
        margin-bottom: 1.5rem;
    }
    
    .about-tagline {
        font-size: 1.2rem;
        margin-top: 3rem;
        padding-top: 3rem;
    }
    
    .portfolio-header {
        padding: 4rem 1.5rem 3rem;
    }
    
    .portfolio-title {
        font-size: 3rem;
    }
    
    .portfolio-subtitle {
        font-size: 1.1rem;
    }
    
    .contact-intro {
        margin-bottom: 4rem;
    }
    
    .contact-intro h2 {
        font-size: 2.2rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 3rem 0;
    }
    
    .contact-section {
        padding: 1.5rem 1rem;
    }
    
    .contact-form-container {
        margin: 4rem auto 3rem;
        padding: 0 1.5rem;
    }
    
    .form-intro h2 {
        font-size: 2.5rem;
    }
    
    .contact-form {
        grid-template-columns: 1fr;
        padding: 2rem;
        gap: 1.5rem;
    }
    
    .btn-submit {
        padding: 1rem 3rem;
        font-size: 0.85rem;
    }
    
    .contact-button {
        padding: 1rem 3rem;
        font-size: 0.85rem;
    }
    
    .nav-menu {
        width: 100%;
        right: -100%;
        padding: 5rem 2rem;
    }
    
    .nav-menu a {
        font-size: 1.6rem;
    }
    
    .footer {
        padding: 3rem 1.5rem 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        text-align: left;
    }
    
    .footer-logo {
        justify-content: flex-start;
    }
    
    .album-header-section {
        padding: 3rem 1.5rem 1.5rem;
        margin-top: 70px;
    }
    
    .album-title {
        font-size: 2.5rem;
        color: var(--color-black) !important;
        opacity: 1 !important;
    }
    
    .album-meta {
        color: var(--color-gray-medium) !important;
        opacity: 1 !important;
    }
    
    .back-link {
        color: var(--color-gray-medium) !important;
        opacity: 1 !important;
    }
    
    .album-gallery-container {
        padding: 1.5rem;
    }
    
    body:has(#storiesGallery) .album-gallery-container,
    .stories-page .album-gallery-container {
        padding: 1.5rem 0.8rem;
    }
}

/* Mobile Small (320px - 480px) */
@media (max-width: 480px) {
    .loading-title {
        font-size: 2.5rem;
    }
    
    .loading-logo svg {
        width: 60px;
        height: 60px;
    }
    
    .loading-tagline {
        font-size: 0.65rem;
        padding: 0 1rem;
    }
    
    .loading-spinner {
        margin-top: 1.5rem;
    }
    
    .header {
        padding: 0.8rem 1rem !important;
        flex-wrap: wrap;
    }
    
    .header.scrolled {
        padding: 0.7rem 1rem !important;
    }
    
    .logo {
        order: 1;
    }
    
    .logo svg {
        width: 28px;
        height: 28px;
    }
    
    .header-center {
        order: 3;
        width: 100%;
        margin-top: 0.3rem;
        flex-basis: 100%;
        padding: 0;
        gap: 0;
    }
    
    .header-center img {
        margin-bottom: 0.2rem !important;
    }
    
    .header-center .tagline {
        font-size: 0.6rem !important;
        transform: none !important;
    }
    
    .header-right {
        order: 2;
        gap: 0.8rem;
    }
    
    .logo-text {
        font-size: 1.6rem;
        line-height: 1.1;
    }
    
    .tagline {
        font-size: 0.6rem !important;
        line-height: 1 !important;
        transform: none !important;
    }
    
    .language-selector {
        gap: 0.3rem;
    }
    
    .lang-btn {
        font-size: 0.7rem;
        padding: 0.2rem 0.35rem;
    }
    
    .lang-separator {
        font-size: 0.8rem;
    }
    
    .menu-toggle span {
        width: 22px;
    }
    
    .main-gallery {
        margin-top: 90px;
        padding: 2rem 1rem 0.5rem 1rem;
        min-height: auto;
    }
    
    .main-gallery::before {
        display: none;
    }
    
    .gallery-carousel-wrapper {
        padding: 0 2.5rem;
    }
    
    .gallery-carousel-track {
        gap: 1rem;
    }
    
    .gallery-carousel-track .gallery-item {
        flex: 0 0 100%; /* 1 imagen en móvil */
    }
    
    .gallery-carousel-btn {
        width: 36px;
        height: 36px;
        background: rgba(255, 255, 255, 0.9);
    }
    
    .gallery-carousel-btn svg {
        width: 16px;
        height: 16px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .albums-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 2rem 1rem;
    }
    
    .album-item {
        margin-bottom: 0;
    }
    
    .album-gallery-grid {
        column-count: 1;
        column-gap: 0.5rem;
    }
    
    body:has(#storiesGallery) .album-gallery-grid,
    .stories-page .album-gallery-grid {
        column-count: 1;
        column-gap: 0.5rem;
    }
    
    .album-gallery-grid .gallery-item {
        margin-bottom: 0.5rem;
    }
    
    .junebug-section {
        padding: 0.5rem 0 4rem 0;
    }
    
    .junebug-container {
        padding: 1rem 1rem;
    }
    
    .junebug-logo {
        width: 140px;
        height: 140px;
        margin-bottom: 2rem;
    }
    
    .junebug-text {
        margin-bottom: 2rem;
    }
    
    .junebug-text p {
        font-size: 0.85rem;
        line-height: 1.7;
    }
    
    .junebug-review {
        margin-top: 2rem;
        padding-top: 1.5rem;
        font-size: 0.85rem;
    }
    
    .about-section-page {
        padding: 4rem 0;
    }
    
    .about-container {
        padding: 2rem 1rem;
    }
    
    .about-header {
        margin-bottom: 2rem;
    }
    
    .about-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    .about-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-image {
        order: 1;
        margin-bottom: 1rem;
    }
    
    .about-image img {
        aspect-ratio: 4/5;
    }
    
    .about-content {
        order: 2;
    }
    
    .about-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        line-height: 1.7;
    }
    
    .about-tagline {
        font-size: 1.1rem;
        margin-top: 2.5rem;
        padding-top: 2.5rem;
    }
    
    .portfolio-section {
        padding: 4rem 0 3rem;
    }
    
    .portfolio-header {
        padding: 3rem 1rem 2rem;
    }
    
    .portfolio-title {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }
    
    .portfolio-subtitle {
        font-size: 1rem;
    }
    
    .testimonials-section {
        padding: 4rem 0;
    }
    
    .testimonials-container {
        padding: 2rem 1rem;
    }
    
    .testimonials-header {
        margin-bottom: 3rem;
    }
    
    .testimonials-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .testimonials-subtitle {
        font-size: 1rem;
    }
    
    .testimonials-carousel-wrapper {
        padding: 0 1rem;
        margin-top: 3rem;
    }
    
    .testimonial-card {
        padding: 2rem 1.5rem;
    }
    
    .testimonial-stars {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
        gap: 0.2rem;
    }
    
    .testimonial-text {
        font-size: 1rem;
        padding-left: 1.2rem;
    }
    
    .testimonial-text::before {
        font-size: 3rem;
    }
    
    .author-name {
        font-size: 1rem;
    }
    
    .author-location {
        font-size: 0.9rem;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        opacity: 0.9;
    }
    
    .carousel-indicators {
        margin-top: 2rem;
        gap: 0.6rem;
    }
    
    .carousel-indicators .indicator {
        width: 10px;
        height: 10px;
    }
    
    .carousel-indicators .indicator.active {
        width: 24px;
    }
    
    .contact-section-page {
        padding: 4rem 0;
    }
    
    .contact-container {
        padding: 2rem 1rem;
    }
    
    .contact-header {
        margin-bottom: 3rem;
    }
    
    .contact-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    .contact-intro {
        margin-bottom: 3rem;
    }
    
    .contact-intro h2 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .contact-intro p {
        font-size: 0.95rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2.5rem 0;
    }
    
    .contact-section {
        padding: 1.5rem 0.5rem;
    }
    
    .contact-section h3 {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
    }
    
    .contact-section p {
        font-size: 0.9rem;
    }
    
    .contact-section a {
        font-size: 0.95rem;
    }
    
    .contact-form-container {
        margin: 3rem auto 2rem;
        padding: 0 1rem;
    }
    
    .form-intro {
        margin-bottom: 2.5rem;
    }
    
    .form-intro p {
        font-size: 0.95rem;
    }
    
    .form-intro h2 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .form-intro .subtitle {
        font-size: 0.85rem;
    }
    
    .contact-form {
        grid-template-columns: 1fr;
        padding: 1.5rem;
        gap: 1.2rem;
    }
    
    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 0.6rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.9rem 1rem;
        font-size: 0.95rem;
    }
    
    .form-group textarea {
        min-height: 120px;
    }
    
    .btn-submit {
        padding: 1rem 2.5rem;
        font-size: 0.85rem;
        width: 100%;
    }
    
    .contact-button {
        padding: 1rem 2.5rem;
        font-size: 0.85rem;
        width: 100%;
        margin-top: 1.5rem;
    }
    
    .nav-menu {
        width: 100%;
        right: -100%;
        padding: 4rem 1.5rem;
    }
    
    .nav-menu a {
        font-size: 1.5rem;
        padding-left: 0.8rem;
    }
    
    .nav-menu li {
        margin-bottom: 1.5rem;
    }
    
    .footer {
        padding: 3rem 1rem 1.5rem;
        margin-top: 4rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        padding-bottom: 2rem;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-section h3,
    .footer-section h4 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .footer-links {
        margin-bottom: 0;
    }
    
    .footer-links li {
        margin-bottom: 0.6rem;
    }
    
    .footer-links a {
        font-size: 0.9rem;
    }
    
    .footer-bottom {
        padding-top: 1.5rem;
    }
    
    .footer-bottom p {
        font-size: 0.85rem;
    }
    
    .footer-credits {
        font-size: 0.8rem;
    }
    
    .album-header-section {
        padding: 2rem 1rem 1rem;
        margin-top: 100px;
    }
    
    .back-link {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .album-title {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
        color: var(--color-black) !important;
        opacity: 1 !important;
    }
    
    .album-meta {
        font-size: 1rem;
        color: var(--color-gray-medium) !important;
        opacity: 1 !important;
    }
    
    .back-link {
        color: var(--color-gray-medium) !important;
        opacity: 1 !important;
    }
    
    .album-gallery-container {
        padding: 1rem;
    }
    
    /* Admin responsive */
    .admin-container {
        padding: 1rem;
    }
    
    .admin-header {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .admin-title {
        font-size: 1.8rem;
    }
    
    .admin-logout {
        width: 100%;
        text-align: center;
        padding: 0.8rem;
    }
    
    .admin-tabs {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .admin-tab {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
        min-width: 100%;
        flex: none;
    }
    
    .admin-section-content {
        padding: 1.5rem 1rem;
    }
    
    .admin-form {
        grid-template-columns: 1fr;
    }
    
    .admin-albums-list {
        grid-template-columns: 1fr;
    }
    
    .admin-images-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .admin-upload-box {
        padding: 1rem;
    }
    
    .admin-form-box {
        padding: 1.5rem;
    }
    
    .form-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .btn-close {
        align-self: flex-end;
    }
    
    .admin-action-bar {
        justify-content: center;
    }
    
    .btn-primary {
        width: 100%;
        justify-content: center;
    }
}

/* Extra Small Devices (max-width: 360px) */
@media (max-width: 360px) {
    .loading-title {
        font-size: 2rem;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
    
    .tagline {
        font-size: 0.6rem !important;
        line-height: 1 !important;
        transform: none !important;
    }
    
    .portfolio-title {
        font-size: 1.8rem;
    }
    
    .about-title,
    .contact-title {
        font-size: 1.6rem;
    }
    
    .contact-intro h2,
    .form-intro h2 {
        font-size: 1.6rem;
    }
    
    .gallery-grid,
    .albums-grid {
        gap: 0.5rem;
    }
    
    .contact-form {
        padding: 1rem;
    }
    
    .header {
        padding: 0.8rem 0.8rem !important;
    }
    
    .header.scrolled {
        padding: 0.7rem 0.8rem !important;
    }
    
    .logo svg {
        width: 26px;
        height: 26px;
    }
    
    .logo-text {
        font-size: 1.4rem;
        line-height: 1.1;
    }
    
    .tagline {
        font-size: 0.55rem !important;
        line-height: 1 !important;
        transform: none !important;
    }
    
    .header-center {
        padding: 0;
        gap: 0;
    }
    
    .main-gallery {
        padding: 2rem 0.8rem 0.5rem 0.8rem;
    }
    
    .gallery-carousel-wrapper {
        padding: 0 2rem;
    }
    
    .gallery-carousel-track {
        gap: 0.8rem;
    }
    
    .gallery-carousel-track .gallery-item {
        flex: 0 0 100%; /* 1 imagen en móvil pequeño */
    }
    
    .gallery-carousel-btn {
        width: 32px;
        height: 32px;
    }
    
    .gallery-carousel-btn svg {
        width: 14px;
        height: 14px;
    }
    
    .junebug-container {
        padding: 1rem 0.8rem;
    }
    
    .junebug-logo {
        width: 120px;
        height: 120px;
        margin-bottom: 1.5rem;
    }
    
    .junebug-text p {
        font-size: 0.8rem;
        line-height: 1.6;
    }
    
    .junebug-review {
        font-size: 0.8rem;
    }
    
    .about-container,
    .testimonials-container {
        padding: 2rem 0.8rem;
    }
    
    .testimonials-title {
        font-size: 1.8rem;
    }
    
    .testimonials-subtitle {
        font-size: 0.95rem;
    }
    
    .testimonials-carousel-wrapper {
        padding: 0 0.5rem;
    }
    
    .testimonial-card {
        padding: 1.5rem 1rem;
    }
    
    .testimonial-stars {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .testimonial-text {
        font-size: 0.95rem;
        line-height: 1.7;
    }
    
    .carousel-btn {
        width: 35px;
        height: 35px;
    }
    
    .carousel-btn svg {
        width: 16px;
        height: 16px;
    }
    
    .carousel-indicators {
        margin-top: 1.5rem;
    }
    
    .contact-container {
        padding: 2rem 0.8rem;
    }
}

/* Landscape Mobile (max-height: 500px and max-width: 768px) */
@media (max-width: 768px) and (max-height: 500px) and (orientation: landscape) {
    .loading-screen {
        padding: 1rem;
    }
    
    .loading-logo svg {
        width: 50px;
        height: 50px;
    }
    
    .loading-title {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .loading-tagline {
        font-size: 0.6rem;
        margin-bottom: 1.5rem;
    }
    
    .main-gallery {
        margin-top: 90px;
        padding: 2rem 1rem 0.5rem 1rem;
    }
    
    .header {
        padding: 0.8rem 1rem;
    }
    
    .header.scrolled {
        padding: 0.7rem 1rem;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .gallery-item:hover,
    .album-item:hover {
        transform: none;
    }
    
    .main-gallery .gallery-item:hover img {
        transform: none;
        filter: none;
    }
    
    .album-cover:hover {
        transform: none;
    }
    
    .album-cover:hover img {
        transform: none;
    }
    
    /* Aumentar tamaño de áreas táctiles */
    .menu-toggle {
        padding: 10px;
        min-width: 44px;
        min-height: 44px;
    }
    
    .lang-btn {
        min-width: 44px;
        min-height: 44px;
        padding: 0.5rem 0.8rem;
    }
    
    .contact-button,
    .btn-submit {
        min-height: 44px;
    }
    
    .nav-menu a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .gallery-item img,
    .album-cover img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Thank You Section */
.thank-you-section {
    margin-top: 0;
    padding: 8rem 0;
    background: linear-gradient(to bottom, #fafafa 0%, var(--color-white) 100%);
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thank-you-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 4rem;
    width: 100%;
    box-sizing: border-box;
}

.thank-you-content {
    text-align: center;
    animation: fadeIn 1s ease;
}

.thank-you-icon {
    margin: 0 auto 2rem;
    width: 80px;
    height: 80px;
    color: #4CAF50;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thank-you-icon svg {
    width: 100%;
    height: 100%;
}

.thank-you-title {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-black);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.thank-you-message {
    font-family: var(--font-sans);
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--color-gray-dark);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.thank-you-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.thank-you-actions .btn-primary,
.thank-you-actions .btn-secondary {
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: inline-block;
}

.thank-you-actions .btn-primary {
    background: var(--color-black);
    color: var(--color-white);
    border: 2px solid var(--color-black);
}

.thank-you-actions .btn-primary:hover {
    background: var(--color-gray-dark);
    border-color: var(--color-gray-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.thank-you-actions .btn-secondary {
    background: transparent;
    color: var(--color-black);
    border: 2px solid var(--color-black);
}

.thank-you-actions .btn-secondary:hover {
    background: var(--color-black);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Responsive Thank You Section */
@media (max-width: 1024px) {
    .thank-you-container {
        padding: 3rem 2rem;
    }
    
    .thank-you-title {
        font-size: 3rem;
    }
    
    .thank-you-message {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .thank-you-section {
        padding: 6rem 0;
    }
    
    .thank-you-container {
        padding: 3rem 1.5rem;
    }
    
    .thank-you-title {
        font-size: 2.5rem;
    }
    
    .thank-you-message {
        font-size: 1rem;
        margin-bottom: 2.5rem;
    }
    
    .thank-you-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .thank-you-actions .btn-primary,
    .thank-you-actions .btn-secondary {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .thank-you-section {
        padding: 4rem 0;
    }
    
    .thank-you-container {
        padding: 2rem 1rem;
    }
    
    .thank-you-title {
        font-size: 2rem;
    }
    
    .thank-you-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1.5rem;
    }
}

/* Print Styles */
@media print {
    .header,
    .nav-menu,
    .menu-toggle,
    .language-selector,
    .footer,
    .loading-screen {
        display: none !important;
    }
    
    .main-gallery,
    .about-section-page,
    .portfolio-section,
    .contact-section-page {
        margin-top: 0;
        page-break-inside: avoid;
    }
    
    body {
        background: white;
        color: black;
    }
}


