/* ======================================================
   PETHEALTH - DESIGN SYSTEM
   Blanco perlado + amarillo + Azul Agua Marina Oscuro
   ====================================================== */

:root {
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Montserrat', sans-serif;

    /* Paleta corporativa */
    --primary-fuscia: #141513;
    --primary-fuscia-dark: #101c0a;
    --primary-fuscia-light: #f83ecf;
    --primary-aqua: #92f68b;
    --primary-aqua-dark: #c0f4a1;
    --primary-aqua-light: #fd94ee;

    --gradient-main: linear-gradient(135deg, #f477d7 0%, #f39fd9 100%);
    --gradient-fuscia: linear-gradient(135deg, #f792d0 0%, #90ffa3 100%);

    /* Fondos perlados */
    --bg-pearl: #e0f6e0;
    --bg-pearl-2: #dafbba;
    --bg-card: #f699ea;
    --bg-card-hover: #aefa93;
    --bg-input: #ff62c5;

    --border-color: rgba(248, 157, 239, 0.64);
    --border-fuscia-glow: rgba(142, 244, 135, 0.25);
    --border-aqua-glow: rgba(13, 92, 99, 0.25);

    --text-main: #0f090e;
    --text-muted: #284b33;
    --text-dark: #0a0a0a;

    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(8, 8, 10, 0.6);
    --glass-blur: blur(20px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: var(--font-body);
    background-color: var(--bg-pearl);
    color: var(--text-main);
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    position: relative;
    background: 
        radial-gradient(circle at 10% 10%, rgba(255, 45, 120, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(13, 92, 99, 0.06) 0%, transparent 40%),
        var(--bg-pearl);
}

a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }

/* ======================================================
   SPLASH
   ====================================================== */
.splash {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: linear-gradient(135deg, #faf7f5 0%, #f5f0ec 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
.splash.splash-out {
    opacity: 0;
    visibility: hidden;
}
.splash-content {
    text-align: center;
    animation: splashFadeIn 0.8s ease;
}
@keyframes splashFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.splash-logo {
    font-size: 96px;
    margin-bottom: 12px;
    animation: floating 2.5s ease-in-out infinite;
}
.splash-title {
    font-family: var(--font-heading);
    font-size: 52px;
    font-weight: 900;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}
.splash-slogan {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
    margin-top: 8px;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.splash-loader {
    margin-top: 32px;
    width: 120px;
    height: 4px;
    background: rgba(13, 92, 99, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-left: auto;
    margin-right: auto;
}
.splash-loader span {
    display: block;
    height: 100%;
    width: 40%;
    background: var(--gradient-main);
    border-radius: 4px;
    animation: splashLoad 1.4s ease-in-out infinite;
}
@keyframes splashLoad {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(300%); }
}

@keyframes floating {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* ======================================================
   GLOWS AMBIENTALES
   ====================================================== */
.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}
.glow-1 { width: 400px; height: 400px; background: #ff2d78; top: -100px; left: -100px; }
.glow-2 { width: 500px; height: 500px; background: #8fed9a; bottom: -150px; right: -150px; }
.glow-3 { width: 300px; height: 300px; background: #ff5c8a; top: 50%; left: 40%; opacity: 0.15; }

/* ======================================================
   TOAST
   ====================================================== */
.toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}
.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 22px;
    background: white;
    border: 1px solid var(--primary-fuscia);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(249, 138, 177, 0.853);
    color: var(--text-main);
    font-size: 13px;
    font-weight: 700;
    animation: toastIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    pointer-events: auto;
}
.toast.toast-out { animation: toastOut 0.3s ease forwards; }
@keyframes toastIn {
    from { opacity: 0; transform: translateY(20px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes toastOut {
    to { opacity: 0; transform: translateX(100px); }
}

/* ======================================================
   LOGIN / REGISTRO
   ====================================================== */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
    position: relative;
    z-index: 2;
}
.login-wrapper {
    width: 1080px;
    max-width: 100%;
    min-height: 640px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    border-radius: 28px;
    overflow: hidden;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    box-shadow: 0 30px 80px rgba(169, 239, 158, 0.955), 0 0 1px rgba(0, 0, 0, 0.1);
}
.login-wrapper.single {
    grid-template-columns: 1fr;
    max-width: 620px;
    min-height: auto;
}

.login-presentation {
    padding: 50px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(245, 240, 236, 0.95)),
                radial-gradient(circle at 30% 70%, rgba(249, 160, 191, 0.868), transparent 60%);
    border-right: 1px solid var(--glass-border);
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}
.brand-logo {
    font-size: 36px;
    filter: drop-shadow(0 5px 10px rgba(253, 126, 170, 0.918));
}
.brand-name {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-main);
}
.brand-name strong {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.presentation-content h1 {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    margin: 18px 0;
    color: var(--text-main);
}
.presentation-content h1 strong {
    display: block;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.presentation-content p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
    max-width: 480px;
}
.eyebrow-badge {
    display: inline-block;
    color: var(--primary-fuscia);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    background: rgba(255, 45, 120, 0.08);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(249, 149, 184, 0.868);
}
.food-preview {
    display: flex;
    gap: 14px;
    margin-top: 35px;
}
.food-item {
    flex: 1;
    padding: 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(13, 92, 99, 0.08);
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.food-item:hover {
    transform: translateY(-4px);
    border-color: var(--primary-fuscia);
    background: rgba(255, 45, 120, 0.04);
}
.food-item span { font-size: 36px; }
.food-item p {
    margin-top: 8px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-main);
}

.login-box {
    padding: 50px 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: white;
}
.login-box.wide { padding: 55px 50px; }
.login-icon {
    display: inline-flex;
    align-items: center;
    margin-bottom: 16px;
    font-size: 64px;
    line-height: 1;
}
.login-box h2 {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    color: var(--text-main);
}
.login-description {
    color: var(--text-muted);
    font-size: 13px;
    margin: 6px 0 25px;
}
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-main);
}
.input-container {
    display: flex;
    align-items: center;
    height: 52px;
    padding: 0 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
}
.input-container:focus-within {
    border-color: var(--primary-fuscia);
    box-shadow: 0 0 0 4px rgba(246, 165, 193, 0.965);
    background: rgb(0, 0, 0);
}
.input-icon { margin-right: 12px; font-size: 16px; }
.input-container input,
.input-container select {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
}
.input-container select { cursor: pointer; }
.show-password {
    border: none;
    background: transparent;
    font-size: 16px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}
.show-password:hover { opacity: 1; }

.login-btn {
    width: 100%;
    height: 54px;
    border: none;
    border-radius: 12px;
    background: var(--gradient-main);
    color: white;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(143, 245, 137, 0.874);
    margin-top: 8px;
}
.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(171, 246, 182, 0.908);
}
.login-btn:disabled { opacity: 0.7; cursor: wait; }
.login-btn .btn-arrow { font-size: 18px; transition: transform 0.2s ease; }
.login-btn:hover .btn-arrow { transform: translateX(4px); }

#login-message, #registro-message, #mascota-message, #evento-message {
    text-align: center;
    min-height: 20px;
    margin-top: 12px;
    font-size: 12px;
    font-weight: 700;
}
.register-text {
    text-align: center;
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 22px;
}
.register-text a {
    color: var(--primary-fuscia);
    font-weight: 700;
}
.register-text a:hover { text-decoration: underline; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* ======================================================
   NAVBAR
   ====================================================== */
.navbar {
    height: 80px;
    padding: 0 6%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(15px);
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo-icon {
    font-size: 28px;
    filter: drop-shadow(0 4px 10px rgba(168, 246, 150, 0.926));
}
.logo-text {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
}
.logo-text strong {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.navbar nav {
    display: flex;
    gap: 32px;
}
.navbar nav a {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 700;
    transition: color 0.3s ease;
    position: relative;
}
.navbar nav a:hover, .navbar nav a.active { color: var(--primary-fuscia); }
.navbar nav a.active::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-main);
    border-radius: 2px;
}
.nav-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}
.cart-button {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 10px 20px;
    border: none;
    border-radius: 30px;
    background: var(--gradient-fuscia);
    color: white;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 13px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(247, 151, 184, 0.949);
}
.cart-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 162, 191, 0.94);
}
.logout-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    background: white;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 12px;
    transition: all 0.3s ease;
}
.logout-btn:hover {
    border-color: var(--primary-fuscia);
    color: var(--primary-fuscia);
    background: rgba(255, 45, 120, 0.05);
}

/* ======================================================
   HERO / WELCOME
   ====================================================== */
.welcome {
    min-height: 420px;
    padding: 60px 8%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    background: radial-gradient(circle at 75% 50%, rgba(255, 45, 120, 0.08), transparent 45%);
}
.welcome-text { max-width: 620px; }
.welcome h1 {
    font-family: var(--font-heading);
    font-size: clamp(42px, 5vw, 64px);
    font-weight: 900;
    line-height: 1.05;
    margin: 20px 0 15px;
    color: var(--text-main);
}
.welcome h1 span {
    display: block;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.welcome p {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.7;
}
.hero-tags {
    display: flex;
    gap: 12px;
    margin-top: 25px;
    flex-wrap: wrap;
}
.hero-tag {
    padding: 8px 16px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
}
.welcome-food {
    position: relative;
    width: 260px;
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 45, 120, 0.15), white);
    border: 1px solid var(--border-fuscia-glow);
    box-shadow: 0 20px 60px rgba(255, 45, 120, 0.15);
}
.hero-emoji {
    font-size: 140px;
    animation: floating 3.5s ease-in-out infinite;
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.15));
}
.mascota-hero { min-height: 380px; }
.mascota-notas {
    margin-top: 16px;
    padding: 12px 16px;
    background: rgba(255, 45, 120, 0.06);
    border-left: 3px solid var(--primary-fuscia);
    border-radius: 8px;
    font-size: 13px !important;
    color: var(--text-main) !important;
}

