/* ==========================================================================
   Base Styles & Variables
   ========================================================================== */
:root {
    --primary-color: #1E60A8;
    /* Logo blue */
    --primary-light: #2c7ac9;
    --primary-dark: #123e6e;
    --accent-color: #0ea5e9;
    /* Cyan accent for water feel */
    --text-main: #334155;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

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

body {
    font-family: var(--font-body);
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-light);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-dark);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.section-description {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 3rem auto;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 14px rgba(30, 96, 168, 0.39);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 96, 168, 0.4);
    color: white;
}

.btn-outline {
    background-color: transparent;
    color: white;
    border-color: white;
}

.btn-outline:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-light {
    background-color: white;
    color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

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

.btn-large {
    padding: 16px 36px;
    font-size: 1.125rem;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    padding: 15px 0;
}

.header.scrolled {
    padding: 10px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 95%;
    padding: 0 20px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    height: 50px;
    object-fit: contain;
    transition: var(--transition);
}

.brand-name {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary-color);
    letter-spacing: 0.5px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-name span {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.header-center {
    display: flex;
    align-items: center;
}

.header-title {
    font-size: 1.25rem;
    color: var(--primary-dark);
    font-weight: 600;
    margin: 0;
}

.header.scrolled .logo {
    height: 40px;
}

.header.scrolled .brand-name {
    font-size: 1.25rem;
}

.header.scrolled .brand-name span {
    font-size: 0.7rem;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-weight: 600;
    color: var(--text-main);
    transition: var(--transition);
    position: relative;
}

.nav-link:not(.btn-primary)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:not(.btn-primary):hover::after {
    width: 100%;
}

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

.nav-link.nav-btn-tienda::after {
    display: none;
}

.nav-link.nav-btn-tienda:hover {
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(30, 96, 168, 0.4) !important;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-dark);
    cursor: pointer;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Pattern overlay for texture */
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.35;
    z-index: 1;
    pointer-events: none;
}

.hero-carousel-slides {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-bg-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 0.9s ease-in-out, transform 6s ease-out;
}

.hero-bg-slide.active {
    opacity: 1;
    transform: scale(1);
}

.hero-bg-slide-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.main-hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #ffffff;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(6px);
    transition: all 0.25s ease;
}

.main-hero-arrow:hover {
    background: rgba(255, 255, 255, 0.32);
    transform: translateY(-50%) scale(1.08);
}

.main-hero-arrow.prev {
    left: 24px;
}

.main-hero-arrow.next {
    right: 24px;
}

.main-hero-dots {
    position: absolute;
    bottom: 92px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 10px;
}

.main-hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
}

.main-hero-dot.active {
    width: 28px;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.8);
}

@media (max-width: 768px) {
    .main-hero-arrow {
        width: 38px;
        height: 38px;
        font-size: 0.95rem;
    }
    .main-hero-arrow.prev {
        left: 10px;
    }
    .main-hero-arrow.next {
        right: 10px;
    }
    .main-hero-dots {
        bottom: 72px;
    }
}

.hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: white;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-title {
    font-size: 4rem;
    color: white;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-out;
}

.hero-title span {
    color: #e0f2fe;
    /* Light cyan accent */
    text-shadow: 0 0 20px rgba(14, 165, 233, 0.5);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease-out 0.2s both;
}

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

.wave-divider {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 2;
}

.wave-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}

.wave-divider .shape-fill {
    fill: var(--bg-light);
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.section {
    padding: 100px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

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

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1) rotate(5deg);
}

.service-icon-img {
    width: 46px;
    height: 46px;
    object-fit: contain;
    display: block;
    transition: var(--transition);
}

.service-card:hover .service-icon.custom-icon,
.service-card:hover .service-icon:has(.service-icon-img) {
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(30, 96, 168, 0.25);
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-text {
    color: var(--text-muted);
}

/* ==========================================================================
   About Us Section (#nosotros)
   ========================================================================== */
.about {
    background-color: var(--bg-white);
    position: relative;
}

.about-intro-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    background-color: rgba(30, 96, 168, 0.08);
    color: var(--primary-color);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    border: 1px solid rgba(30, 96, 168, 0.15);
}

/* Mission & Vision Cards */
.mv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 70px;
}

