/* ============================================
   ARABOTH ROLEPLAY - STYLES 2025
   Colores: Negro (#000000), Guinda (#9C0000), Blanco (#FFFFFF)
   ============================================ */

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colores principales */
    --color-black: #000000;
    --color-guinda: #9C0000;
    --color-guinda-dark: #7A0000;
    --color-guinda-light: #C10000;
    --color-white: #FFFFFF;
    --color-gray: #EDEDED;
    --color-gray-dark: #2A2A2A;
    --color-gray-light: #F5F5F5;
    
    /* Fuentes */
    --font-primary: 'Oswald', sans-serif;
    --font-secondary: 'Roboto', sans-serif;
    
    /* Transiciones */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Sombras */
    --shadow-sm: 0 2px 8px rgba(156, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(156, 0, 0, 0.2);
    --shadow-lg: 0 8px 32px rgba(156, 0, 0, 0.3);
    --shadow-xl: 0 16px 48px rgba(156, 0, 0, 0.4);
    
    /* Z-index */
    --z-loading: 10000;
    --z-header: 1000;
    --z-scroll-top: 999;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-secondary);
    background-color: var(--color-black);
    color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-normal);
}

ul {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* ============================================
   LOADING SCREEN
   ============================================ */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-black);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: var(--z-loading);
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 60px;
    height: 60px;
    border: 4px solid var(--color-gray-dark);
    border-top: 4px solid var(--color-guinda);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ============================================
   CONTAINER & UTILITIES
   ============================================ */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.highlight {
    color: var(--color-guinda);
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-guinda), var(--color-guinda-light));
    animation: highlightGlow 2s ease-in-out infinite;
}

@keyframes highlightGlow {
    0%, 100% { opacity: 0.6; transform: scaleX(1); }
    50% { opacity: 1; transform: scaleX(1.05); }
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--color-guinda);
    z-index: var(--z-header);
    transition: var(--transition-normal);
}

.header.scrolled {
    background: rgba(0, 0, 0, 0.98);
    box-shadow: var(--shadow-lg);
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand .logo {
    height: 50px;
    width: auto;
    transition: var(--transition-normal);
}

.nav-brand .logo:hover {
    filter: drop-shadow(0 0 15px var(--color-guinda));
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--color-guinda);
    transition: var(--transition-normal);
    transform: translateX(-50%);
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-guinda);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 100;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background: var(--color-white);
    transition: var(--transition-normal);
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
    background: var(--color-guinda);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
    background: var(--color-guinda);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #000000 0%, #1a0000 50%, #000000 100%);
    z-index: -1;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(156, 0, 0, 0.03) 2px,
            rgba(156, 0, 0, 0.03) 4px
        );
    animation: scanlines 8s linear infinite;
}

@keyframes scanlines {
    0% { transform: translateY(0); }
    100% { transform: translateY(20px); }
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
}

.hero-logo {
    max-width: 500px;
    margin: 0 auto 2rem;
    filter: drop-shadow(0 0 30px rgba(156, 0, 0, 0.6));
    animation: heroLogoFloat 3s ease-in-out infinite;
}

@keyframes heroLogoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.hero-title {
    font-family: var(--font-primary);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 20px rgba(156, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-description {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--color-gray);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.9s both;
}

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

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2.5rem;
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 8px;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::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;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-guinda), var(--color-guinda-light));
    color: var(--color-white);
    box-shadow: 0 4px 20px rgba(156, 0, 0, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(156, 0, 0, 0.6);
}

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

.btn-secondary {
    background: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-guinda);
}

.btn-secondary:hover {
    background: var(--color-guinda);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(156, 0, 0, 0.4);
}

.btn-copy {
    margin-top: 0.8rem;
    padding: 0.5rem 1.2rem;
    background: var(--color-guinda);
    color: var(--color-white);
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-copy:hover {
    background: var(--color-guinda-light);
    transform: scale(1.05);
}

.btn-link {
    margin-top: 0.8rem;
    padding: 0.5rem 1.2rem;
    background: transparent;
    color: var(--color-guinda);
    border: 1px solid var(--color-guinda);
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-link:hover {
    background: var(--color-guinda);
    color: var(--color-white);
    transform: scale(1.05);
}

/* ============================================
   SCROLL DOWN ARROW
   ============================================ */
.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--color-guinda);
    font-size: 2rem;
    animation: scrollBounce 2s ease-in-out infinite;
    cursor: pointer;
    z-index: 2;
}

