/* ============================================
   BOMBEROS VOLUNTARIOS DE FIRMAT
   Diseño Dark Profesional con Efectos
   ============================================ */

/* Fuentes Prox */
@font-face {
    font-family: 'Prox';
    src: url('font/prox3.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Prox';
    src: url('font/prox2.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Prox';
    src: url('font/prox1.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

/* Variables */
:root {
    --red: #E10613;
    --red-dark: #B0050F;
    --red-light: #FF2B2B;
    --black: #0A0A0A;
    --dark-bg: #0F0F0F;
    --dark-surface: #1A1A1A;
    --dark-surface-2: #252525;
    --white: #FFFFFF;
    --gray-50: #FAFAFA;
    --gray-100: #F5F5F5;
    --gray-200: #EEEEEE;
    --gray-300: #E0E0E0;
    --gray-400: #BDBDBD;
    --gray-500: #9E9E9E;
    --gray-600: #757575;
    --gray-700: #616161;
    --gray-800: #424242;
    --gray-900: #212121;
    --text-primary: #FFFFFF;
    --text-secondary: #B8B8B8;
    --text-muted: #8A8A8A;
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(225, 6, 19, 0.3);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Prox', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 500;
    background: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Tipografía */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Prox', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.03em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
}

p {
    color: var(--text-secondary);
    line-height: 1.75;
    font-size: 1.0625rem;
    font-weight: 500;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Contenedor */
.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(225, 6, 19, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: visible;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse 60% 40% at 20% 30%, rgba(225, 6, 19, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 50% 30% at 80% 70%, rgba(255, 43, 43, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse 40% 35% at 50% 50%, rgba(225, 6, 19, 0.08) 0%, transparent 50%),
        linear-gradient(90deg, 
            transparent 0%, 
            rgba(225, 6, 19, 0.1) 25%, 
            rgba(225, 6, 19, 0.15) 50%, 
            rgba(225, 6, 19, 0.1) 75%, 
            transparent 100%);
    background-size: 200% 200%, 180% 180%, 150% 150%, 200% 100%;
    animation: headerWave 8s ease-in-out infinite, headerPulse 6s ease-in-out infinite;
    z-index: 0;
    opacity: 0.7;
    pointer-events: none;
}

.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(225, 6, 19, 0.8), 
        rgba(225, 6, 19, 1), 
        rgba(225, 6, 19, 0.8), 
        transparent);
    background-size: 200% 100%;
    animation: headerLine 3s ease-in-out infinite;
    z-index: 1;
    pointer-events: none;
}

@keyframes headerWave {
    0%, 100% {
        background-position: 0% 50%, 20% 30%, 80% 70%, 0% 50%;
    }
    33% {
        background-position: 50% 60%, 30% 40%, 70% 60%, 50% 50%;
    }
    66% {
        background-position: 100% 50%, 40% 50%, 60% 80%, 100% 50%;
    }
}

@keyframes headerPulse {
    0%, 100% {
        opacity: 0.7;
        transform: scale(1);
    }
    50% {
        opacity: 0.85;
        transform: scale(1.02);
    }
}

@keyframes headerLine {
    0%, 100% {
        background-position: -100% 0;
    }
    50% {
        background-position: 200% 0;
    }
}

.header.scrolled {
    background: rgba(10, 10, 10, 0.95);
    box-shadow: 
        0 8px 30px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(225, 6, 19, 0.2);
    border-bottom: 1px solid rgba(225, 6, 19, 0.5);
}

.header.scrolled::before {
    opacity: 0.85;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 2rem;
    max-width: 1600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.logo {
    position: relative;
    z-index: 2;
}

.logo img {
    height: 42px;
    width: auto;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo:hover img {
    transform: scale(1.05);
}

.nav {
    position: relative;
    z-index: 2;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9375rem;
    letter-spacing: 0.02em;
    position: relative;
    padding: 0.5rem 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--red), var(--red-light));
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(225, 6, 19, 0.5);
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.75rem;
    position: relative;
    z-index: 1002;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    pointer-events: auto;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
    border-radius: 2px;
}

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

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

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

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 70px;
    background: var(--black);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(225, 6, 19, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(225, 6, 19, 0.1) 0%, transparent 50%);
    z-index: 1;
    animation: pulseGlow 4s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.5;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.5) 0%,
        rgba(0, 0, 0, 0.7) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    align-items: center;
}

.hero-title {
    font-size: clamp(3.5rem, 8vw, 6.5rem);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.04em;
    line-height: 1.05;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
    width: 100%;
}

.hero-title-line {
    display: block;
    position: relative;
    text-shadow: 
        0 0 20px rgba(225, 6, 19, 0.4),
        0 0 40px rgba(225, 6, 19, 0.2),
        0 4px 8px rgba(0, 0, 0, 0.5);
}

.hero-title-accent {
    color: var(--red);
    background: linear-gradient(135deg, var(--red) 0%, var(--red-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    position: relative;
    display: inline-block;
}

.hero-title-accent::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--red), transparent);
    animation: expandLine 1.2s ease-out 0.8s both;
    box-shadow: 0 0 10px var(--red);
}

.hero-text-wrapper {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.hero-subtitle {
    font-size: clamp(1.25rem, 2.5vw, 1.625rem);
    color: var(--text-secondary);
    line-height: 1.75;
    font-weight: 500;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.01em;
}


.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2.25rem;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.02em;
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

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

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

.btn-primary {
    background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(225, 6, 19, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(225, 6, 19, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
}

/* Secciones */
.section {
    padding: 6rem 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.section-title h2 {
    margin-bottom: 0.5rem;
    position: relative;
    display: block;
    padding-bottom: 0;
    width: 100%;
}

.section-title h2:first-of-type {
    padding-bottom: 1rem;
    margin-bottom: 0.75rem;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--red), transparent);
    border-radius: 2px;
    animation: expandLine 1s ease-out;
}

@keyframes expandLine {
    from {
        width: 0;
    }
    to {
        width: 60px;
    }
}

.section-title p {
    font-size: 1.125rem;
    max-width: 800px;
    margin: 1.5rem auto 0;
    color: var(--text-secondary);
    line-height: 1.75;
}

.section-subtitle {
    font-size: clamp(1.875rem, 3.5vw, 2.75rem) !important;
    font-weight: 700 !important;
    color: var(--text-primary) !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    letter-spacing: -0.015em !important;
    display: block !important;
    width: 100% !important;
    padding-bottom: 0 !important;
}

.section-subtitle::after {
    display: none !important;
}

/* Stats Grid */
.stats-section {
    background: linear-gradient(135deg, var(--dark-surface) 0%, var(--black) 100%);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--red), transparent);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.stat-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: linear-gradient(135deg, var(--dark-surface) 0%, var(--dark-surface-2) 100%);
    border: 2px solid var(--border);
    border-radius: 20px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 200px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--red), var(--red-light), var(--red), transparent);
    background-size: 200% 100%;
    transform: scaleX(0);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 20px 20px 0 0;
    z-index: 1;
}

