/* Modern Reset & Variables */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;700;800&display=swap');
@import 'variables.css';

:root {
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --shadow-soft: 0 10px 40px -10px rgba(137, 0, 79, 0.15);
    --shadow-hover: 0 20px 50px -10px rgba(137, 0, 79, 0.25);
    --gradient-primary: linear-gradient(135deg, var(--color-primary-medium) 0%, var(--color-primary-dark) 100%);
    --gradient-soft: linear-gradient(135deg, #fff0f5 0%, #ffffff 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: #fdfbfd;
    /* Base muy sutilmente rosada/blanca */
    background-image:
        radial-gradient(circle at 10% 20%, rgba(255, 168, 217, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(137, 0, 79, 0.05) 0%, transparent 40%);
    color: var(--color-gray-800);
    line-height: 1.7;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--color-primary-dark);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

/* Utilities Modernos */
.container {
    width: 90%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section-padding {
    padding: 5rem 0;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--shadow-soft);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

/* Buttons con Estilo */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    letter-spacing: 0.03em;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(195, 59, 128, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(195, 59, 128, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--color-primary-medium);
    border: 1px solid rgba(195, 59, 128, 0.2);
}

.btn-secondary:hover {
    border-color: var(--color-primary-medium);
    background: #fff5f9;
}

/* Animations */
.animate-entry {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.animate-entry.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(195, 59, 128, 0.4);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(195, 59, 128, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(195, 59, 128, 0);
    }
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* Staggered delays for child elements if needed, though HTML style tags handle specific delays */
.delay-100 {
    transition-delay: 100ms;
}

.delay-200 {
    transition-delay: 200ms;
}

.delay-300 {
    transition-delay: 300ms;
}

/* Header & Navigation Modernized (Floating Glass Design) */
.site-header {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 3rem);
    max-width: 1200px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    padding: 0.75rem 0;
    z-index: 1000;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header.scrolled {
    top: 0;
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.6rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo-text {
    font-weight: 800;
    font-size: 1.4rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform 0.3s ease;
}

.logo-text:hover {
    transform: scale(1.02);
}

.main-nav ul {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
}

.nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-gray-700);
    text-decoration: none;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--color-primary-dark);
}

/* Sophisticated Underline Animation */
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 50%;
    background: var(--gradient-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
    border-radius: 4px;
}

.nav-link:hover::after {
    width: 20px;
}

/* Special Admin Link Style */
.nav-link-admin {
    font-size: 0.8rem;
    opacity: 0.7;
    background: var(--color-gray-100);
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--color-gray-200);
    transition: all 0.3s ease;
}

.nav-link-admin:hover {
    opacity: 1;
    background: white;
    border-color: var(--color-primary-medium);
    color: var(--color-primary-dark);
}

/* Call to Action Button in Nav */
.nav-cta {
    padding: 0.7rem 1.5rem !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    border-radius: 50px !important;
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, minmax(250px, auto));
    gap: 1.5rem;
}

.bento-item {
    position: relative;
    overflow: hidden;
}

.bento-large {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-tall {
    grid-row: span 2;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .bento-large,
    .bento-tall {
        grid-column: span 1;
        grid-row: span 1;
    }

    .hero-title {
        font-size: 2.5rem;
    }
}