/* Variables de colores actualizadas con naranja como principal */
:root {
    --primary-dark: #0c0700;
    --primary-orange: #ff7e0c;
    --secondary-orange: #ff9a3d;
    --accent-brown: #b18f6b;
    --accent-tan: #b19a82;
    --white: #ffffff;
    --text-light: #f5f5f5;
    --dark-gray: #2a2a2a;
    --medium-gray: #4a4a4a;
    --light-gray: #8a8a8a;
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1a0f00 100%);
    color: var(--text-light);
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    padding-bottom: 80px; /* Espacio para el navbar fijo */
}

/* Header con Logo */
.header {
    text-align: center;
    padding: 30px 20px 40px;
    position: relative;
    overflow: hidden;
}

.logo-container {
    margin-bottom: 20px;
}

.logo {
    max-width: 250px;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(255, 126, 12, 0.3));
}

.confetti {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, var(--primary-orange) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, var(--accent-brown) 0%, transparent 50%);
    opacity: 0.1;
    z-index: -1;
}

.title {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 10px;
    background: linear-gradient(45deg, var(--secondary-orange), var(--accent-brown));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--light-gray);
    font-weight: 300;
}

/* Navbar Inferior Fijo */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(42, 42, 42, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--medium-gray);
    z-index: 1000;
    padding: 10px 0;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.3);
}

.nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 400px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-btn {
    background: transparent;
    border: none;
    color: var(--light-gray);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.75rem;
    min-width: 60px;
}

.nav-btn:hover {
    color: var(--accent-brown);
    background: rgba(177, 143, 107, 0.1);
}

.nav-btn i {
    font-size: 1.2rem;
}

.nav-btn span {
    font-weight: 500;
}

.nav-main-btn {
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-orange));
    border: none;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 126, 12, 0.4);
    position: relative;
    top: -10px;
}

.nav-main-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(255, 126, 12, 0.6);
}

.nav-main-btn:active {
    transform: translateY(-1px) scale(0.98);
}

.nav-main-btn i {
    font-size: 1.5rem;
}

/* ========== EFECTO PULSO PERFECTO ========== */
@keyframes perfectPulse {
    0% {
        transform: translateY(-10px) scale(1);
        box-shadow: 
            0 8px 25px rgba(255, 126, 12, 0.4),
            0 0 0 0px rgba(255, 126, 12, 0.3);
    }
    25% {
        transform: translateY(-10px) scale(1.02);
        box-shadow: 
            0 9px 27px rgba(255, 126, 12, 0.45),
            0 0 0 2px rgba(255, 126, 12, 0.25);
    }
    50% {
        transform: translateY(-10px) scale(1.04);
        box-shadow: 
            0 10px 30px rgba(255, 126, 12, 0.5),
            0 0 0 4px rgba(255, 126, 12, 0.2);
    }
    75% {
        transform: translateY(-10px) scale(1.02);
        box-shadow: 
            0 9px 27px rgba(255, 126, 12, 0.45),
            0 0 0 2px rgba(255, 126, 12, 0.25);
    }
    100% {
        transform: translateY(-10px) scale(1);
        box-shadow: 
            0 8px 25px rgba(255, 126, 12, 0.4),
            0 0 0 0px rgba(255, 126, 12, 0.3);
    }
}

@keyframes perfectIcon {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.08);
        opacity: 0.95;
    }
}

.nav-main-btn.perfect-pulse {
    animation: perfectPulse 1.8s ease-in-out infinite;
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-orange));
}

.nav-main-btn.perfect-pulse i {
    animation: perfectIcon 1.8s ease-in-out infinite;
}

/* Estados activos */
.nav-btn.active {
    color: var(--secondary-orange);
    background: rgba(255, 154, 61, 0.1);
}

/* Ocultar el botón flotante anterior */
.floating-btn {
    display: none;
}

/* Cards */
.form-card, .upload-card {
    background: rgba(42, 42, 42, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    margin: 20px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--medium-gray);
    position: relative;
    overflow: hidden;
}