@keyframes scrollBounce {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 15px); }
}

/* ============================================
   SERVER STATUS SECTION
   ============================================ */
.server-status {
    padding: 6rem 0;
    background: linear-gradient(180deg, #000000 0%, #0a0000 50%, #000000 100%);
    position: relative;
}

.server-status::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-guinda), transparent);
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Widget del servidor ocupa más espacio */
@media (min-width: 768px) {
    .status-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .widget-card {
        grid-column: span 2;
    }
}

.status-card {
    background: linear-gradient(135deg, #0f0f0f, #1a1a1a);
    border: 2px solid var(--color-gray-dark);
    border-radius: 16px;
    padding: 2rem;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.status-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(156, 0, 0, 0.1), transparent);
    transition: var(--transition-slow);
}

.status-card:hover::before {
    left: 100%;
}

.status-card:hover {
    border-color: var(--color-guinda);
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.widget-card {
    grid-column: span 1;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--color-gray-dark);
}

.card-header i {
    font-size: 1.8rem;
    color: var(--color-guinda);
}

.card-header h3 {
    font-family: var(--font-primary);
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 185px;
    padding: 0.5rem;
}

.iframe-container {
    width: 100%;
    max-width: 260px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000000;
    border-radius: 8px;
    padding: 15px;
    box-shadow: inset 0 0 15px rgba(156, 0, 0, 0.3);
}

.iframe-container iframe {
    width: 220px !important;
    height: 165px !important;
    border-radius: 6px;
    background: #000000;
    display: block;
    border: none;
}

.card-body iframe {
    width: 220px !important;
    height: 165px !important;
    border-radius: 8px;
    background: #000000;
}

.card-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--color-guinda), var(--color-guinda-dark));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 20px rgba(156, 0, 0, 0.3);
}

.card-icon i {
    font-size: 2rem;
    color: var(--color-white);
}

.card-content {
    text-align: center;
}

.card-number {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-guinda);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px rgba(156, 0, 0, 0.5);
}

.server-ip {
    font-size: 1.5rem;
    word-break: break-all;
}

.card-label {
    font-size: 1rem;
    color: var(--color-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-family: var(--font-primary);
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.title-underline {
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-guinda), var(--color-guinda-light));
    margin: 1.5rem auto;
    border-radius: 2px;
    position: relative;
}

.title-underline::before,
.title-underline::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40px;
    height: 4px;
    background: var(--color-guinda);
    border-radius: 2px;
    transform: translateY(-50%);
}

.title-underline::before {
    left: -60px;
}

.title-underline::after {
    right: -60px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--color-gray);
    max-width: 700px;
    margin: 0 auto;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
    padding: 6rem 0;
    background: var(--color-black);
    position: relative;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.about-card {
    background: linear-gradient(135deg, #0a0a0a, #151515);
    border: 2px solid var(--color-gray-dark);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent, rgba(156, 0, 0, 0.05));
    opacity: 0;
    transition: var(--transition-normal);
}

.about-card:hover::before {
    opacity: 1;
}

.about-card:hover {
    border-color: var(--color-guinda);
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.about-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--color-guinda), var(--color-guinda-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 25px rgba(156, 0, 0, 0.4);
    transition: var(--transition-normal);
}

.about-card:hover .about-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 35px rgba(156, 0, 0, 0.6);
}

.about-icon i {
    font-size: 2.5rem;
    color: var(--color-white);
}

.about-card h3 {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    color: var(--color-white);
}

.about-card p {
    font-size: 1rem;
    color: var(--color-gray);
    line-height: 1.8;
}

/* ============================================
   COMMUNITY SECTION
   ============================================ */
.community {
    padding: 6rem 0;
    background: linear-gradient(180deg, #000000 0%, #0a0000 50%, #000000 100%);
    position: relative;
}

.community::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-guinda), transparent);
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.social-card {
    background: linear-gradient(135deg, #0f0f0f, #1a1a1a);
    border: 2px solid var(--color-gray-dark);
    border-radius: 16px;
    padding: 2.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.social-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: var(--transition-slow);
}

.social-card:hover::before {
    left: 100%;
}

.social-card:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-xl);
}