.flame-effect {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70%;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 20% 100%, rgba(225, 6, 19, 0.25) 0%, transparent 60%),
        radial-gradient(ellipse 80% 50% at 50% 100%, rgba(255, 43, 43, 0.2) 0%, transparent 60%),
        radial-gradient(ellipse 80% 50% at 80% 100%, rgba(225, 6, 19, 0.25) 0%, transparent 60%);
    animation: flameMove 3s ease-in-out infinite;
}

.stat-card:hover .flame-effect {
    opacity: 1;
}

@keyframes flameMove {
    0%, 100% {
        background: 
            radial-gradient(ellipse 80% 50% at 20% 100%, rgba(225, 6, 19, 0.25) 0%, transparent 60%),
            radial-gradient(ellipse 80% 50% at 50% 100%, rgba(255, 43, 43, 0.2) 0%, transparent 60%),
            radial-gradient(ellipse 80% 50% at 80% 100%, rgba(225, 6, 19, 0.25) 0%, transparent 60%);
    }
    33% {
        background: 
            radial-gradient(ellipse 90% 60% at 30% 100%, rgba(255, 43, 43, 0.3) 0%, transparent 60%),
            radial-gradient(ellipse 70% 40% at 60% 100%, rgba(225, 6, 19, 0.25) 0%, transparent 60%),
            radial-gradient(ellipse 85% 55% at 70% 100%, rgba(255, 43, 43, 0.25) 0%, transparent 60%);
    }
    66% {
        background: 
            radial-gradient(ellipse 75% 45% at 15% 100%, rgba(225, 6, 19, 0.28) 0%, transparent 60%),
            radial-gradient(ellipse 95% 65% at 55% 100%, rgba(255, 43, 43, 0.3) 0%, transparent 60%),
            radial-gradient(ellipse 70% 50% at 85% 100%, rgba(225, 6, 19, 0.25) 0%, transparent 60%);
    }
}

.stat-card:hover {
    transform: translateY(-12px) scale(1.03);
    border-color: var(--red);
    box-shadow: 
        0 20px 60px rgba(225, 6, 19, 0.5),
        0 0 50px rgba(225, 6, 19, 0.3),
        inset 0 0 30px rgba(225, 6, 19, 0.1);
    background: linear-gradient(135deg, rgba(225, 6, 19, 0.15) 0%, var(--dark-surface-2) 100%);
}

.stat-card:hover::after {
    transform: scaleX(1);
    animation: shimmer 1s ease-in-out infinite;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--red) 0%, var(--red-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 1rem;
    letter-spacing: -0.04em;
    text-shadow: 0 0 40px rgba(225, 6, 19, 0.6);
    position: relative;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 0 20px rgba(225, 6, 19, 0.4));
}

.stat-card:hover .stat-number {
    transform: scale(1.15);
    filter: drop-shadow(0 0 30px rgba(225, 6, 19, 0.7));
}

.stat-label {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
    position: relative;
    z-index: 1;
    line-height: 1.5;
    padding: 0 0.5rem;
    word-break: break-word;
    hyphens: auto;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
}

.stat-label a {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.stat-label a:hover {
    color: var(--red);
}

/* Emergency Cards Grid */
.emergencies-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

/* Emergency Cards */
.emergency-card {
    background: linear-gradient(135deg, var(--dark-surface) 0%, var(--dark-surface-2) 100%);
    border: 2px solid var(--border);
    border-top: 4px solid var(--red);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    min-height: 400px;
    cursor: pointer;
}

.emergency-card-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    text-decoration: none;
}

.emergency-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at top right, rgba(225, 6, 19, 0.1) 0%, transparent 50%),
        linear-gradient(180deg, rgba(225, 6, 19, 0.05) 0%, transparent 30%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
}

.emergency-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--red), var(--red-light), var(--red));
    background-size: 200% 100%;
    transform: scaleX(0);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 20px 20px 0 0;
    z-index: 1;
}

.emergency-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--red);
    box-shadow: 
        0 20px 60px rgba(225, 6, 19, 0.4),
        0 0 40px rgba(225, 6, 19, 0.2),
        inset 0 0 20px rgba(225, 6, 19, 0.05);
    background: linear-gradient(135deg, rgba(225, 6, 19, 0.1) 0%, var(--dark-surface-2) 100%);
}

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

.emergency-card:hover::after {
    transform: scaleX(1);
    animation: shimmer 1.5s ease-in-out infinite;
}

