/* Color Palette:
 * Primary: #28a9e2
 * Dark: #0e4165
 * Light: #add6e8
 * Gray: #67889e
 */

/* Welcome Toast Styles */
.welcome-toast {
    position: fixed;
    bottom: 30px;
    left: 30px;
    transform: translateX(-20px);
    background: linear-gradient(135deg, rgba(14, 65, 101, 0.95) 0%, rgba(40, 169, 226, 0.95) 100%);
    backdrop-filter: blur(10px);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    box-shadow: 
        0 4px 20px rgba(14, 65, 101, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 350px;
}

.welcome-toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.welcome-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.welcome-icon {
    font-size: 22px;
    animation: wave 1.5s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(15deg); }
    75% { transform: rotate(-10deg); }
}

.welcome-text {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.welcome-greeting {
    font-size: 14px;
    opacity: 0.95;
    font-weight: 400;
}

.welcome-name {
    font-size: 14px;
    font-weight: 700;
    background: linear-gradient(90deg, #fff 0%, #a8e0ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

:root {
    --primary: #28a9e2;
    --dark: #0e4165;
    --light: #add6e8;
    --gray: #67889e;
    --white: #ffffff;
    --text-dark: #1a1a1a;
    --text-light: #4a5568;
    --shadow-sm: 0 2px 8px rgba(14, 65, 101, 0.08);
    --shadow-md: 0 4px 16px rgba(14, 65, 101, 0.12);
    --shadow-lg: 0 8px 32px rgba(14, 65, 101, 0.16);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f0f9ff 100%);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 20%, rgba(40, 169, 226, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(14, 65, 101, 0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* Header Styles */
@keyframes headerShimmer {
    0% { background-position: 200% center; }
    100% { background-position: -200% center; }
}

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

.main-header {
    background: linear-gradient(135deg, #0a2540 0%, var(--dark) 40%, var(--primary) 100%);
    box-shadow: 0 4px 24px rgba(14, 65, 101, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(12px);
    border-bottom: none;
    animation: fadeInDown 0.6s ease-out;
}

.main-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3) 20%, 
        rgba(255, 255, 255, 0.5) 50%, 
        rgba(255, 255, 255, 0.3) 80%, 
        transparent);
    background-size: 200% 100%;
    animation: headerShimmer 8s linear infinite;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    gap: 32px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo {
    height: 48px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: var(--transition);
}

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

.location-badge {
    background: linear-gradient(135deg, rgba(40, 169, 226, 0.4) 0%, rgba(14, 65, 101, 0.3) 100%);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    border: none;
    box-shadow: 0 2px 12px rgba(40, 169, 226, 0.25);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: uppercase;
}

.location-badge:hover {
    background: linear-gradient(135deg, rgba(40, 169, 226, 0.6) 0%, rgba(14, 65, 101, 0.4) 100%);
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 169, 226, 0.35);
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    gap: 6px;
    flex: 1;
    justify-content: center;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    background: transparent;
    border: none;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.nav-item:not(.dropdown-trigger) {
    overflow: hidden;
}

.nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.4s ease;
    transform: scale(0.95);
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    transition: width 0.4s ease, left 0.4s ease;
    border-radius: 2px;
}

.nav-item:hover {
    color: var(--white);
    transform: translateY(-3px);
}

.nav-item:hover::before {
    opacity: 1;
    transform: scale(1);
}

.nav-item:hover::after {
    width: 80%;
    left: 10%;
}

.nav-item:active {
    transform: translateY(-1px) scale(0.98);
}

.nav-item span {
    white-space: nowrap;
    position: relative;
    z-index: 1;
}

.nav-item svg {
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.nav-item:hover svg {
    transform: scale(1.15);
}

.dropdown-icon {
    margin-left: 4px;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.nav-item.active .dropdown-icon {
    transform: rotate(180deg);
}

.nav-menu .dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 12px 48px rgba(14, 65, 101, 0.2);
    padding: 8px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 1000;
    border: 1px solid rgba(40, 169, 226, 0.1);
    display: block !important;
    float: none !important;
}

.nav-menu .dropdown-trigger.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu .dropdown-menu a {
    display: flex !important;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition);
    font-size: 14px;
    white-space: nowrap;
}

.nav-menu .dropdown-menu a svg {
    color: var(--primary);
    flex-shrink: 0;
}

.nav-menu .dropdown-menu a:hover {
    background: var(--light);
    color: var(--primary);
    transform: translateX(4px);
}

.nav-menu .dropdown-menu a:hover svg {
    color: var(--dark);
}

/* User Section */
.user-section {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px 6px 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 30px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.user-info:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    transform: translateY(-2px);
}

.user-name {
    color: var(--white);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.3px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.user-info:hover .user-avatar {
    transform: scale(1.1);
    border-color: var(--white);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.notifications-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.notifications-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.notifications-btn:hover {
    color: var(--white);
    transform: translateY(-2px) scale(1.05);
}

.notifications-btn:hover::before {
    opacity: 1;
}

.notifications-btn svg {
    position: relative;
    z-index: 1;
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(255, 68, 68, 0.4);
    animation: pulse 2s infinite;
}

.notification-badge:empty {
    display: none;
}

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

.notifications-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 12px 48px rgba(14, 65, 101, 0.2);
    width: 380px;
    max-height: 500px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    border: 1px solid rgba(40, 169, 226, 0.1);
    z-index: 1001;
}

.notifications-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.notifications-header {
    padding: 20px 24px;
    border-bottom: 2px solid var(--light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f8fbfd 0%, #ffffff 100%);
}

.notifications-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
}

.mark-all-read {
    background: transparent;
    border: none;
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    transition: var(--transition);
}

.mark-all-read:hover {
    background: rgba(40, 169, 226, 0.1);
    transform: scale(1.05);
}

.notifications-list {
    max-height: 400px;
    overflow-y: auto;
}

.notifications-list::-webkit-scrollbar {
    width: 6px;
}

.notifications-list::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.notifications-list::-webkit-scrollbar-thumb {
    background: var(--light);
    border-radius: 3px;
}

.notifications-list::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

.notification-item {
    padding: 16px 24px;
    border-bottom: 1px solid rgba(40, 169, 226, 0.05);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.notification-item:hover {
    background: linear-gradient(135deg, rgba(40, 169, 226, 0.05) 0%, rgba(14, 65, 101, 0.02) 100%);
}

.notification-item.unread {
    background: linear-gradient(135deg, rgba(40, 169, 226, 0.08) 0%, rgba(14, 65, 101, 0.04) 100%);
}

.notification-item.unread::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
}

.notification-content {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.notification-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(40, 169, 226, 0.3);
}

.notification-text {
    flex: 1;
}

.notification-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 4px;
}

.notification-message {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 4px;
}

.notification-time {
    font-size: 12px;
    color: var(--gray);
}

.notifications-empty {
    padding: 60px 24px;
    text-align: center;
    color: var(--gray);
}

.notifications-empty svg {
    margin-bottom: 16px;
    opacity: 0.5;
}

.notifications-empty p {
    font-size: 14px;
    color: var(--text-light);
}

.logout-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.logout-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 100, 100, 0.2) 0%, rgba(255, 50, 50, 0.1) 100%);
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.logout-btn:hover {
    color: #ff6b6b;
    transform: translateY(-2px) scale(1.08);
}

.logout-btn:hover::before {
    opacity: 1;
}

.logout-btn svg {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.logout-btn:hover svg {
    transform: translateX(2px);
}

/* Main Content */
.main-content {
    padding: 40px 0;
    min-height: calc(100vh - 400px);
}

/* Hero Section */
.hero-section {
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease-out;
}

.hero-image {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    height: 400px;
    box-shadow: 0 20px 60px rgba(14, 65, 101, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.hero-image:hover .hero-img {
    transform: scale(1.05);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(14, 65, 101, 0.85) 0%, rgba(40, 169, 226, 0.75) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
}

.hero-logo {
    max-width: 500px;
    width: 90%;
    height: auto;
    margin-bottom: 5px;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.3));
    animation: fadeInDown 0.8s ease-out 0.2s both;
    transition: var(--transition);
}

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

.hero-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.95);
    margin-top: -5px;
    margin-bottom: 10px;
    font-weight: 400;
    animation: fadeInDown 0.8s ease-out 0.4s both;
}

.yucatan-map-logo {
    position: absolute;
    top: 50%;
    right: 100px;
    transform: translateY(-50%);
    width: 260px;
    height: auto;
    filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.3));
    transition: var(--transition);
    opacity: 0.9;
    animation: fadeInRight 0.8s ease-out 0.6s both;
}