/* ======================================================
   SECCIONES
   ====================================================== */
.menu-section {
    padding: 60px 8%;
    scroll-margin-top: 90px;
}
.section-heading {
    text-align: center;
    margin-bottom: 45px;
}
.section-tag {
    color: var(--primary-fuscia);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
}
.section-heading h2 {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 800;
    margin: 8px 0;
    color: var(--text-main);
}
.section-heading h2 strong {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.section-heading p {
    color: var(--text-muted);
    font-size: 14px;
}

/* ======================================================
   GRID MASCOTAS
   ====================================================== */
.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}
.product {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    cursor: pointer;
}
.product:hover {
    transform: translateY(-8px);
    border-color: var(--border-fuscia-glow);
    box-shadow: 0 20px 40px rgba(255, 45, 120, 0.15);
}
.product-image {
    height: 220px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 45, 120, 0.08), rgba(13, 92, 99, 0.08));
    overflow: hidden;
}
.mascota-emoji {
    font-size: 100px;
    filter: drop-shadow(0 15px 15px rgba(0,0,0,0.15));
}
.badge-pop {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
    background: var(--gradient-main);
    color: white;
    z-index: 2;
}
.product-info {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.product-info h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-main);
}
.mascota-meta {
    color: var(--text-muted);
    font-size: 12px;
    margin-bottom: 14px;
}
.mascota-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 18px;
}
.mascota-stats span {
    padding: 4px 10px;
    background: var(--bg-pearl-2);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
}
.product-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}
.price {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    color: var(--primary-aqua);
}
.add-btn {
    padding: 10px 18px;
    border: none;
    border-radius: 10px;
    background: var(--gradient-main);
    color: white;
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 800;
    transition: all 0.25s ease;
}
.add-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 18px rgba(250, 150, 185, 0.913);
}