.form-card::before, .upload-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-orange), var(--accent-brown), var(--secondary-orange));
}

.form-card h2, .upload-card h2 {
    color: var(--secondary-orange);
    margin-bottom: 30px;
    font-weight: 400;
    font-size: 1.8rem;
}

/* Formularios */
.input-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: var(--light-gray);
    font-weight: 300;
}

input[type="text"], textarea {
    width: 100%;
    padding: 15px;
    background: rgba(12, 7, 0, 0.6);
    border: 1px solid var(--medium-gray);
    border-radius: 10px;
    color: var(--text-light);
    font-size: 1rem;
    transition: all 0.3s ease;
}

input[type="text"]:focus, textarea:focus {
    outline: none;
    border-color: var(--secondary-orange);
    box-shadow: 0 0 0 2px rgba(255, 154, 61, 0.3);
}

textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

/* Botones */
.btn-primary, .btn-secondary {
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-orange));
    color: var(--white);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary-orange), var(--primary-orange));
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 126, 12, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--secondary-orange);
    border: 1px solid var(--secondary-orange);
}

.btn-secondary:hover {
    background: rgba(255, 154, 61, 0.1);
    border-color: var(--primary-orange);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(12, 7, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}

.modal-content {
    background: rgba(42, 42, 42, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid var(--accent-brown);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    position: relative;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: var(--light-gray);
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
}

.close-btn:hover {
    background: rgba(255, 126, 12, 0.2);
    color: var(--secondary-orange);
}

.modal-header {
    padding: 40px 40px 20px;
    text-align: center;
    border-bottom: 1px solid var(--medium-gray);
}

.modal-header h2 {
    color: var(--secondary-orange);
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.modal-header p {
    color: var(--light-gray);
}

/* Ajustes para el formulario dentro del modal */
.modal .form-card,
.modal .upload-section {
    background: transparent;
    box-shadow: none;
    border: none;
    padding: 30px 40px;
    margin: 0;
}

.modal .form-card::before,
.modal .upload-section::before {
    display: none;
}

.modal .form-card h3 {
    color: var(--accent-brown);
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.4rem;
}

/* Información del usuario */
.user-info {
    background: rgba(12, 7, 0, 0.4);
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
    border-left: 3px solid var(--accent-brown);
}

.user-greeting {
    color: var(--text-light);
    font-size: 1rem;
}

/* Área de Drag & Drop */
.drop-zone {
    border: 2px dashed var(--medium-gray);
    border-radius: 15px;
    padding: 60px 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    margin: 30px 0;
    background: rgba(12, 7, 0, 0.3);
}

.drop-zone:hover, .drop-zone.dragover {
    border-color: var(--accent-brown);
    background: rgba(177, 143, 107, 0.1);
}

.drop-content {
    pointer-events: none;
}

.upload-icon {
    margin-bottom: 15px;
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--secondary-orange), var(--accent-brown));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px;
}

.upload-icon i {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    transition: all 0.3s ease;
}

.drop-zone:hover .upload-icon i {
    transform: scale(1.1);
}

.drop-zone.dragover .upload-icon i {
    animation: pulse 1s ease infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.drop-zone h3 {
    color: var(--accent-brown);
    margin-bottom: 10px;
    font-weight: 400;
}

.drop-zone p {
    color: var(--light-gray);
}

#fileInput {
    display: none;
}

/* Asegurarnos de que Font Awesome se vea bien */
.fas, .far, .fab {
    line-height: 1;
}

/* Previsualización */
.preview-container {
    margin: 30px 0;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.preview-header h4 {
    color: var(--accent-brown);
    margin: 0;
}

.file-count {
    background: var(--primary-orange);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.preview-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 1;
    border: 2px solid var(--medium-gray);
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255, 126, 12, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background 0.3s ease;
}

.remove-btn:hover {
    background: var(--secondary-orange);
}

/* Galería */
.gallery-section {
    margin-top: 60px;
}

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--medium-gray);
}