.yucatan-map-logo:hover {
    transform: translateY(-50%) scale(1.05);
    opacity: 1;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(30px);
    }
    to {
        opacity: 0.9;
        transform: translateY(-50%) translateX(0);
    }
}

.hero-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: var(--white);
    padding: 10px 32px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

/* Stats Section */
.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--white);
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(14, 65, 101, 0.08);
    display: flex;
    align-items: center;
    gap: 24px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(40, 169, 226, 0.1);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary) 0%, var(--dark) 100%);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(14, 65, 101, 0.15);
    border-color: rgba(40, 169, 226, 0.3);
}

.stat-card:hover::before {
    width: 100%;
    opacity: 0.05;
}

.stat-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #e0f2fe 0%, var(--light) 50%, var(--primary) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    flex-shrink: 0;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(40, 169, 226, 0.15);
}

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

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 40px;
    font-weight: 800;
    color: var(--dark);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--gray);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
    margin-bottom: 40px;
    align-items: stretch;
}

/* Section Card Styles */
.pendientes-section,
.birthday-section {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(14, 65, 101, 0.08);
    padding: 32px;
    transition: var(--transition);
    border: 1px solid rgba(40, 169, 226, 0.1);
}

/* Pendientes Items */
.pendiente-item {
    background: var(--white);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 12px;
    border: 1px solid rgba(40, 169, 226, 0.1);
    transition: var(--transition);
}