.emergency-number {
    display: inline-block;
    background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
    letter-spacing: 0.02em;
    box-shadow: 
        0 4px 16px rgba(225, 6, 19, 0.4),
        0 0 20px rgba(225, 6, 19, 0.2);
    position: relative;
    z-index: 2;
    align-self: flex-start;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.emergency-card:hover .emergency-number {
    transform: scale(1.05);
    box-shadow: 
        0 6px 24px rgba(225, 6, 19, 0.5),
        0 0 30px rgba(225, 6, 19, 0.3);
}

.emergency-date {
    color: var(--text-muted);
    font-size: 0.9375rem;
    margin-bottom: 1rem;
    font-weight: 500;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.emergency-date::before {
    content: '🕐';
    font-size: 1rem;
}

.emergency-header {
    margin-bottom: 1rem;
}

.emergency-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.emergency-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.emergency-title a:hover {
    color: var(--red);
}

.emergency-type {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--red);
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 2;
    line-height: 1.3;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.emergency-details {
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    position: relative;
    z-index: 2;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.emergency-units {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-top: auto;
    margin-bottom: 1.5rem;
    font-weight: 500;
    position: relative;
    z-index: 2;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.emergency-units a {
    color: var(--red);
    transition: color 0.3s ease;
    position: relative;
    z-index: 3;
    text-decoration: none;
    pointer-events: auto;
}

.emergency-units a:hover {
    color: var(--red-light);
    text-decoration: underline;
}

/* Alerts */
.alerts-banner {
    background: linear-gradient(135deg, var(--dark-surface) 0%, var(--dark-surface-2) 100%);
    border: 1px solid var(--border);
    border-left: 4px solid var(--red);
    border-radius: 12px;
    padding: 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}


.alerts-banner-content {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.5rem;
    padding: 1.75rem 2rem;
    position: relative;
    z-index: 1;
}

.alerts-icon-large {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.beacon-icon {
    width: 50px;
    height: 50px;
    position: relative;
    animation: beaconPulse 2s ease-in-out infinite;
}

.beacon-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    width: 50px;
    height: 50px;
    background: var(--red);
    border-radius: 50% 50% 50% 0;
    box-shadow: 0 0 20px rgba(225, 6, 19, 0.6);
}

.beacon-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: var(--white);
    border-radius: 50%;
    z-index: 1;
}

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

.alerts-info {
    position: relative;
    z-index: 1;
}

.alerts-info h2 {
    color: var(--text-primary);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.alerts-info > p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0 0 1.5rem 0;
    line-height: 1.6;
}

.alerts-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.alerts-list-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.5;
    padding: 0;
}

.alerts-list-dot {
    flex-shrink: 0;
    width: 6px;
    height: 6px;
    background: var(--red);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(225, 6, 19, 0.6);
}

.alerts-cta {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.alerts-cta .btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    white-space: nowrap;
}

.alerts-cta .btn svg {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.alerts-cta .btn:hover svg {
    transform: scale(1.15);
}

/* Banner de Estadísticas */
.stats-banner {
    background: linear-gradient(135deg, var(--dark-surface) 0%, var(--dark-surface-2) 100%);
    border: 1px solid var(--border);
    border-left: 4px solid var(--red);
    border-radius: 12px;
    padding: 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.stats-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(220, 38, 38, 0.25);
    border-left-color: var(--red-light);
}

.stats-banner-content {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.5rem;
    padding: 1.75rem 2rem;
    position: relative;
    z-index: 1;
}

.stats-banner a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.stats-icon-large {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.chart-icon {
    width: 50px;
    height: 50px;
    position: relative;
    color: var(--red);
}

.chart-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 2px 4px rgba(220, 38, 38, 0.3));
}

.stats-banner-info {
    flex: 1;
}

.stats-banner-info h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
    font-family: var(--font-bold);
}

.stats-banner-info p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

.stats-banner-cta {
    flex-shrink: 0;
}

.stats-banner-cta .btn {
    white-space: nowrap;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

@media (max-width: 768px) {
    .stats-banner-content {
        grid-template-columns: 1fr;
        padding: 1.5rem;
        gap: 1.5rem;
        text-align: center;
    }
    
    .stats-icon-large {
        margin: 0 auto;
    }
    
    .stats-banner-info {
        text-align: center;
    }
    
    .stats-banner-info h2 {
        font-size: 1.5rem;
    }
    
    .stats-banner-info p {
        font-size: 0.9375rem;
    }
    
    .stats-banner-cta {
        width: 100%;
    }
    
    .stats-banner-cta .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Clima */
.clima-card {
    background: var(--dark-surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.clima-header {
    padding: 2rem 2rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.clima-header h2 {
    color: var(--text-primary);
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.clima-header p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0;
}

.clima-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 0;
}

.clima-main {
    padding: 2rem;
    background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.clima-temp-value {
    color: var(--white);
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.clima-temp-label {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.clima-temp-sensacion {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.0625rem;
}

.clima-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.clima-detail-item {
    padding: 1.75rem 1.5rem;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
    position: relative;
}

.clima-detail-item:nth-child(3n) {
    border-right: none;
}

.clima-detail-item:nth-child(n+4) {
    border-bottom: none;
}

.clima-detail-item:hover {
    background: rgba(225, 6, 19, 0.05);
}

.clima-detail-label {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.clima-detail-value {
    color: var(--text-primary);
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
}

.clima-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
    background: var(--dark-surface-2);
}

/* Piletas */
.piletas-card {
    background: linear-gradient(135deg, var(--dark-surface) 0%, var(--dark-surface-2) 100%);
    border: 1px solid var(--border);
    border-left: 4px solid var(--red);
    border-radius: 12px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.piletas-card:hover {
    box-shadow: 0 8px 30px rgba(225, 6, 19, 0.2);
    transform: translateY(-2px);
}

.piletas-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.piletas-header h2 {
    color: var(--text-primary);
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.piletas-header p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0;
}

.piletas-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
}

.piletas-main p {
    font-size: 1.0625rem;
    margin-bottom: 2rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.piletas-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.piletas-feature {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.5rem;
    background: var(--dark-surface-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.piletas-feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(225, 6, 19, 0.1), transparent);
    transition: left 0.6s ease;
}

.piletas-feature:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(225, 6, 19, 0.15);
}

.piletas-feature:hover::before {
    left: 100%;
}

.piletas-feature-icon {
    width: 44px;
    height: 44px;
    background: rgba(225, 6, 19, 0.15);
    border: 1px solid rgba(225, 6, 19, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.piletas-feature:hover .piletas-feature-icon {
    transform: rotate(5deg) scale(1.1);
}

.piletas-feature h4 {
    font-size: 1.125rem;
    margin-bottom: 0.375rem;
}

.piletas-feature p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

.piletas-side {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.piletas-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.piletas-stat {
    background: var(--dark-surface-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.piletas-stat:hover {
    border-color: var(--red);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(225, 6, 19, 0.25);
    background: rgba(225, 6, 19, 0.05);
}

.piletas-stat-label {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
}

.piletas-stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.piletas-stat-value.red {
    color: var(--red);
    text-shadow: 0 0 10px rgba(225, 6, 19, 0.3);
}

.piletas-note {
    background: rgba(225, 6, 19, 0.1);
    border: 1px solid rgba(225, 6, 19, 0.3);
    border-left: 3px solid var(--red);
    border-radius: 12px;
    padding: 1.5rem;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.piletas-note strong {
    color: var(--red);
    font-weight: 700;
}

/* Socio Section */
.socio-section {
    background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
    padding: 6rem 0;
}

.socio-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    z-index: 0;
    animation: socioPulse 4s ease-in-out infinite;
}

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

.socio-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.socio-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--white);
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.socio-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    color: rgba(255, 255, 255, 0.95);
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
}

.socio-subtitle strong {
    color: var(--white);
    font-weight: 700;
    font-size: 1.1em;
}

.socio-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.socio-step {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.socio-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.6s ease;
}

.socio-step:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.socio-step:hover::before {
    left: 100%;
}

.socio-step-number {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    margin: 0 auto 1.5rem;
    position: relative;
    z-index: 1;
    transition: all 0.4s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.socio-step:hover .socio-step-number {
    transform: scale(1.15) rotate(5deg);
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.3);
}

.socio-step h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.socio-step p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
    position: relative;
    z-index: 1;
}

.btn-socio {
    background: var(--white);
    color: var(--red);
    font-size: 1.125rem;
    padding: 1.25rem 3rem;
    font-weight: 700;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.btn-socio:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    background: rgba(255, 255, 255, 0.95);
}

.btn-socio svg {
    transition: transform 0.3s ease;
}

.btn-socio:hover svg {
    transform: translateX(4px);
}

/* Footer */
.footer {
    background: linear-gradient(180deg, var(--black) 0%, #050505 100%);
    color: var(--white);
    padding: 5rem 0 2.5rem;
    margin-top: 6rem;
    border-top: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--red), var(--red-light), var(--red), transparent);
    background-size: 200% 100%;
    animation: footerShimmer 3s ease-in-out infinite;
}

@keyframes footerShimmer {
    0%, 100% { background-position: -100% 0; }
    50% { background-position: 200% 0; }
}

.footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(225, 6, 19, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(225, 6, 19, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

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

.footer-section {
    position: relative;
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--red);
    border-radius: 2px;
}

.footer-section .logo img {
    transition: transform 0.3s ease;
}

.footer-section .logo:hover img {
    transform: scale(1.05);
}

.footer-section p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.footer-section > a {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    display: block;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    padding: 0.25rem 0;
    position: relative;
}

.footer-section > a::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: var(--red);
    transition: width 0.3s ease;
}

.footer-section > a:hover {
    color: var(--white);
    padding-left: 0.5rem;
}

.footer-section > a:hover::before {
    width: 20px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.footer-contact-item svg {
    flex-shrink: 0;
    margin-top: 0.25rem;
    color: var(--red);
    transition: transform 0.3s ease;
}

.footer-contact-item:hover svg {
    transform: scale(1.1);
}

.footer-contact-item strong {
    display: block;
    color: var(--white);
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.footer-contact-item a {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    display: block;
    margin-bottom: 0.25rem;
    transition: color 0.3s ease;
    text-decoration: none;
}

.footer-contact-item a:hover {
    color: var(--red);
}

.footer-contact-item .emergency-phone {
    color: var(--red);
    font-weight: 700;
}

.footer-contact-item .emergency-phone:hover {
    color: var(--red-light);
}

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

.social-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 8px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: var(--red);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.social-link svg {
    transition: transform 0.3s ease;
}

.social-link:hover {
    color: var(--white);
    background: rgba(225, 6, 19, 0.1);
    padding-left: 1rem;
}

.social-link:hover::before {
    transform: scaleY(1);
}

.social-link:hover svg {
    transform: scale(1.15);
    color: var(--red);
}

.footer-bottom {
    text-align: center;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.875rem;
    position: relative;
    z-index: 1;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

.footer-bottom a {
    color: var(--red);
    transition: color 0.3s ease;
    text-decoration: none;
}

.footer-bottom a:hover {
    color: var(--red-light);
    text-decoration: underline;
}

/* Footer Responsive */
@media (max-width: 768px) {
    .footer {
        padding: 3rem 0 2rem;
        margin-top: 4rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 2rem;
    }
    
    .footer-section {
        text-align: left;
    }
    
    .footer-section h3 {
        font-size: 1.125rem;
        margin-bottom: 1rem;
    }
    
    .footer-section h3::after {
        left: 0;
        transform: none;
    }
    
    .footer-section .logo img {
        height: 40px;
        margin-bottom: 1rem;
    }
    
    .footer-section p {
        font-size: 0.875rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }
    
    .footer-contact-item {
        flex-direction: row;
        align-items: flex-start;
        gap: 0.75rem;
        margin-bottom: 1.25rem;
        text-align: left;
    }
    
    .footer-contact-item svg {
        margin-top: 0.25rem;
    }
    
    .footer-contact-item strong {
        display: block;
        margin-bottom: 0.375rem;
    }
    
    .footer-contact-item a {
        display: block;
        margin-bottom: 0.25rem;
    }
    
    .footer-social {
        gap: 0.75rem;
    }
    
    .social-link {
        justify-content: flex-start;
    }
    
    .footer-section > a {
        padding: 0.5rem 0;
    }
    
    .footer-bottom {
        padding-top: 2rem;
    }
    
    .footer-bottom p {
        font-size: 0.8125rem;
        line-height: 1.6;
    }
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 64px;
    height: 64px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: float 3s ease-in-out infinite;
}

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

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: white;
}

/* Banner de Adeudas */
.adeudas-banner {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.15) 0%, rgba(185, 28, 28, 0.15) 100%);
    border: 2px solid var(--red);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    box-sizing: border-box;
}

.adeudas-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    width: 100%;
}

.adeudas-info {
    flex: 1;
    min-width: 0;
}

.adeudas-info h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    font-family: var(--font-bold);
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.adeudas-info h3 span {
    color: var(--red);
    font-weight: 700;
}

.adeudas-banner .btn-large {
    padding: 0.875rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    flex-shrink: 0;
    width: auto;
    min-width: auto;
}

@media (max-width: 768px) {
    .adeudas-banner {
        padding: 1.25rem 1.5rem;
    }
    
    .adeudas-content {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .adeudas-info {
        flex: none;
    }
    
    .adeudas-info h3 {
        font-size: 1.1rem;
        text-align: center;
    }
    
    .adeudas-banner .btn-large {
        width: 100%;
        justify-content: center;
    }
}

/* Responsive */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.75rem;
    }
    
    .stat-card:last-child {
        grid-column: 2;
    }
    
    .emergencies-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .emergencies-grid .emergency-card:last-child {
        grid-column: 1 / -1;
        max-width: 500px;
        margin: 0 auto;
    }
    
}

@media (max-width: 1024px) {
    .nav-links {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    /* ELIMINAR TODAS LAS ANIMACIONES Y EFECTOS PESADOS EN MÓVIL */
    * {
        animation: none !important;
        transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease !important;
    }
    
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
    
    .hero::before {
        display: none !important;
    }
    
    .stat-card::after,
    .stat-card .flame-effect,
    .stat-card::before {
        display: none !important;
    }
    
    .emergency-card::before,
    .emergency-card::after {
        display: none !important;
    }
    
    .alerts-banner::before,
    .alerts-banner::after {
        display: none !important;
    }
    
    .beacon-icon::before,
    .beacon-icon::after {
        display: none !important;
    }
    
    .socio-section::before,
    .socio-section::after {
        display: none !important;
    }
    
    .footer::before,
    .footer::after {
        display: none !important;
    }
    
    .section-title::before,
    .section-title::after {
        display: none !important;
    }
    
    .mobile-menu-toggle {
        display: flex !important;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(15, 15, 15, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        border-top: 1px solid var(--border);
        box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
        z-index: 1001;
        gap: 0;
        height: calc(100vh - 70px);
        overflow-y: auto;
        display: flex;
    }
    
    .nav-links.active {
        transform: translateX(0);
    }
    
    .nav-links li {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .nav-links .nav-link {
        display: block;
        width: 100%;
        padding: 1rem;
        text-align: center;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-links .nav-link:hover {
        background: rgba(225, 6, 19, 0.2);
        border-color: rgba(225, 6, 19, 0.3);
    }
    
    .nav-links .nav-link::after {
        display: none;
    }
    
    .nav-links.active {
        transform: translateX(0);
    }
    
    .hero {
        min-height: 90vh;
    }
    
    .hero-video {
        opacity: 0.4;
    }
    
    .hero-content {
        padding: 5rem 1.5rem 4rem;
        gap: 3rem;
    }
    
    .hero-title {
        font-size: clamp(3.5rem, 14vw, 6rem) !important;
        gap: 1rem !important;
        font-weight: 700 !important;
        line-height: 1.1 !important;
    }
    
    .hero-title-line {
        text-shadow: 
            0 0 30px rgba(225, 6, 19, 1),
            0 0 60px rgba(225, 6, 19, 0.8),
            0 0 90px rgba(225, 6, 19, 0.6),
            0 6px 12px rgba(0, 0, 0, 1) !important;
        letter-spacing: -0.03em !important;
        font-weight: 700 !important;
        display: block !important;
    }
    
    .hero-title-accent {
        color: var(--red) !important;
        text-shadow: 
            0 0 40px rgba(225, 6, 19, 1),
            0 0 80px rgba(225, 6, 19, 0.9),
            0 0 120px rgba(225, 6, 19, 0.7),
            0 6px 12px rgba(0, 0, 0, 1) !important;
        font-weight: 700 !important;
        -webkit-text-fill-color: var(--red) !important;
        background: none !important;
    }
    
    .hero-title-accent::after {
        display: none !important;
    }
    
    .hero-subtitle {
        font-size: 1.25rem !important;
        line-height: 1.8 !important;
        font-weight: 500 !important;
        text-shadow: 0 3px 10px rgba(0, 0, 0, 0.8) !important;
        color: rgba(255, 255, 255, 0.95) !important;
        max-width: 100% !important;
    }
    
    .section {
        padding: 4rem 0;
    }
    
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .stat-card {
        min-height: 160px;
        padding: 1.5rem 1rem;
    }
    
    .stat-card:nth-child(4) {
        grid-column: 1;
    }
    
    .stat-card:nth-child(5) {
        grid-column: 2 / 4;
    }
    
    .stat-card:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 8px 24px rgba(225, 6, 19, 0.3) !important;
    }
    
    .stat-number {
        filter: drop-shadow(0 0 10px rgba(225, 6, 19, 0.5)) !important;
    }
    
    .stat-card:hover .stat-number {
        transform: scale(1.02) !important;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .stat-label {
        font-size: 0.875rem;
    }
    
    .emergencies-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .emergencies-grid .emergency-card:last-child {
        grid-column: 1;
        max-width: 100%;
        margin: 0;
    }
    
    .emergency-card {
        min-height: auto;
        padding: 2rem;
    }
    
    .emergency-card:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 8px 24px rgba(225, 6, 19, 0.3) !important;
    }
    
    .emergency-type {
        font-size: 1.5rem;
    }
    
    .clima-content {
        grid-template-columns: 1fr;
    }
    
    .clima-main {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .clima-details {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .clima-detail-item:nth-child(3n) {
        border-right: 1px solid var(--border);
    }
    
    .clima-detail-item:nth-child(2n) {
        border-right: none;
    }
    
    .clima-detail-item:nth-child(n+5) {
        border-bottom: 1px solid var(--border);
    }
    
    .clima-detail-item:last-child {
        border-bottom: none;
    }
    
    .piletas-card {
        padding: 1.75rem 1.5rem;
    }
    
    .piletas-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .piletas-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .alerts-banner-content {
        grid-template-columns: 1fr;
        padding: 1.5rem;
        gap: 1.5rem;
        text-align: center;
    }
    
    .alerts-icon-large {
        margin: 0 auto;
    }
    
    .alerts-info {
        text-align: center;
    }
    
    .alerts-info h2 {
        font-size: 1.5rem;
    }
    
    .alerts-info > p {
        font-size: 0.9375rem;
    }
    
    .alerts-list {
        align-items: flex-start;
        text-align: left;
    }
    
    .alerts-list-item {
        font-size: 0.875rem;
        margin-bottom: 0.5rem;
    }
    
    .alerts-cta {
        width: 100%;
    }
    
    .alerts-cta .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card:last-child {
        grid-column: 1;
        max-width: 100%;
    }
    
    .stat-number {
        font-size: 4rem;
    }
    
    .stat-label {
        font-size: 0.9375rem;
        letter-spacing: 0.1em;
    }
}

/* Years Grid - ESTILOS MEJORADOS */
.section .years-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
    gap: 2rem !important;
    margin-top: 3rem !important;
}

.section .year-card {
    background: linear-gradient(135deg, var(--dark-surface) 0%, var(--dark-surface-2) 100%) !important;
    border: 2px solid var(--border) !important;
    border-left: 5px solid var(--border) !important;
    border-radius: 20px !important;
    padding: 3rem 2rem !important;
    text-align: center !important;
    text-decoration: none !important;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    min-height: 200px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}

.section .year-card::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 5px !important;
    background: linear-gradient(90deg, transparent, var(--red), var(--red-light), var(--red), transparent) !important;
    background-size: 200% 100% !important;
    transform: scaleX(0) !important;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border-radius: 20px 20px 0 0 !important;
    z-index: 1 !important;
}

.section .year-card::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: 
        radial-gradient(ellipse 80% 50% at 20% 100%, rgba(225, 6, 19, 0.2) 0%, transparent 60%),
        radial-gradient(ellipse 80% 50% at 50% 100%, rgba(255, 43, 43, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse 80% 50% at 80% 100%, rgba(225, 6, 19, 0.2) 0%, transparent 60%) !important;
    opacity: 0 !important;
    transition: opacity 0.5s ease !important;
    z-index: 0 !important;
    pointer-events: none !important;
}

.section .year-card:hover {
    transform: translateY(-12px) scale(1.02) !important;
    border-color: var(--red) !important;
    border-left-color: var(--red) !important;
    box-shadow: 
        0 20px 60px rgba(225, 6, 19, 0.5),
        0 0 50px rgba(225, 6, 19, 0.3),
        inset 0 0 30px rgba(225, 6, 19, 0.1) !important;
    background: linear-gradient(135deg, rgba(225, 6, 19, 0.15) 0%, var(--dark-surface-2) 100%) !important;
}

.section .year-card:hover::before {
    transform: scaleX(1) !important;
    animation: shimmer 1s ease-in-out infinite !important;
}

.section .year-card:hover::after {
    opacity: 1 !important;
    animation: flameMove 3s ease-in-out infinite !important;
}

.section .year-card.active {
    border-color: var(--red) !important;
    border-left-color: var(--red) !important;
    background: linear-gradient(135deg, rgba(225, 6, 19, 0.18) 0%, var(--dark-surface-2) 100%) !important;
    box-shadow: 
        0 12px 40px rgba(225, 6, 19, 0.4),
        0 0 30px rgba(225, 6, 19, 0.25),
        inset 0 0 25px rgba(225, 6, 19, 0.1) !important;
}

.section .year-card.active::before {
    transform: scaleX(1) !important;
}

.section .year-card.active::after {
    opacity: 0.6 !important;
}

.section .year-number {
    font-size: 3.5rem !important;
    font-weight: 700 !important;
    background: linear-gradient(135deg, var(--red) 0%, var(--red-light) 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    margin-bottom: 1rem !important;
    line-height: 1 !important;
    letter-spacing: -0.03em !important;
    position: relative !important;
    z-index: 1 !important;
    filter: drop-shadow(0 0 20px rgba(225, 6, 19, 0.5)) !important;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.section .year-count {
    font-size: 1.125rem !important;
    color: var(--text-secondary) !important;
    font-weight: 500 !important;
    position: relative !important;
    z-index: 1 !important;
    letter-spacing: 0.03em !important;
    transition: all 0.3s ease !important;
    line-height: 1.4 !important;
}

.section .year-card:hover .year-number {
    transform: scale(1.12) !important;
    filter: drop-shadow(0 0 40px rgba(225, 6, 19, 0.8)) !important;
}

.section .year-card:hover .year-count {
    color: var(--text-primary) !important;
    font-weight: 600 !important;
    transform: translateY(-2px) !important;
}

.section .year-card.active .year-number {
    filter: drop-shadow(0 0 30px rgba(225, 6, 19, 0.7)) !important;
    transform: scale(1.05) !important;
}

.section .year-card.active .year-count {
    color: var(--text-primary) !important;
    font-weight: 600 !important;
    font-size: 1.1875rem !important;
}

@media (max-width: 768px) {
    .section .years-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)) !important;
        gap: 1.5rem !important;
    }
    
    .section .year-card {
        padding: 2.5rem 1.75rem !important;
        min-height: 180px !important;
    }
    
    .section .year-number {
        font-size: 3rem !important;
    }
    
    .section .year-count {
        font-size: 1rem !important;
    }
    
    .section .year-card:hover {
        transform: translateY(-6px) scale(1.01) !important;
    }
    
    .section .year-card::after {
        display: none !important;
    }
}

/* Utilidades */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 2rem; }
.mt-2 { margin-top: 3rem; }
.mt-3 { margin-top: 4rem; }

.mb-1 { margin-bottom: 2rem; }
.mb-2 { margin-bottom: 3rem; }
.mb-3 { margin-bottom: 4rem; }

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--red);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--red-light);
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 3rem;
}

.team-card {
    background: linear-gradient(135deg, var(--dark-surface) 0%, var(--dark-surface-2) 100%);
    border: 1px solid var(--border);
    border-left: 4px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--red), var(--red-light), var(--red));
    background-size: 200% 100%;
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.team-card:hover {
    transform: translateY(-8px);
    border-color: var(--red);
    border-left-color: var(--red);
    box-shadow: 
        0 12px 40px rgba(225, 6, 19, 0.4),
        0 0 30px rgba(225, 6, 19, 0.2),
        inset 0 0 20px rgba(225, 6, 19, 0.05);
    background: linear-gradient(135deg, rgba(225, 6, 19, 0.1) 0%, var(--dark-surface-2) 100%);
}

.team-card:hover::before {
    transform: scaleX(1);
    animation: shimmer 1s ease-in-out infinite;
}

.team-photo {
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
    background: var(--dark-surface-2);
    will-change: auto;
}

.team-photo img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.team-photo-overlay {
    display: none;
}

.team-card:hover .team-photo img {
    transform: scale(1.05);
}

.team-info {
    padding: 2rem 1.75rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.team-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.team-position {
    font-size: 1.25rem;
    color: var(--red);
    font-weight: 600;
    margin-bottom: 0.75rem;
    letter-spacing: 0.02em;
}

.team-age {
    font-size: 1.125rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin: 0;
}

.team-card:hover .team-name {
    color: var(--red);
    text-shadow: 0 0 20px rgba(225, 6, 19, 0.3);
}

@media (max-width: 1200px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .team-info {
        padding: 1.5rem 1.25rem;
    }
    
    .team-name {
        font-size: 1.25rem;
    }
    
    .team-position {
        font-size: 1.125rem;
    }
    
    .team-age {
        font-size: 1rem;
    }
    
    .team-card:hover {
        transform: translateY(-4px);
    }
    
    .team-card::before {
        display: none;
    }
}

/* Units Grid */
.units-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 3rem;
}

.unit-card {
    background: linear-gradient(135deg, var(--dark-surface) 0%, var(--dark-surface-2) 100%);
    border: 1px solid var(--border);
    border-left: 4px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    text-decoration: none;
    color: inherit;
}

.unit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--red), var(--red-light), var(--red));
    background-size: 200% 100%;
    transform: scaleX(0);
    transition: transform 0.2s ease;
    z-index: 1;
}

.unit-card:hover {
    transform: translateY(-8px);
    border-color: var(--red);
    border-left-color: var(--red);
    box-shadow: 
        0 12px 40px rgba(225, 6, 19, 0.4),
        0 0 30px rgba(225, 6, 19, 0.2),
        inset 0 0 20px rgba(225, 6, 19, 0.05);
    background: linear-gradient(135deg, rgba(225, 6, 19, 0.1) 0%, var(--dark-surface-2) 100%);
}

.unit-card:hover::before {
    transform: scaleX(1);
}

.unit-photo {
    position: relative;
    width: 100%;
    padding-top: 60%;
    overflow: hidden;
    background: var(--dark-surface-2);
    will-change: auto;
}

.unit-photo img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.unit-card:hover .unit-photo img {
    transform: scale(1.05);
}

.unit-info {
    padding: 2rem 1.75rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.unit-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.unit-number {
    font-size: 1.125rem;
    color: var(--red);
    font-weight: 600;
    margin-bottom: 0.75rem;
    letter-spacing: 0.02em;
}

.unit-stats {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin: 0;
}

.unit-card:hover .unit-name {
    color: var(--red);
    text-shadow: 0 0 20px rgba(225, 6, 19, 0.3);
}

@media (max-width: 1200px) {
    .units-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .units-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .unit-info {
        padding: 1.5rem 1.25rem;
    }
    
    .unit-name {
        font-size: 1.25rem;
    }
    
    .unit-number {
        font-size: 1rem;
    }
    
    .unit-stats {
        font-size: 0.9375rem;
    }
    
    .unit-card:hover {
        transform: translateY(-4px);
    }
    
    .unit-card::before {
        display: none;
    }
}

/* Emergency Detail Page */
.emergency-detail-card {
    background: linear-gradient(135deg, var(--dark-surface) 0%, var(--dark-surface-2) 100%);
    border: 2px solid var(--border);
    border-top: 4px solid var(--red);
    border-radius: 20px;
    padding: 3rem;
    margin-top: 2rem;
    position: relative;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.emergency-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border);
}

.emergency-number-large {
    font-size: 4rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--red) 0%, var(--red-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    filter: drop-shadow(0 0 20px rgba(225, 6, 19, 0.5));
}

.emergency-share {
    position: relative;
}

.share-btn {
    background: var(--dark-surface-2);
    border: 2px solid var(--border);
    border-radius: 12px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-secondary);
}