.social-card.discord:hover {
    border-color: #5865F2;
}

.social-card.instagram:hover {
    border-color: #E1306C;
}

.social-card.tiktok:hover {
    border-color: #00F2EA;
}

.social-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition-normal);
}

.discord .social-icon {
    background: linear-gradient(135deg, #5865F2, #4752C4);
}

.instagram .social-icon {
    background: linear-gradient(135deg, #E1306C, #C13584);
}

.tiktok .social-icon {
    background: linear-gradient(135deg, #00F2EA, #00D9CC);
}

.social-card:hover .social-icon {
    transform: scale(1.15) rotate(10deg);
}

.social-icon i {
    font-size: 2rem;
    color: var(--color-white);
}

.social-content {
    flex: 1;
}

.social-content h3 {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.social-content p {
    font-size: 1rem;
    color: var(--color-gray);
}

.social-arrow {
    font-size: 1.5rem;
    color: var(--color-guinda);
    transition: var(--transition-normal);
}

.social-card:hover .social-arrow {
    transform: translateX(10px);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: linear-gradient(180deg, #000000, #0a0000);
    border-top: 2px solid var(--color-guinda);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    font-family: var(--font-primary);
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    color: var(--color-guinda);
}

.footer-logo {
    max-width: 200px;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 10px rgba(156, 0, 0, 0.3));
}

.footer-text {
    color: var(--color-gray);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 45px;
    height: 45px;
    background: var(--color-gray-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition-normal);
}

.footer-social a:hover {
    background: var(--color-guinda);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(156, 0, 0, 0.4);
}

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

.footer-links a {
    color: var(--color-gray);
    transition: var(--transition-fast);
    display: inline-block;
}

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

.footer-contact li {
    color: var(--color-gray);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-contact i {
    color: var(--color-guinda);
    font-size: 1.1rem;
    width: 25px;
}

.footer-bottom {
    border-top: 1px solid var(--color-gray-dark);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: var(--color-gray);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.footer-disclaimer {
    font-size: 0.8rem;
    color: var(--color-gray-dark);
}

/* ============================================
   SCROLL TO TOP BUTTON
   ============================================ */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--color-guinda), var(--color-guinda-dark));
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
    z-index: var(--z-scroll-top);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablets */
@media (max-width: 992px) {
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: rgba(0, 0, 0, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        padding: 2rem;
        transition: var(--transition-normal);
        border-right: 2px solid var(--color-guinda);
        box-shadow: var(--shadow-xl);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero-logo {
        max-width: 350px;
    }
    
    .status-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .iframe-container {
        max-width: 260px;
        padding: 10px;
    }
    
    .iframe-container iframe {
        width: 220px !important;
        height: 165px !important;
    }
    
    .about-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

/* Mobile */
@media (max-width: 576px) {
    .hero-logo {
        max-width: 280px;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .status-grid {
        grid-template-columns: 1fr;
    }
    
    .widget-card {
        grid-column: span 1;
    }
    
    .iframe-container {
        max-width: 100%;
        padding: 8px;
    }
    
    .iframe-container iframe {
        width: 220px !important;
        height: 165px !important;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .social-grid {
        grid-template-columns: 1fr;
    }
    
    .social-card {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-contact li {
        justify-content: center;
    }
    
    .scroll-top {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
}

/* Ajustes adicionales para pantallas muy pequeñas */
@media (max-width: 400px) {
    .iframe-container {
        padding: 5px;
    }
    
    .card-header h3 {
        font-size: 1.1rem;
    }
}

/* Ajustes para pantallas extra pequeñas */
@media (max-width: 320px) {
    .iframe-container {
        padding: 3px;
    }
}

/* ============================================
   ANIMATIONS & EFFECTS
   ============================================ */

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Slide In From Left */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Slide In From Right */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scale In */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

/* Glow Effect */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(156, 0, 0, 0.4);
    }
    50% {
        box-shadow: 0 0 40px rgba(156, 0, 0, 0.8);
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
:focus {
    outline: 2px solid var(--color-guinda);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .header,
    .hero-buttons,
    .scroll-down,
    .scroll-top,
    .hamburger {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
}