.pendiente-item:hover {
    box-shadow: 0 4px 20px rgba(40, 169, 226, 0.15);
    transform: translateY(-2px);
}

.pendiente-item.completed {
    opacity: 0.6;
    background: rgba(103, 136, 158, 0.05);
}

.pendiente-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.pendiente-checkbox {
    position: relative;
    flex-shrink: 0;
}

.pendiente-check {
    appearance: none;
    width: 24px;
    height: 24px;
    border: 2px solid rgba(40, 169, 226, 0.3);
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.pendiente-check:hover {
    border-color: var(--primary);
}

.pendiente-check:checked {
    background: linear-gradient(135deg, var(--primary) 0%, #1e90d8 100%);
    border-color: var(--primary);
}

.pendiente-check:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 16px;
    font-weight: bold;
}

.pendiente-content {
    flex: 1;
    min-width: 0;
}

.pendiente-titulo {
    margin: 0 0 6px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
}

.pendiente-item.completed .pendiente-titulo {
    text-decoration: line-through;
    color: rgba(14, 65, 101, 0.5);
}

.pendiente-descripcion {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #67889e;
    line-height: 1.5;
}

.pendiente-fecha {
    color: rgba(103, 136, 158, 0.7);
    font-size: 12px;
}

.pendiente-delete {
    background: transparent;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: var(--transition);
    opacity: 0;
}

.pendiente-item:hover .pendiente-delete {
    opacity: 1;
}

.pendiente-delete:hover {
    background: rgba(231, 76, 60, 0.1);
    transform: scale(1.1);
}

.pendientes-section:hover,
.birthday-section:hover {
    box-shadow: 0 12px 40px rgba(14, 65, 101, 0.15);
    border-color: rgba(40, 169, 226, 0.3);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--light);
}

.section-header h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
}

.section-header h2 svg {
    color: var(--primary);
    filter: drop-shadow(0 2px 4px rgba(40, 169, 226, 0.2));
}

