/* ====================================
   WEBSTOREAR - DISEÑO PROFESIONAL 2024 - DARK MODE
   Paleta: Azul Profundo, Cyan, Naranja + Fondo Oscuro
   ==================================== */

/* Fuentes Premium */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700;800;900&family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ============ RESET Y CONFIGURACIÓN BASE ============ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colores Profesionales - DARK THEME */
    --primary-dark: #1a237e;
    --primary-light: #3949ab;
    --secondary: #00bcd4;
    --accent: #ff6f00;
    --accent-light: #ff9800;
    --background: #0a0e27;
    --surface: #1a1f3a;
    --text-primary: #ffffff;
    --text-secondary: #b8c1ec;
    --border: #2a3150;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.4);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.5);
    --gradient-primary: linear-gradient(135deg, #1a237e 0%, #3949ab 100%);
    --gradient-secondary: linear-gradient(135deg, #00bcd4 0%, #26c6da 100%);
    --gradient-accent: linear-gradient(135deg, #ff6f00 0%, #ff9800 100%);
    --glow-secondary: 0 0 20px rgba(0, 188, 212, 0.5), 0 0 40px rgba(0, 188, 212, 0.3);
    --glow-white: 0 0 20px rgba(255, 255, 255, 0.5), 0 0 40px rgba(255, 255, 255, 0.2);
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    line-height: 1.3;
    color: var(--text-primary);
}

/* ============ NAVBAR PREMIUM ============ */
.elegant-navbar {
    background: rgba(10, 14, 39, 0.98) !important;
    backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    border-bottom: 2px solid var(--secondary);
    position: fixed;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.5rem 0;
}

.elegant-navbar.scrolled {
    padding: 0.3rem 0;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.7);
}

.elegant-brand {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 0 10px rgba(0, 188, 212, 0.5));
}

.elegant-brand:hover {
    transform: scale(1.05);
}

.elegant-link {
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem !important;
}

.elegant-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    box-shadow: 0 0 10px var(--secondary);
}

.elegant-link:hover {
    color: var(--secondary) !important;
    transform: translateY(-2px);
}

.elegant-link:hover::after {
    width: 80%;
}

.elegant-btn-outline {
    border: 2px solid var(--secondary);
    color: var(--secondary) !important;
    border-radius: 50px;
    padding: 10px 28px !important;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.elegant-btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-secondary);
    transition: left 0.4s ease;
    z-index: -1;
}

.elegant-btn-outline:hover {
    color: white !important;
    border-color: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 188, 212, 0.5);
}

.elegant-btn-outline:hover::before {
    left: 0;
}

/* ============ SECCIONES FULL-WIDTH ============ */
.section {
    padding: 120px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    opacity: 0;
    transform: translateY(60px);
    animation: fadeInUp 1s ease-out forwards;
    width: 100%;
    margin: 0;
}

/* Separadores visuales entre secciones */
.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.section:first-child::before {
    display: none;
}

/* Fondos alternados para separación */
.section:nth-child(even) {
    background: var(--surface);
}

.section:nth-child(odd) {
    background: var(--background);
}

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

.section:nth-child(1) { animation-delay: 0.3s; }
.section:nth-child(2) { animation-delay: 0.5s; }
.section:nth-child(3) { animation-delay: 0.7s; }
.section:nth-child(4) { animation-delay: 0.9s; }

/* ============ HERO SECTION FULL-WIDTH ============ */
.hero-section {
    background: var(--gradient-primary);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 180px 0 120px;
    min-height: 100vh;
    width: 100%;
    margin: 0;
}

/* Patrón de fondo animado */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 188, 212, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 152, 0, 0.15) 0%, transparent 50%);
    animation: heroPatternMove 20s ease infinite;
}

@keyframes heroPatternMove {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -30px) scale(1.05); }
}

.hero-section > div {
    position: relative;
    z-index: 2;
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 0 60px;
}

.hero-section h1 {
    font-size: 5rem;
    font-weight: 900;
    margin-bottom: 24px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5),
                 0 0 30px rgba(255, 255, 255, 0.3),
                 0 0 50px rgba(0, 188, 212, 0.4);
    animation: slideInDown 1s ease-out;
    letter-spacing: -1px;
    color: #ffffff;
}

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

.hero-section p {
    font-size: 1.4rem;
    opacity: 0.98;
    max-width: 100%;
    margin: 0 auto 40px;
    line-height: 1.8;
    animation: fadeIn 1s ease-out 0.3s backwards;
    font-weight: 500;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    color: rgba(255, 255, 255, 0.95);
}

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

.hero-cta {
    margin-top: 50px;
    animation: fadeIn 1s ease-out 0.6s backwards;
}