.share-btn:hover {
    border-color: var(--red);
    color: var(--red);
    transform: scale(1.05);
}

.share-btn svg {
    width: 24px;
    height: 24px;
}

.share-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--dark-surface-2);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    display: none;
    flex-direction: row;
    gap: 0.75rem;
    align-items: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    z-index: 100;
    white-space: nowrap;
}

.share-panel.active {
    display: flex;
}

.share-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--dark-surface);
    color: var(--text-secondary);
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    padding: 0;
}

.share-icon:hover {
    background: var(--red);
    color: var(--white);
    transform: scale(1.1);
}

.share-icon svg {
    width: 20px;
    height: 20px;
}

.copy-message {
    font-size: 0.875rem;
    color: var(--red);
    white-space: nowrap;
    display: none;
}

.emergency-detail-content {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.emergency-detail-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.emergency-meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.meta-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.meta-value {
    font-size: 1.25rem;
    color: var(--text-primary);
    font-weight: 600;
}

.meta-link {
    color: var(--red);
    text-decoration: none;
    transition: all 0.2s ease;
}

.meta-link:hover {
    color: var(--red-light);
    text-shadow: 0 0 10px rgba(225, 6, 19, 0.3);
}

.emergency-detail-text h3,
.emergency-detail-units h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 700;
}