/* ======================================================
   EMPTY STATE
   ====================================================== */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 20px;
    border: 2px dashed var(--border-color);
}
.empty-icon {
    font-size: 72px;
    display: block;
    margin-bottom: 16px;
    opacity: 0.5;
}
.empty-state p {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 20px;
}

/* ======================================================
   MÓDULOS GRID (6 tarjetas)
   ====================================================== */
.modulos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
}
.modulo-card {
    position: relative;
    padding: 32px 26px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
    display: block;
    color: inherit;
}
.modulo-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--mod-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}
.modulo-card:hover {
    transform: translateY(-6px);
    border-color: var(--mod-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}
.modulo-card:hover::before { transform: scaleX(1); }
.modulo-icon {
    font-size: 48px;
    margin-bottom: 14px;
    display: block;
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.1));
}
.modulo-card h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 6px;
    color: var(--text-main);
}
.modulo-card p {
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.6;
    margin-bottom: 18px;
}
.modulo-count {
    display: flex;
    align-items: baseline;
    gap: 6px;
}
.modulo-count strong {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 900;
    color: var(--mod-color);
}
.modulo-count span {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
}
.modulo-arrow {
    position: absolute;
    top: 26px;
    right: 26px;
    font-size: 20px;
    color: var(--mod-color);
    opacity: 0.4;
    transition: all 0.3s ease;
}
.modulo-card:hover .modulo-arrow {
    opacity: 1;
    transform: translateX(4px);
}