.date-badge {
    background: var(--light);
    color: var(--dark);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* Pendientes List */
.pendientes-list {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.pendientes-list::-webkit-scrollbar {
    width: 6px;
}

.pendientes-list::-webkit-scrollbar-track {
    background: var(--light);
    border-radius: 10px;
}

.pendientes-list::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.add-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary) 0%, #1e88c7 50%, var(--dark) 100%);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(40, 169, 226, 0.3);
}

.add-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(40, 169, 226, 0.5);
}

/* Birthday Section */
.month-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.month-nav-btn {
    background: var(--light);
    border: none;
    color: var(--dark);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 6px rgba(40, 169, 226, 0.1);
}

.month-nav-btn:hover {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(40, 169, 226, 0.3);
}

.month-nav strong {
    color: var(--dark);
    font-size: 14px;
    min-width: 70px;
    text-align: center;
}

.birthday-list {
    max-height: 400px;
    overflow-y: auto;
}

.birthday-list::-webkit-scrollbar {
    width: 6px;
}

.birthday-list::-webkit-scrollbar-track {
    background: var(--light);
    border-radius: 10px;
}

.birthday-list::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--gray);
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--light);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-state p {
    margin-top: 16px;
    font-size: 14px;
}

/* Footer */
.main-footer {
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
    color: var(--white);
    padding: 60px 0 24px;
    margin-top: 80px;
}

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

.footer-brand p {
    color: var(--light);
    margin-top: 16px;
    line-height: 1.8;
}

.footer-logo {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-links h3,
.footer-social h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--white);
    font-weight: 700;
}

.footer-links a {
    display: block;
    color: var(--light);
    text-decoration: none;
    margin-bottom: 12px;
    transition: var(--transition);
    font-size: 14px;
}

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

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-4px);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom p {
    color: var(--light);
    font-size: 14px;
}

.footer-bottom a {
    color: var(--white);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.footer-bottom a:hover {
    color: var(--light);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(14, 65, 101, 0.8);
    backdrop-filter: blur(8px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: fadeIn 0.3s ease-out;
}

.modal.show {
    display: flex;
}

.modal-dialog {
    max-width: 500px;
    width: 100%;
    animation: slideUp 0.3s ease-out;
}

.modal-content {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    background: linear-gradient(135deg, var(--light) 0%, var(--primary) 100%);
    border-bottom: 1px solid var(--light);
}

.modal-header h5 {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--dark);
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: var(--transition);
}

.modal-close:hover {
    background: rgba(14, 65, 101, 0.1);
    transform: rotate(90deg);
}

.modal-body {
    padding: 32px 24px;
}

.modal-body label {
    display: block;
    margin-bottom: 8px;
    color: var(--dark);
    font-weight: 600;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--light);
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
    transition: var(--transition);
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(40, 169, 226, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding: 24px;
    background: #f8f9fa;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary {
    background: var(--gray);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--dark);
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(40, 169, 226, 0.4);
}

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

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

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

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

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-logo {
        max-width: 400px;
    }

    .hero-subtitle {
        font-size: 18px;
    }
}

@media (max-width: 992px) {
    .nav-menu {
        flex-wrap: wrap;
    }

    .nav-item span {
        display: none;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-cards-grid {
        min-height: 400px;
    }

    .hero-image {
        height: 300px;
    }

    .hero-logo {
        max-width: 320px;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
        gap: 16px;
    }

    .nav-menu {
        order: 3;
        width: 100%;
        justify-content: space-around;
    }

    .stats-section {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }

    .stat-card {
        padding: 24px;
    }

    .stat-value {
        font-size: 32px;
    }

    .hero-image {
        height: 250px;
    }

    .hero-logo {
        max-width: 280px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .yucatan-map-logo {
        width: 180px;
        right: 40px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* Navigation Cards Section */
.nav-cards-section {
    grid-column: 1;
    display: flex;
    flex-direction: column;
}

.nav-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 16px;
    height: 100%;
    flex: 1;
    grid-template-areas:
        "vertical horiz1 square"
        "vertical horiz2 square";
}

.nav-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    display: block;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.6s ease-out calc(var(--delay, 0s)) both;
}

.nav-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

/* Asymmetric card sizes */
.nav-card-vertical {
    grid-area: vertical;
}

.nav-card-horiz1 {
    grid-area: horiz1;
}

.nav-card-horiz2 {
    grid-area: horiz2;
}

.nav-card-square {
    grid-area: square;
}

.nav-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.nav-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.nav-card:hover .nav-card-image img {
    transform: scale(1.1);
}

.nav-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    transition: all 0.4s ease;
}

.nav-card:hover .nav-card-overlay {
    background: rgba(0, 0, 0, 0.1);
}

.nav-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 20px;
    z-index: 2;
    background: linear-gradient(0deg, rgba(14, 65, 101, 0.9) 0%, transparent 100%);
}