.mv-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px 35px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(30, 96, 168, 0.1);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.mv-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.mv-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(30, 96, 168, 0.25);
}

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

.mv-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
}

.mv-icon {
    width: 64px;
    height: 64px;
    min-width: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: 0 8px 18px rgba(30, 96, 168, 0.25);
    transition: var(--transition);
}

.mv-card:hover .mv-icon {
    transform: scale(1.08) rotate(4deg);
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
}

.mv-title {
    font-size: 2rem;
    color: var(--primary-dark);
}

.mv-body p {
    color: var(--text-main);
    font-size: 1.05rem;
    line-height: 1.75;
    margin-bottom: 16px;
}

.mv-body p:last-child {
    margin-bottom: 0;
}

.mv-footer {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.mv-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background-color: #f0f9ff;
    color: var(--primary-color);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 30px;
    border: 1px solid #bae6fd;
}

/* Values Subsection */
.values-wrapper {
    margin-top: 20px;
    padding-top: 20px;
}

.values-header {
    text-align: center;
    margin-bottom: 50px;
}

.values-title {
    font-size: 2.25rem;
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}

.values-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.values-description {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 650px;
    margin: 0 auto;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.value-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 32px 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.value-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(30, 96, 168, 0.2);
}

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

.value-card.highlight-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border-color: rgba(30, 96, 168, 0.15);
}

.value-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    color: var(--primary-color);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 20px;
    transition: var(--transition);
}

.value-card:hover .value-icon {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 15px rgba(30, 96, 168, 0.25);
}

.value-title {
    font-size: 1.25rem;
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.value-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ==========================================================================
   CTA Banner
   ========================================================================== */
.cta-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.cta-banner::after {
    content: '';
    position: absolute;
    right: -10%;
    top: -50%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
}

.cta-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.cta-text h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.cta-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    max-width: 600px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: #0f172a;
    color: #94a3b8;
    padding-top: 80px;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.5rem;
}

.footer-logo {
    height: 50px;
    object-fit: contain;
}

.footer-logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: white;
    letter-spacing: 0.5px;
}

.footer-about {
    margin-bottom: 1.5rem;
    max-width: 400px;
}

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

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

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

.footer-heading {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.footer-links li,
.contact-info li {
    margin-bottom: 1rem;
}

.footer-links a {
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.contact-info i {
    color: var(--primary-light);
    margin-top: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px 0;
    text-align: center;
    font-size: 0.875rem;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    visibility: hidden;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, visibility;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
    visibility: visible;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }

    .cta-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .cta-text p {
        margin: 0 auto;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: white;
        flex-direction: column;
        transition: 0.4s ease;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        padding: 40px 20px;
        gap: 30px;
        width: 100%;
        text-align: center;
    }

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

    .hero-buttons {
        flex-direction: column;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .mv-card {
        padding: 30px 22px;
    }

    .mv-title {
        font-size: 1.6rem;
    }

    .values-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

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

    .mv-card {
        padding: 24px 18px;
    }

    .mv-header {
        gap: 14px;
    }

    .mv-icon {
        width: 50px;
        height: 50px;
        min-width: 50px;
        font-size: 1.4rem;
        border-radius: 12px;
    }

    .values-title {
        font-size: 1.5rem;
    }
}

/* ==========================================================================
   Login Modal Styles
   ========================================================================== */
.login-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.login-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.login-modal-container {
    background: var(--bg-white);
    width: 90%;
    max-width: 420px;
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0,0,0,0.05);
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.login-modal-overlay.active .login-modal-container {
    transform: translateY(0) scale(1);
}

.close-modal-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #f1f5f9;
    border: none;
    color: var(--text-muted);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition);
}

.close-modal-btn:hover {
    background: #e2e8f0;
    color: var(--text-main);
    transform: rotate(90deg);
}

.login-modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-modal-header h3 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    color: var(--primary-dark);
    margin-bottom: 8px;
    font-weight: 800;
}

.login-modal-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.9rem;
}

.login-form input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
    background: #f8fafc;
}

.login-form input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15);
    background: var(--bg-white);
}

.login-submit-btn {
    width: 100%;
    margin-top: 10px;
    padding: 16px;
    font-size: 1.05rem;
    border-radius: 12px;
}

.login-error-msg {
    color: #ef4444;
    font-size: 0.85rem;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 600;
    min-height: 20px;
}