/* ======================================================
   MÓDULO HERO (cabecera de cada módulo)
   ====================================================== */
.modulo-hero {
    padding: 50px 8% 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}
.modulo-hero-content {
    display: flex;
    align-items: center;
    gap: 22px;
}
.modulo-hero-icon {
    font-size: 72px;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.15));
}
.modulo-hero h1 {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 900;
    margin: 8px 0 6px;
    color: var(--text-main);
}
.modulo-hero p {
    color: var(--text-muted);
    font-size: 14px;
}

/* ======================================================
   LISTA DE EVENTOS
   ====================================================== */
.eventos-lista {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.evento-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 22px;
    background: white;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary-fuscia);
    border-radius: 14px;
    transition: all 0.3s ease;
    position: relative;
}
.evento-card:hover {
    transform: translateX(4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}
.evento-fecha {
    flex-shrink: 0;
    width: 70px;
    text-align: center;
    padding: 10px 0;
    background: var(--bg-pearl-2);
    border-radius: 10px;
}
.evento-fecha strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 900;
    color: var(--text-main);
    line-height: 1;
}
.evento-fecha span {
    display: block;
    font-size: 11px;
    font-weight: 800;
    color: var(--primary-fuscia);
    margin-top: 2px;
}
.evento-fecha small {
    display: block;
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 600;
}
.evento-info { flex: 1; }
.evento-info h4 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.evento-info p {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 8px;
}
.evento-meta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
}
.evento-meta span {
    background: var(--bg-pearl-2);
    padding: 3px 10px;
    border-radius: 12px;
}
.tag-completado {
    font-size: 10px;
    font-weight: 800;
    color: #0d5c63;
    background: rgba(13, 92, 99, 0.1);
    padding: 3px 10px;
    border-radius: 12px;
    letter-spacing: 0.5px;
}
.evento-delete {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 45, 120, 0.1);
    color: var(--primary-fuscia);
    font-size: 13px;
    font-weight: 800;
    transition: all 0.2s ease;
}
.evento-delete:hover {
    background: var(--primary-fuscia);
    color: white;
}

/* ======================================================
   MODAL
   ====================================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 61, 66, 0.5);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}
.modal-box {
    width: 100%;
    max-width: 540px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px 35px;
    background: white;
    border: 1px solid var(--border-fuscia-glow);
    border-radius: 24px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: modalIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
@keyframes modalIn {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 45, 120, 0.08);
    color: var(--primary-fuscia);
    font-size: 14px;
    transition: all 0.2s ease;
    z-index: 2;
}
.modal-close:hover {
    background: var(--primary-fuscia);
    color: white;
    transform: rotate(90deg);
}
.modal-header {
    text-align: center;
    margin-bottom: 25px;
}
.modal-icon {
    display: inline-block;
    font-size: 48px;
    margin-bottom: 10px;
    animation: floating 3s ease-in-out infinite;
}
.modal-header h2 {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 6px;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.modal-header p {
    color: var(--text-muted);
    font-size: 13px;
}
.checkbox-group {
    display: flex;
    align-items: center;
    padding: 6px 0;
}
.checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 13px !important;
    color: var(--text-main) !important;
    margin-bottom: 0 !important;
}
.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-fuscia);
    cursor: pointer;
}

/* ======================================================
   FOOTER
   ====================================================== */
footer {
    padding: 50px 8% 30px;
    background: rgba(249, 167, 219, 0.8);
    border-top: 1px solid var(--border-color);
    margin-top: 40px;
}
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}
.footer-desc {
    color: var(--text-muted);
    font-size: 12px;
    max-width: 400px;
}
.footer-links {
    display: flex;
    gap: 20px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
}
.footer-links a:hover { color: var(--primary-fuscia); }
.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(13, 92, 99, 0.08);
    color: var(--text-muted);
    font-size: 11px;
}