.nav-card-title {
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: white;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.8);
    letter-spacing: 4px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
}

.nav-card-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: white;
    transition: width 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.5);
}

.nav-card:hover .nav-card-title {
    transform: scale(1.15);
    letter-spacing: 6px;
}

.nav-card:hover .nav-card-title::after {
    width: 70%;
}

/* Ciclos card with 3 buttons */
.nav-card-ciclos {
    cursor: default;
}

.nav-card-ciclos .nav-card-overlay {
    background: rgba(0, 0, 0, 0.45);
}

.nav-card-ciclos:hover .nav-card-overlay {
    background: rgba(0, 0, 0, 0.55);
}

.ciclos-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
}

.ciclo-btn {
    display: block;
    background: transparent;
    color: white;
    text-decoration: none;
    padding: 16px 24px;
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 4px;
    border: none;
    transition: all 0.3s ease;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.8);
    position: relative;
}

.ciclo-btn::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: white;
    transition: width 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.5);
}

.ciclo-btn:hover {
    transform: scale(1.15);
    letter-spacing: 6px;
}

.ciclo-btn:hover::after {
    width: 70%;
}

/* Pendientes Section Wide */
.pendientes-section-wide {
    background: var(--white);
    padding: 28px 32px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    margin-bottom: 32px;
    border: 1px solid rgba(40, 169, 226, 0.1);
    transition: var(--transition);
}

.pendientes-section-wide:hover {
    box-shadow: var(--shadow-lg);
}

.pendientes-list-wide {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    min-height: 50px;
}

.pendientes-list-wide .pendiente-item {
    flex: 1 1 calc(33% - 12px);
    min-width: 280px;
    background: linear-gradient(135deg, rgba(40, 169, 226, 0.05) 0%, rgba(14, 65, 101, 0.03) 100%);
    padding: 16px 20px;
    border-radius: 12px;
    border: 1px solid rgba(40, 169, 226, 0.15);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
}

.pendientes-list-wide .pendiente-item:hover {
    background: linear-gradient(135deg, rgba(40, 169, 226, 0.1) 0%, rgba(14, 65, 101, 0.06) 100%);
    border-color: var(--primary);
}

.pendientes-list-wide .pendiente-item .pendiente-delete {
    margin-left: auto;
    flex-shrink: 0;
}

@media (max-width: 576px) {
    .container {
        padding: 0 16px;
    }

    .main-content {
        padding: 24px 0;
    }

    .pendientes-section,
    .birthday-section {
        padding: 24px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .stats-section {
        grid-template-columns: 1fr;
    }

    .stat-card {
        flex-direction: column;
        text-align: center;
    }

    .yucatan-map-logo {
        width: 130px;
        right: 20px;
    }

    .nav-cards-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        height: auto;
        grid-template-areas:
            "vertical horiz1"
            "horiz2 square";
    }

    .nav-card {
        min-height: 180px;
    }

    .ciclos-content {
        width: 90%;
    }
    
    .ciclo-btn {
        font-size: 14px;
        padding: 10px 16px;
    }
}

@media (max-width: 576px) {
    .nav-cards-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "vertical"
            "horiz1"
            "horiz2"
            "square";
    }
    
    .nav-card {
        min-height: 160px;
    }

    .pendientes-list-wide .pendiente-item {
        flex: 1 1 100%;
    }
}