.emergency-detail-text p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.emergency-detail-units p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.emergency-detail-units a {
    color: var(--red);
    text-decoration: none;
    transition: all 0.2s ease;
}

.emergency-detail-units a:hover {
    color: var(--red-light);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .emergency-detail-card {
        padding: 2rem 1.5rem;
    }
    
    .emergency-number-large {
        font-size: 3rem;
    }
    
    .emergency-detail-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    
    .emergency-share {
        align-self: flex-end;
    }
    
    .share-panel {
        right: 0;
        left: auto;
        transform: none;
        max-width: calc(100vw - 2rem);
        width: auto;
        min-width: fit-content;
    }
    
    .emergency-detail-meta {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .emergency-detail-text h3,
    .emergency-detail-units h3 {
        font-size: 1.25rem;
    }
    
    .emergency-detail-text p,
    .emergency-detail-units p {
        font-size: 1rem;
    }
}

/* Donation Page */
.donation-card {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
    background: linear-gradient(135deg, var(--dark-surface) 0%, var(--dark-surface-2) 100%);
    border: 2px solid var(--border);
    border-top: 4px solid var(--red);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

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

.donation-text {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.donation-message {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin: 1.5rem 0;
}

.donation-form {
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 2rem;
}

.form-label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    text-align: left;
}

.form-input {
    width: 100%;
    padding: 1rem 1.25rem;
    background: var(--dark-surface-2);
    border: 2px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1.125rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(225, 6, 19, 0.1);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.btn-large {
    width: 100%;
    padding: 1.25rem 2rem;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.alert {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 2px solid;
}

.alert strong {
    display: block;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.alert p {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.alert-success {
    background: rgba(76, 175, 80, 0.1);
    border-color: #4CAF50;
    color: #4CAF50;
}

.alert-pending {
    background: rgba(255, 193, 7, 0.1);
    border-color: #FFC107;
    color: #FFC107;
}

.alert-error {
    background: rgba(244, 67, 54, 0.1);
    border-color: var(--red);
    color: var(--red);
}

.alert-info {
    background: rgba(33, 150, 243, 0.15);
    border-color: #2196F3;
    color: var(--text-light);
}

.alert-info strong {
    color: #64B5F6;
}

.alert-info p {
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .donation-card {
        max-width: 100%;
        width: calc(100% - 1rem);
        padding: 1.75rem 1.25rem;
        margin: 1rem 0.5rem;
        border-radius: 16px;
        box-shadow: 
            0 8px 30px rgba(0, 0, 0, 0.4),
            0 0 20px rgba(225, 6, 19, 0.15);
        border-top-width: 4px;
    }
    
    .donation-text {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }
    
    .donation-message {
        font-size: 0.9375rem;
        line-height: 1.6;
        margin: 1.25rem 0;
        padding: 0.875rem;
        background: rgba(225, 6, 19, 0.05);
        border-radius: 10px;
        border-left: 3px solid var(--red);
    }
    
    .donation-form {
        margin-top: 1.5rem;
    }
    
    .form-group {
        margin-bottom: 1.5rem;
    }
    
    .form-label {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .form-input {
        font-size: 1rem;
        padding: 1rem 1.25rem;
        border-width: 2px;
    }
    
    .form-input:focus {
        box-shadow: 0 0 0 3px rgba(225, 6, 19, 0.1);
    }
    
    .btn-large {
        font-size: 1.125rem;
        padding: 1.125rem 1.75rem;
        font-weight: 700;
        letter-spacing: 0.05em;
        border-radius: 12px;
        box-shadow: 
            0 6px 20px rgba(225, 6, 19, 0.3),
            0 0 15px rgba(225, 6, 19, 0.15);
    }
    
    .btn-large:active {
        transform: scale(0.98);
    }
}

/* Socios Form Styles */
.errorInputR {
    border: 2px solid var(--red) !important;
}

.socio-form-card {
    background: var(--dark-alt);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    max-width: 700px;
    margin: 2rem auto;
}

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

.socio-form-card .form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-light);
}

.socio-form-card .form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background-color: var(--dark);
    color: var(--text-color);
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.socio-form-card .form-input:focus {
    border-color: var(--red);
    outline: none;
}

.socio-form-card .form-text-muted {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    display: block;
}

.captcha-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.captcha-image-wrapper {
    flex: 1;
    text-align: center;
    background-color: var(--dark);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.5rem;
}

.captcha-image-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.captcha-input-wrapper {
    flex: 1;
}

.captcha-input-wrapper .form-input {
    text-align: center;
}

/* Botón socio usa las mismas clases que donar: btn btn-primary btn-large */
.btn-primary:disabled {
    background: #4a4a4a !important;
    color: #999999 !important;
    border: 2px solid var(--red) !important;
    cursor: not-allowed;
    opacity: 0.7;
    box-shadow: none;
}

.login-section {
    background-color: var(--primary);
    padding: 4rem 0;
    text-align: center;
    margin-top: 3rem;
    position: relative;
    overflow: hidden;
}

.login-section::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(225, 6, 19, 0.3) 0%, transparent 70%);
    animation: pulse 4s infinite alternate;
    z-index: 0;
}

.login-section::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(225, 6, 19, 0.3) 0%, transparent 70%);
    animation: pulse 4s infinite alternate reverse;
    z-index: 0;
}

.login-content {
    position: relative;
    z-index: 1;
    color: var(--white);
}

.login-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.login-content p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-login {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    background-color: var(--white);
    color: var(--red);
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.btn-login:hover {
    background-color: var(--light-gray);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

@media (max-width: 768px) {
    .socio-form-card {
        padding: 1.5rem;
        margin: 1rem auto;
        border-radius: 12px;
    }
    
    .socio-form-card .form-group {
        margin-bottom: 1rem;
    }
    
    .socio-form-card .form-label {
        font-size: 0.9375rem;
    }
    
    .socio-form-card .form-input {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .socio-form-card .form-text-muted {
        font-size: 0.8rem;
    }
    
    .captcha-container {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    
    .login-section {
        padding: 3rem 0;
        margin-top: 2rem;
    }
    
    .login-content h2 {
        font-size: 2rem;
    }
    
    .login-content p {
        font-size: 1rem;
    }
    
    .btn-login {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Socios Form - Nuevo Diseño */
.socio-form-card {
    background: var(--dark-alt);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px var(--border),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.socio-form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--red-gradient);
    z-index: 1;
}

.form-header h2 {
    background: linear-gradient(135deg, var(--red) 0%, #ff4444 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.socio-form .form-group {
    margin-bottom: 1.75rem;
}

.socio-form .form-label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--text-light);
    font-size: 1rem;
}

.socio-form .form-label .required {
    color: var(--red);
    margin-left: 4px;
}

.socio-form .form-input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--border);
    border-radius: 12px;
    background-color: var(--dark);
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: var(--font-family);
}

.socio-form .form-input:focus {
    border-color: var(--red);
    outline: none;
    box-shadow: 0 0 0 3px rgba(225, 6, 19, 0.1);
    background-color: var(--dark-alt);
}

.socio-form .form-input.error {
    border-color: var(--red);
    background-color: rgba(225, 6, 19, 0.05);
}

.socio-form .form-input.success {
    border-color: #10b981;
}

.socio-form .form-text-muted {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    display: block;
}

.field-error {
    color: var(--red);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: none;
}

.field-check {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #10b981;
    font-weight: bold;
    font-size: 1.25rem;
    display: none;
}

.form-group {
    position: relative;
}

/* Password Strength Bar */
.password-strength {
    margin-top: 0.75rem;
}

.strength-bar {
    width: 100%;
    height: 6px;
    background: var(--dark);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.strength-fill {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.strength-fill.very-weak {
    background: #ef4444;
    width: 20%;
}

.strength-fill.weak {
    background: #f59e0b;
    width: 40%;
}

.strength-fill.medium {
    background: #eab308;
    width: 60%;
}

.strength-fill.strong {
    background: #10b981;
    width: 80%;
}

.strength-fill.very-strong {
    background: #059669;
    width: 100%;
}

.strength-text {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-align: right;
}


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

@media (max-width: 768px) {
    .socio-form-card {
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }
    
    .form-header h2 {
        font-size: 2rem;
    }
    
    .socio-form .form-group {
        margin-bottom: 1.5rem;
    }
    
    .socio-form .form-input {
        padding: 0.875rem 1rem;
        font-size: 0.9375rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .password-strength {
        margin-top: 0.5rem;
    }
}

/* Google Auth Button */
.btn-google-auth {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    font-size: 1rem;
}

.btn-google-auth:hover {
    background: #f5f5f5;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.btn-google-auth svg {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .btn-google-auth {
        width: 100%;
        padding: 0.875rem 1.25rem;
        font-size: 0.9375rem;
    }
}

/* Socio Register Layout */
.socio-register-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    max-width: 1400px;
    margin: 0 auto;
}

.socio-register-info {
    position: sticky;
    top: 90px;
}

.socio-register-title {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.socio-register-title-line {
    display: block;
}

.socio-register-title-accent {
    color: var(--red);
    font-weight: 700;
}

.socio-register-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.socio-register-benefits {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.socio-benefit-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--dark-alt);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.socio-benefit-item svg {
    flex-shrink: 0;
    color: var(--red);
}

.socio-benefit-item span {
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 500;
}

.socio-register-form {
    position: relative;
}

@media (max-width: 1024px) {
    .socio-register-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .socio-register-info {
        position: static;
    }
    
    .socio-register-title {
        font-size: 2.5rem;
    }
    
    .socio-register-subtitle {
        font-size: 1.125rem;
    }
}

@media (max-width: 768px) {
    .socio-register-layout {
        gap: 1.5rem;
    }
    
    .socio-register-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .socio-register-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .socio-register-benefits {
        gap: 1rem;
    }
    
    .socio-benefit-item {
        padding: 0.875rem;
    }
    
    .socio-benefit-item svg {
        width: 20px;
        height: 20px;
    }
    
    .socio-benefit-item span {
        font-size: 0.9375rem;
    }
}

/* Socio Login Wrapper - Sección "¿Ya sos socio?" */
.socio-login-wrapper {
    text-align: center;
    margin-bottom: 1.5rem;
}

.socio-login-text {
    margin: 0 0 1rem 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-light);
    font-family: var(--font-medium);
}

.socio-login-wrapper .btn-secondary {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.15) 0%, rgba(220, 38, 38, 0.08) 100%);
    border: 2px solid var(--red);
    color: var(--white);
    font-weight: 700;
    font-size: 1.125rem;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.2);
    position: relative;
    overflow: hidden;
}

.socio-login-wrapper .btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.socio-login-wrapper .btn-secondary:hover {
    background: linear-gradient(135deg, var(--red) 0%, #c91a1a 100%);
    border-color: var(--red);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.4);
}

.socio-login-wrapper .btn-secondary:hover::before {
    left: 100%;
}

.socio-login-wrapper .btn-secondary:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

@media (max-width: 768px) {
    .socio-login-text {
        font-size: 1rem;
    }
    
    .socio-login-wrapper .btn-secondary {
        font-size: 1rem;
        padding: 0.875rem 2rem;
        width: 100%;
    }
}

/* Sección de Alertas Compacta para cuenta.php */
.alerts-section-compact {
    padding: 1.5rem 0 1.5rem 0 !important;
    margin-bottom: 0 !important;
}

.alerts-section-compact .container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem;
}

.alerts-section-compact .alerts-banner {
    width: 100%;
    max-width: 100%;
    margin: 0;
}

/* Ajustar el banner para que coincida con dashboard-main */
.account-dashboard .alerts-section-compact .container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
}

.account-dashboard .alerts-section-compact .alerts-banner {
    grid-column: 2;
}

@media (max-width: 1024px) {
    .account-dashboard .alerts-section-compact .container {
        grid-template-columns: 1fr;
        padding: 0 1.5rem;
    }
    
    .account-dashboard .alerts-section-compact .alerts-banner {
        grid-column: 1;
    }
}

@media (max-width: 768px) {
    .dashboard-header .container {
        padding: 0 1rem;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }
    
    .alerts-section-compact .container {
        padding: 0 1rem;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }
    
    .account-dashboard .alerts-section-compact .container {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
    
    .account-dashboard .alerts-section-compact .alerts-banner {
        grid-column: 1;
        width: 100%;
        box-sizing: border-box;
    }
}