/* ======================================================
   RESPONSIVE
   ====================================================== */
@media (max-width: 900px) {
    .login-wrapper { grid-template-columns: 1fr; }
    .login-presentation { display: none; }
    .welcome {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    .welcome-text { margin: auto; }
    .hero-tags { justify-content: center; }
    .modulo-hero {
        flex-direction: column;
        text-align: center;
    }
    .modulo-hero-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 650px) {
    .navbar nav { display: none; }
    .welcome h1 { font-size: 34px; }
    .section-heading h2 { font-size: 28px; }
    .products { grid-template-columns: 1fr; }
    .logout-text { display: none; }
    .form-row { grid-template-columns: 1fr; }
    .modal-box { padding: 30px 22px; }
    .evento-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .evento-fecha {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-around;
        padding: 8px;
    }
    .evento-fecha strong, .evento-fecha span, .evento-fecha small { display: inline; margin: 0 4px; }
    .modulo-hero h1 { font-size: 32px; }
    .splash-title { font-size: 40px; }
    .splash-logo { font-size: 72px; }
}

/* ======================================================
   AJUSTE VISUAL FINAL — CONTRASTE Y COHERENCIA
   Mantiene la identidad rosa + verde del fondo actual,
   pero mejora la lectura de textos, formularios y botones.
   ====================================================== */

:root {
    /* Colores principales: rosa/palo de rosa + verde suave */
    --primary-fuscia: #b83283;
    --primary-fuscia-dark: #8f2465;
    --primary-fuscia-light: #e56bb0;

    --primary-aqua: #3f946b;
    --primary-aqua-dark: #2f7656;
    --primary-aqua-light: #8fd6b0;

    /* Gradientes con suficiente contraste */
    --gradient-main: linear-gradient(135deg, #c23d8d 0%, #4b9b70 100%);
    --gradient-fuscia: linear-gradient(135deg, #b83283 0%, #4b9b70 100%);

    /* Fondo: conserva la sensación clara rosa/verde actual */
    --bg-pearl: #f7f2f6;
    --bg-pearl-2: #edf7ef;
    --bg-card: #ffffff;
    --bg-card-hover: #fff7fc;

    /* Los campos ahora son claros para que el texto oscuro sea legible */
    --bg-input: #fffafd;

    --border-color: #dfbfd3;
    --border-fuscia-glow: rgba(184, 50, 131, 0.28);
    --border-aqua-glow: rgba(63, 148, 107, 0.28);

    --text-main: #241a25;
    --text-muted: #625463;
    --text-dark: #171018;

    --glass-bg: rgba(255, 255, 255, 0.90);
    --glass-border: rgba(86, 57, 78, 0.20);
}

/* ---------- Fondo general ---------- */
html {
    background-color: var(--bg-pearl);
    color: var(--text-main);
}

body {
    color: var(--text-main);
    background:
        radial-gradient(circle at 8% 8%, rgba(229, 107, 176, 0.13) 0%, transparent 38%),
        radial-gradient(circle at 92% 82%, rgba(143, 214, 176, 0.16) 0%, transparent 40%),
        linear-gradient(135deg, #faf6f9 0%, #f0f8f2 100%);
}

.glow-1 {
    background: #e56bb0;
    opacity: 0.20;
}

.glow-2 {
    background: #8fd6b0;
    opacity: 0.22;
}

.glow-3 {
    background: #d65b9e;
    opacity: 0.10;
}

/* ---------- Textos ---------- */
.splash-slogan,
.presentation-content p,
.login-description,
.register-text,
.navbar nav a,
.welcome p,
.hero-tag,
.section-heading p,
.mascota-meta,
.modulo-card p,
.modulo-count span,
.modulo-hero p,
.evento-info p,
.evento-meta,
.footer-desc,
.footer-links,
.footer-bottom {
    color: var(--text-muted);
}

.brand-name,
.presentation-content h1,
.login-box h2,
.form-group label,
.welcome h1,
.section-heading h2,
.product-info h3,
.modulo-card h3,
.modulo-hero h1,
.evento-info h4,
.evento-fecha strong,
.checkbox-label,
.empty-state p {
    color: var(--text-main);
}

/* Gradientes usados en títulos: ahora son visibles sobre fondos claros */
.splash-title,
.presentation-content h1 strong,
.brand-name strong,
.logo-text strong,
.welcome h1 span,
.section-heading h2 strong,
.modal-header h2 {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ---------- LOGIN Y REGISTRO ---------- */
.login-wrapper {
    background: rgba(255, 255, 255, 0.94);
    border-color: rgba(86, 57, 78, 0.18);
    box-shadow:
        0 30px 80px rgba(88, 45, 75, 0.16),
        0 0 1px rgba(0, 0, 0, 0.08);
}

.login-presentation {
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(249, 241, 247, 0.96)),
        radial-gradient(circle at 30% 70%, rgba(229, 107, 176, 0.18), transparent 60%);
    border-right-color: rgba(86, 57, 78, 0.16);
}

.login-box {
    background: rgba(255, 255, 255, 0.97);
}

.form-group label {
    color: var(--text-main);
}

/* Contenedores de todos los campos */
.input-container {
    background: #fffafd;
    border: 1px solid #d9bfd1;
    box-shadow: inset 0 1px 2px rgba(60, 30, 52, 0.03);
}

.input-container:hover {
    border-color: #c889ae;
    background: #ffffff;
}

.input-container:focus-within {
    border-color: var(--primary-fuscia);
    background: #ffffff;
    box-shadow:
        0 0 0 3px rgba(184, 50, 131, 0.13),
        0 5px 18px rgba(184, 50, 131, 0.08);
}

.input-container input,
.input-container select,
.input-container textarea {
    color: var(--text-main);
    caret-color: var(--primary-fuscia);
}

.input-container input::placeholder,
.input-container textarea::placeholder {
    color: #8b7988;
    opacity: 1;
}

.input-container select {
    color: var(--text-main);
}

.input-container select:invalid {
    color: #8b7988;
}

.input-container select option {
    color: var(--text-main);
    background: #ffffff;
}

.input-container input[type="date"],
.input-container input[type="time"] {
    color-scheme: light;
}

.input-icon {
    color: var(--primary-fuscia-dark);
}

.show-password {
    color: var(--primary-fuscia-dark);
}

/* Botón principal: contraste alto y consistente */
.login-btn {
    background: var(--gradient-main);
    color: #ffffff;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.16);
    box-shadow: 0 8px 22px rgba(184, 50, 131, 0.22);
}

.login-btn:hover {
    background: linear-gradient(135deg, #ad2f79 0%, #3e885f 100%);
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(184, 50, 131, 0.28);
}

.login-btn:focus-visible,
.add-btn:focus-visible,
.cart-button:focus-visible,
.logout-btn:focus-visible,
.modal-close:focus-visible {
    outline: 3px solid rgba(184, 50, 131, 0.28);
    outline-offset: 2px;
}

.register-text a {
    color: var(--primary-fuscia-dark);
}

/* ---------- NAVBAR Y BOTONES ---------- */
.navbar {
    background: rgba(255, 255, 255, 0.94);
    border-bottom-color: rgba(184, 50, 131, 0.16);
}

.navbar nav a {
    color: #5d4d5d;
}

.navbar nav a:hover,
.navbar nav a.active {
    color: var(--primary-fuscia-dark);
}

.navbar nav a.active::after {
    background: var(--gradient-main);
}

.cart-button,
.add-btn {
    background: var(--gradient-main);
    color: #ffffff;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.15);
    box-shadow: 0 6px 16px rgba(184, 50, 131, 0.20);
}

.cart-button:hover,
.add-btn:hover {
    background: linear-gradient(135deg, #ad2f79 0%, #3e885f 100%);
    color: #ffffff;
    box-shadow: 0 9px 22px rgba(184, 50, 131, 0.25);
}

.logout-btn {
    background: #ffffff;
    color: #554656;
    border-color: #d9bfd1;
}

.logout-btn:hover {
    border-color: var(--primary-fuscia);
    color: var(--primary-fuscia-dark);
    background: #fff6fb;
}

/* ---------- TARJETAS Y CONTENIDO ---------- */
.hero-tag {
    background: rgba(255, 255, 255, 0.88);
    border-color: #dfbfd3;
    color: #5d4d5d;
}

.product,
.modulo-card,
.evento-card,
.empty-state,
.modal-box {
    background: rgba(255, 255, 255, 0.96);
}

.product,
.modulo-card,
.evento-card {
    border-color: #dfbfd3;
}

.product:hover {
    border-color: rgba(184, 50, 131, 0.38);
    box-shadow: 0 18px 38px rgba(108, 55, 91, 0.12);
}

.product-image {
    background: linear-gradient(
        135deg,
        rgba(229, 107, 176, 0.10),
        rgba(143, 214, 176, 0.13)
    );
}

.mascota-stats span,
.evento-meta span,
.evento-fecha {
    background: #eef7f0;
    color: #4e6657;
}

.price {
    color: var(--primary-aqua-dark);
}

.modulo-count strong,
.modulo-arrow {
    color: var(--mod-color, var(--primary-fuscia-dark));
}

.evento-fecha span {
    color: var(--primary-fuscia-dark);
}

.evento-card {
    border-left-color: var(--primary-fuscia);
}

.evento-delete {
    background: rgba(184, 50, 131, 0.10);
    color: var(--primary-fuscia-dark);
}

.evento-delete:hover {
    background: var(--primary-fuscia);
    color: #ffffff;
}

.tag-completado {
    color: #286a4c;
    background: rgba(63, 148, 107, 0.12);
}

/* ---------- MODALES Y FORMULARIOS ---------- */
.modal-overlay {
    background: rgba(37, 22, 35, 0.58);
}

.modal-box {
    border-color: rgba(184, 50, 131, 0.28);
}

.modal-close {
    background: rgba(184, 50, 131, 0.09);
    color: var(--primary-fuscia-dark);
}

.modal-close:hover {
    background: var(--primary-fuscia);
    color: #ffffff;
}

.checkbox-label {
    color: var(--text-main) !important;
}

.checkbox-label input[type="checkbox"] {
    accent-color: var(--primary-fuscia);
}

/* ---------- FOOTER ---------- */
footer {
    background: linear-gradient(
        135deg,
        rgba(239, 187, 218, 0.78),
        rgba(190, 231, 207, 0.78)
    );
    border-top-color: rgba(184, 50, 131, 0.16);
}

.footer-links a:hover {
    color: var(--primary-fuscia-dark);
}

.footer-bottom {
    border-top-color: rgba(86, 57, 78, 0.12);
}

/* ---------- TOAST ---------- */
.toast {
    background: #ffffff;
    border-color: rgba(184, 50, 131, 0.35);
    color: var(--text-main);
    box-shadow: 0 10px 30px rgba(88, 45, 75, 0.18);
}

/* ---------- Compatibilidad con botones de módulos que traen
   color de fondo inline desde PHP: conservamos el color del módulo,
   pero garantizamos texto blanco y buena legibilidad. ---------- */
.cart-button[style],
.add-btn[style],
.login-btn[style] {
    color: #ffffff !important;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.16);
}

/* ---------- Accesibilidad de teclado ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(184, 50, 131, 0.30);
    outline-offset: 2px;
}

/* ---------- Autocompletado del navegador ---------- */
.input-container input:-webkit-autofill,
.input-container input:-webkit-autofill:hover,
.input-container input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--text-main);
    -webkit-box-shadow: 0 0 0 1000px #fffafd inset;
    transition: background-color 9999s ease-out 0s;
}


/* ============================================================
   ANIMIKA 2 — FORMULARIOS ESTILO ROSA + VERDE PASTEL
   BLOQUE FINAL: prevalece sobre los estilos anteriores
   ============================================================ */

body {
    background:
        radial-gradient(circle at 10% 12%, rgba(246, 174, 194, 0.62) 0%, rgba(246, 174, 194, 0.28) 17%, transparent 36%),
        radial-gradient(circle at 88% 78%, rgba(173, 239, 180, 0.65) 0%, rgba(173, 239, 180, 0.30) 20%, transparent 43%),
        linear-gradient(135deg, #fce8ed 0%, #e9f7e7 48%, #d9f5d9 100%) !important;
    min-height: 100vh;
}

/* Campos */
.login-box .input-container,
.login-box.wide .input-container {
    background: #ffd9ee !important;
    background-color: #ffd9ee !important;
    border: 2px solid #f5b5d5 !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgba(185, 77, 132, 0.08) !important;
    transition: all 0.25s ease !important;
}

.login-box .input-container:hover,
.login-box.wide .input-container:hover {
    background: #ffe4f2 !important;
    background-color: #ffe4f2 !important;
    border-color: #ee9bc7 !important;
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(185, 77, 132, 0.12) !important;
}

/* Campo activo: permanece claro */
.login-box .input-container:focus-within,
.login-box.wide .input-container:focus-within {
    background: #fff0f8 !important;
    background-color: #fff0f8 !important;
    border-color: #d92b91 !important;
    box-shadow: 0 0 0 4px rgba(217, 43, 145, 0.13), 0 6px 18px rgba(217, 43, 145, 0.12) !important;
}

/* Texto de los campos */
.login-box .input-container input,
.login-box .input-container select,
.login-box.wide .input-container input,
.login-box.wide .input-container select {
    background: transparent !important;
    background-color: transparent !important;
    color: #241824 !important;
    -webkit-text-fill-color: #241824 !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    caret-color: #d92b91 !important;
}

.login-box .input-container input::placeholder,
.login-box.wide .input-container input::placeholder {
    color: #9b6f88 !important;
    opacity: 1 !important;
}

/* Selección de texto */
.login-box .input-container input::selection,
.login-box.wide .input-container input::selection {
    background: #f5a6d0 !important;
    color: #241824 !important;
}

/* Evita que Chrome cambie los colores con autocompletado */
.login-box .input-container input:-webkit-autofill,
.login-box .input-container input:-webkit-autofill:hover,
.login-box .input-container input:-webkit-autofill:focus,
.login-box.wide .input-container input:-webkit-autofill,
.login-box.wide .input-container input:-webkit-autofill:hover,
.login-box.wide .input-container input:-webkit-autofill:focus {
    -webkit-text-fill-color: #241824 !important;
    -webkit-box-shadow: 0 0 0 1000px #ffd9ee inset !important;
    box-shadow: 0 0 0 1000px #ffd9ee inset !important;
    caret-color: #d92b91 !important;
}

/* Iconos */
.login-box .input-container i,
.login-box .input-container svg,
.login-box.wide .input-container i,
.login-box.wide .input-container svg,
.login-box .input-icon,
.login-box.wide .input-icon {
    color: #c72b86 !important;
}

/* Botón de mostrar contraseña */
.login-box .show-password,
.login-box.wide .show-password {
    color: #c72b86 !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer;
}

.login-box .show-password:hover,
.login-box.wide .show-password:hover {
    color: #a91d70 !important;
}

/* Botón principal */
.login-box .login-btn,
.login-box button[type="submit"],
.login-box .btn-primary,
.login-box .btn-login,
.login-box.wide .login-btn,
.login-box.wide button[type="submit"],
.login-box.wide .btn-primary,
.login-box.wide .btn-login {
    background: linear-gradient(135deg, #d91b91 0%, #ed3cac 50%, #d82a91 100%) !important;
    background-color: #d91b91 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 12px !important;
    font-weight: 800 !important;
    letter-spacing: 0.3px;
    box-shadow: 0 8px 18px rgba(217, 27, 145, 0.28) !important;
    transition: all 0.25s ease !important;
}

.login-box .login-btn:hover,
.login-box button[type="submit"]:hover,
.login-box .btn-primary:hover,
.login-box .btn-login:hover,
.login-box.wide .login-btn:hover,
.login-box.wide button[type="submit"]:hover,
.login-box.wide .btn-primary:hover,
.login-box.wide .btn-login:hover {
    background: linear-gradient(135deg, #c91684 0%, #e72d9f 50%, #c91684 100%) !important;
    background-color: #c91684 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 11px 24px rgba(217, 27, 145, 0.35) !important;
}

.login-box .login-btn:active,
.login-box button[type="submit"]:active,
.login-box.wide .login-btn:active,
.login-box.wide button[type="submit"]:active {
    transform: translateY(0) !important;
    box-shadow: 0 5px 12px rgba(217, 27, 145, 0.25) !important;
}

/* Responsive */
@media (max-width: 760px) {
    .login-page {
        padding: 15px;
    }

    .login-wrapper {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .login-presentation {
        display: none;
    }

    .login-box,
    .login-box.wide {
        padding: 35px 25px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}