.counter {
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-orange));
    color: var(--white);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 500;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 1;
    background: var(--dark-gray);
    border: 1px solid var(--medium-gray);
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-item:active {
    transform: scale(0.98);
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 126, 12, 0.1));
    z-index: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.photo-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(12, 7, 0, 0.9));
    padding: 10px;
    color: white;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.gallery-item:hover .photo-info {
    opacity: 1;
}

.uploader {
    font-weight: 500;
    display: block;
}

.message {
    margin: 5px 0 0 0;
    font-style: italic;
    font-size: 0.7rem;
    opacity: 0.9;
}

.gallery-placeholder {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--light-gray);
    background: rgba(42, 42, 42, 0.6);
    border-radius: 15px;
    border: 2px dashed var(--medium-gray);
}

/* Modal para Foto Expandida - VERSIÓN MÓVIL OPTIMIZADA */
.photo-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(12, 7, 0, 0.98);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(10px);
    -webkit-overflow-scrolling: touch;
    overflow: hidden;
}

.photo-modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0;
}

.photo-close-btn {
    position: fixed;
    top: 15px;
    right: 15px;
    background: rgba(255, 126, 12, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.photo-close-btn:hover {
    background: var(--secondary-orange);
    transform: scale(1.1);
}

.photo-nav-btn {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 126, 12, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.photo-nav-btn:hover {
    background: var(--secondary-orange);
    transform: translateY(-50%) scale(1.1);
}

.photo-prev-btn {
    left: 15px;
}

.photo-next-btn {
    right: 15px;
}

.photo-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 20px 80px 20px;
    box-sizing: border-box;
}

.photo-container img {
    max-width: 100%;
    max-height: 70vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

.photo-info-expanded {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(12, 7, 0, 0.9));
    padding: 20px 15px 15px 15px;
    text-align: center;
    color: white;
    z-index: 5;
    backdrop-filter: blur(5px);
}

.photo-info-expanded h3 {
    color: var(--secondary-orange);
    margin-bottom: 8px;
    font-size: 1.1rem;
    font-weight: 500;
}

.photo-info-expanded p {
    color: var(--light-gray);
    font-style: italic;
    margin-bottom: 8px;
    line-height: 1.3;
    font-size: 0.9rem;
}

.photo-counter {
    color: var(--accent-brown);
    font-weight: 500;
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 12px;
    border-radius: 12px;
    display: inline-block;
}

/* Modal de información */
.info-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(12, 7, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}

.info-content {
    background: rgba(42, 42, 42, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 30px;
    max-width: 500px;
    width: 100%;
    border: 1px solid var(--accent-brown);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.info-content h2 {
    color: var(--secondary-orange);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.info-content p {
    color: var(--light-gray);
    margin-bottom: 15px;
    line-height: 1.5;
}

.info-features {
    text-align: left;
    margin: 25px 0;
}

.info-features li {
    color: var(--light-gray);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-features i {
    color: var(--accent-brown);
    width: 20px;
}

/* Confirmación */
.confirmation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(12, 7, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.confirmation-content {
    background: rgba(42, 42, 42, 0.95);
    backdrop-filter: blur(20px);
    padding: 50px;
    border-radius: 20px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    border: 1px solid var(--accent-brown);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.confetti-animation {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: bounce 1s ease infinite;
    background: linear-gradient(135deg, var(--secondary-orange), var(--accent-brown));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Utilidades */
.hidden {
    display: none !important;
}

.message-section {
    margin: 30px 0;
}

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Animación de entrada para modales */
@keyframes photoModalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.photo-modal:not(.hidden) .photo-modal-content {
    animation: photoModalFadeIn 0.3s ease-out;
}

/* Estados de los botones para móvil */
.photo-nav-btn:active {
    transform: scale(0.95);
    background: var(--secondary-orange);
}

.photo-close-btn:active {
    transform: scale(0.95);
}

/* Estilos específicos para móvil */
.es-movil .photo-nav-btn {
    bottom: 20px;
    top: auto;
    transform: none;
}

.es-movil .photo-prev-btn {
    left: 20px;
    right: auto;
}

.es-movil .photo-next-btn {
    right: 20px;
    left: auto;
}

.es-movil .photo-container {
    padding-bottom: 100px;
}

/* Mejorar los botones para dedos en móvil */
.es-movil .photo-close-btn,
.es-movil .photo-nav-btn {
    min-width: 44px;
    min-height: 44px;
}

/* Responsive para tablets y desktop */
@media (min-width: 769px) {
    .bottom-nav {
        max-width: 400px;
        left: 50%;
        transform: translateX(-50%);
        bottom: 20px;
        border-radius: 25px;
        border: 1px solid var(--medium-gray);
    }
    
    .nav-container {
        padding: 0 25px;
    }
    
    .container {
        padding-bottom: 40px; /* Menos espacio en desktop */
    }
}

/* Mejoras específicas para móviles */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 15px;
    }
    
    .nav-btn {
        padding: 6px 10px;
        font-size: 0.7rem;
        min-width: 55px;
    }
    
    .nav-btn i {
        font-size: 1.1rem;
    }
    
    .nav-main-btn {
        width: 55px;
        height: 55px;
        top: -8px;
    }
    
    .nav-main-btn i {
        font-size: 1.4rem;
    }
    
    .modal {
        padding: 10px;
    }
    
    .modal-content {
        max-height: 95vh;
    }
    
    .modal-header {
        padding: 30px 20px 15px;
    }
    
    .modal .form-card,
    .modal .upload-section {
        padding: 20px;
    }
    
    .preview-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .container {
        padding: 10px;
        padding-bottom: 70px;
    }
    
    .logo {
        max-width: 150px;
    }
    
    .title {
        font-size: 2rem;
    }
    
    .form-card, .upload-card {
        padding: 25px;
        margin: 15px 0;
    }
    
    .gallery-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
    }

    /* Mejoras móvil para modal de foto */
    .photo-modal-content {
        padding: 0;
    }
    
    .photo-close-btn {
        top: 10px;
        right: 10px;
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .photo-nav-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
        bottom: 20px;
        top: auto;
        transform: none;
    }
    
    .photo-prev-btn {
        left: 20px;
        right: auto;
    }
    
    .photo-next-btn {
        right: 20px;
        left: auto;
    }
    
    .photo-container {
        padding: 50px 15px 70px 15px;
    }
    
    .photo-container img {
        max-height: 60vh;
    }
    
    .photo-info-expanded {
        padding: 15px 10px 10px 10px;
    }
    
    .photo-info-expanded h3 {
        font-size: 1rem;
    }
    
    .photo-info-expanded p {
        font-size: 0.85rem;
    }
}

/* Para pantallas muy pequeñas */
@media (max-width: 480px) {
    .photo-container {
        padding: 45px 10px 60px 10px;
    }
    
    .photo-container img {
        max-height: 55vh;
    }
    
    .photo-close-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .photo-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .photo-info-expanded {
        padding: 12px 8px 8px 8px;
    }
    
    .nav-container {
        padding: 0 10px;
    }
    
    .nav-btn {
        padding: 5px 8px;
        font-size: 0.65rem;
        min-width: 50px;
    }
    
    .nav-btn i {
        font-size: 1rem;
    }
    
    .nav-main-btn {
        width: 50px;
        height: 50px;
        top: -5px;
    }
    
    .nav-main-btn i {
        font-size: 1.3rem;
    }
}

/* Prevenir zoom en iOS */
@supports (-webkit-touch-callout: none) {
    .photo-container img {
        /* Prevenir zoom en iOS */
        touch-action: pan-x pan-y;
    }
}

/* Scroll personalizado para el modal */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(12, 7, 0, 0.3);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--primary-orange);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-orange);
}