/* ============ BOTONES PREMIUM ============ */
.elegant-btn {
    background: var(--gradient-accent);
    border: none;
    color: white;
    padding: 18px 48px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 8px 24px rgba(255, 111, 0, 0.4),
                0 0 30px rgba(255, 111, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
}

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

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

.elegant-btn:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 16px 48px rgba(255, 111, 0, 0.6),
                0 0 50px rgba(255, 111, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

.elegant-btn:active {
    transform: translateY(-2px) scale(0.98);
}

/* ============ TÍTULO DE SECCIÓN CON GLOW ============ */
.section-title {
    font-size: 3.5rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 60px;
    color: #ffffff;
    position: relative;
    display: block;
    width: 100%;
    text-shadow: var(--glow-white);
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.5));
    padding: 0;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 5px;
    background: var(--gradient-secondary);
    border-radius: 2px;
    box-shadow: 0 0 20px var(--secondary);
}

/* ============ GALERÍA DE SERVICIOS FULL-WIDTH ============ */
.services-gallery {
    background: var(--surface);
    padding: 80px 0 !important;
    width: 100%;
    margin: 0;
}

.services-gallery > div {
    width: 100%;
    max-width: 100%;
    padding: 0;
}

.services-gallery > div > div {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 0;
    width: 100%;
}

.service-item {
    background: rgba(26, 31, 58, 0.8);
    border-radius: 0;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border);
    position: relative;
    backdrop-filter: blur(10px);
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-secondary);
    transform: scaleX(0);
    transition: transform 0.5s ease;
    box-shadow: var(--glow-secondary);
}

.service-item:hover::before {
    transform: scaleX(1);
}

.service-item:hover {
    transform: translateY(-16px);
    box-shadow: var(--shadow-lg), var(--glow-secondary);
    border-color: var(--secondary);
    z-index: 10;
}

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

.service-item:hover img {
    transform: scale(1.1);
}

.service-item .content {
    padding: 36px;
    text-align: center;
}

.service-item h3 {
    color: #ffffff;
    font-size: 1.8rem;
    margin-bottom: 16px;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.service-item p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.7;
    font-size: 1.05rem;
}

.service-price {
    font-weight: 800;
    font-size: 1.5rem;
    margin-bottom: 24px;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 10px rgba(255, 111, 0, 0.5));
}

/* ============ PORTAFOLIO GRID FULL-WIDTH ============ */
.portfolio-grid {
    background: var(--background);
    padding: 80px 0 !important;
    width: 100%;
    margin: 0;
}

.portfolio-grid > div {
    width: 100%;
    max-width: 100%;
    padding: 0;
}

.portfolio-grid > div > div {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 0;
    width: 100%;
}

.portfolio-item {
    background: rgba(26, 31, 58, 0.8);
    border-radius: 0;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border);
    position: relative;
    backdrop-filter: blur(10px);
}

.portfolio-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.portfolio-item:hover::after {
    opacity: 0.15;
}

.portfolio-item:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-lg), var(--glow-secondary);
    border-color: var(--secondary);
    z-index: 10;
}

.portfolio-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover img {
    transform: scale(1.08);
}

.portfolio-item .content {
    padding: 28px;
}

.portfolio-item h4 {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 12px;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.portfolio-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============ STARLINK SECCIÓN FULL-WIDTH ============ */
.starlink-section {
    background: var(--gradient-primary);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 100px 0;
    width: 100%;
    margin: 0;
}

.starlink-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 188, 212, 0.3) 0%, transparent 70%);
    animation: starRotate 20s linear infinite;
}

@keyframes starRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.starlink-highlight {
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    background: rgba(26, 31, 58, 0.4);
    backdrop-filter: blur(20px);
    border-radius: 0;
    padding: 60px 40px;
    border: none;
    border-top: 2px solid rgba(0, 188, 212, 0.4);
    border-bottom: 2px solid rgba(0, 188, 212, 0.4);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5),
                var(--glow-secondary);
    width: 100%;
}

.starlink-highlight h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 900;
    text-shadow: var(--glow-white);
    color: #ffffff;
}

.starlink-highlight p {
    font-size: 1.4rem;
    margin-bottom: 30px;
    opacity: 0.98;
    font-weight: 500;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    color: rgba(255, 255, 255, 0.95);
}

.starlink-highlight img {
    border-radius: 20px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
    transition: transform 0.5s ease;
}

.starlink-highlight img:hover {
    transform: scale(1.05);
}

/* ============ FOOTER PREMIUM ============ */
footer {
    background: var(--primary-dark);
    color: white;
    text-align: center;
    padding: 60px 40px;
    border-top: 4px solid var(--secondary);
    position: relative;
    overflow: hidden;
    box-shadow: 0 -4px 20px rgba(0, 188, 212, 0.3);
    width: 100%;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: 
        linear-gradient(135deg, rgba(0, 188, 212, 0.08) 0%, transparent 50%),
        linear-gradient(-135deg, rgba(255, 111, 0, 0.08) 0%, transparent 50%);
}

footer p {
    position: relative;
    z-index: 2;
    font-size: 1.1rem;
    opacity: 0.95;
    font-weight: 500;
}

/* ============ ANIMACIONES ADICIONALES ============ */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

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

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* ============ SCROLL INDICATOR ============ */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: var(--gradient-secondary);
    z-index: 9999;
    transition: width 0.2s ease;
    box-shadow: var(--glow-secondary);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    .hero-section h1 {
        font-size: 4rem;
    }

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

    .hero-section > div {
        padding: 0 40px;
    }

    .starlink-highlight {
        padding: 50px 40px;
    }

    .services-gallery > div > div {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .portfolio-grid > div > div {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 150px 0 100px;
    }

    .hero-section h1 {
        font-size: 3rem;
    }

    .hero-section p {
        font-size: 1.2rem;
    }

    .section {
        padding: 80px 0;
    }

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

    .services-gallery,
    .portfolio-grid {
        padding: 60px 0 !important;
    }

    .hero-section > div {
        padding: 0 30px;
    }

    .services-gallery > div > div,
    .portfolio-grid > div > div {
        grid-template-columns: 1fr;
    }

    .elegant-btn {
        padding: 14px 32px;
        font-size: 0.95rem;
    }

    .starlink-highlight {
        padding: 40px 30px;
    }

    .starlink-highlight h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .elegant-brand {
        font-size: 1.4rem;
    }

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

    .hero-section > div {
        padding: 0 20px;
    }

    .starlink-highlight {
        padding: 30px 20px;
    }

    .starlink-highlight h2 {
        font-size: 2rem;
    }
}

/* ============ UTILIDADES ============ */
.text-gradient-primary {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-secondary {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-accent {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============ ADMIN STYLES DARK ============ */
.admin-sidebar {
    background: var(--surface);
    border-right: 2px solid var(--border);
}

.admin-sidebar .list-group-item {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border);
}

.admin-sidebar .list-group-item:hover {
    background: rgba(0, 188, 212, 0.1);
    border-color: var(--secondary);
}

.admin-main {
    background: var(--background);
    color: var(--text-primary);
}

.admin-card {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-primary);
}

.table {
    color: var(--text-primary);
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(26, 31, 58, 0.5);
}

/* ============ MODAL/LIGHTBOX PARA IMÁGENES ============ */
.image-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
    overflow: auto;
}

.image-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content-wrapper {
    position: relative;
    max-width: 95%;
    max-height: 95vh;
    margin: auto;
    padding: 20px;
    animation: zoomIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-content-wrapper img {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 25px 100px rgba(0, 188, 212, 0.5),
                0 0 80px rgba(0, 188, 212, 0.3);
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 48px;
    font-weight: 700;
    color: white;
    cursor: pointer;
    background: rgba(255, 111, 0, 0.8);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 20px rgba(255, 111, 0, 0.5);
}

.modal-close:hover {
    background: var(--accent);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 8px 30px rgba(255, 111, 0, 0.7);
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 48px;
    font-weight: 700;
    color: white;
    cursor: pointer;
    background: rgba(0, 188, 212, 0.8);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
    border: 2px solid rgba(255, 255, 255, 0.3);
    user-select: none;
}

.modal-nav:hover {
    background: var(--secondary);
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 8px 30px rgba(0, 188, 212, 0.7);
}

.modal-prev {
    left: 30px;
}

.modal-next {
    right: 30px;
}

.modal-caption {
    text-align: center;
    color: white;
    font-size: 1.3rem;
    margin-top: 20px;
    padding: 15px;
    background: rgba(26, 31, 58, 0.8);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.modal-counter {
    position: absolute;
    top: 20px;
    left: 30px;
    color: white;
    font-size: 1.2rem;
    background: rgba(26, 31, 58, 0.9);
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    backdrop-filter: blur(10px);
    border: 2px solid var(--secondary);
    box-shadow: 0 4px 20px rgba(0, 188, 212, 0.4);
}

/* Animaciones */
@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

/* Cursor personalizado en modal */
.image-modal img {
    cursor: zoom-out;
}

.portfolio-item img {
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .modal-close {
        top: 10px;
        right: 10px;
        width: 50px;
        height: 50px;
        font-size: 36px;
    }
    
    .modal-nav {
        width: 50px;
        height: 50px;
        font-size: 36px;
    }
    
    .modal-prev {
        left: 10px;
    }
    
    .modal-next {
        right: 10px;
    }
    
    .modal-counter {
        top: 10px;
        left: 10px;
        font-size: 1rem;
        padding: 8px 16px;
    }
    
    .modal-caption {
        font-size: 1.1rem;
        padding: 12px;
    }
    
    .modal-content-wrapper {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .modal-close,
    .modal-nav {
        width: 45px;
        height: 45px;
        font-size: 28px;
    }
    
    .modal-caption {
        font-size: 1rem;
        padding: 10px;
    }
}

/* Loading spinner para modal */
.modal-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border: 4px solid rgba(0, 188, 212, 0.3);
    border-top: 4px solid var(--secondary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}