@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Poppins:wght@300;400;500;600;700&display=swap');

/* --- 1. DESIGN SYSTEM VARIABLES --- */
:root {
    /* Brand Palette */
    --color-blue: #9AC2E6;
    --color-blue-dark: #7aaedb;
    --color-green: #84BC71;
    --color-green-dark: #6fa85b;
    --color-yellow: #F7BC3A;
    --color-yellow-dark: #e6a71d;
    --color-pink: #E83FA4;
    --color-pink-hover: #d02f8f;
    --color-pink-light: #fcecf6;
    
    /* Backgrounds */
    --bg-cream: #FCFBF7;
    --bg-cream-dark: #F4F2EB;
    --bg-glass: rgba(252, 251, 247, 0.85);
    --bg-card: #ffffff;
    
    /* Text Colors */
    --text-dark: #2D3748;
    --text-medium: #4A5568;
    --text-light: #718096;
    --text-white: #ffffff;
    
    /* Fonts */
    --font-title: 'Merge W00 Bold', 'Fredoka', 'Poppins', sans-serif;
    --font-body: 'Poppins', sans-serif;
    
    /* Transitions */
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Borders & Shadow */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.06), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-inset: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
    
    /* Layout Constants */
    --header-height: 80px;
}

/* --- 2. BASE RESET & GENERALS --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    background-color: var(--bg-cream);
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    overflow-y: scroll;
}

/* Typography styles */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-title);
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.25;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--color-yellow);
    border-radius: var(--radius-full);
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-medium);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* Base Layout Utility */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

/* Highlight Text */
.highlight-pink { color: var(--color-pink); }
.highlight-blue { color: var(--color-blue); }
.highlight-green { color: var(--color-green); }
.highlight-yellow { color: var(--color-yellow); }

/* --- 3. HEADER & NAVIGATION --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: var(--bg-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1100;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    border-bottom: 1px solid rgba(232, 232, 232, 0.4);
}

header.scrolled {
    height: 70px;
    background-color: var(--bg-cream);
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    align-self: flex-start;
    margin-top: 10px;
    flex-shrink: 0; /* Evita que el logo se encoja */
}

.logo img {
    height: 166px; /* Aumentado en un 100% (de 83px a 166px) */
    width: auto;
    object-fit: contain;
    transition: var(--transition-normal);
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.15));
    z-index: 1001;
    flex-shrink: 0; /* Evita deformaciones */
}

header.scrolled .logo img {
    height: 130px !important; /* Aumentado en un 100% (de 65px a 130px) y marcado con important para sobrescribir estilo inline */
}

.logo-text {
    font-family: var(--font-title);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.1;
    display: flex;
    flex-direction: column;
}

.logo-text span {
    font-size: 0.75rem;
    color: var(--color-green-dark);
    font-family: var(--font-body);
    font-weight: 500;
    letter-spacing: 1px;
}

/* Desktop Navigation Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: 100%;
}

.nav-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    color: var(--text-medium);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link i {
    font-size: 0.75rem;
    transition: var(--transition-fast);
}

.nav-link:hover, .nav-item.active .nav-link {
    color: var(--color-pink);
    background-color: rgba(232, 63, 164, 0.05);
}

.nav-item:hover .nav-link i {
    transform: rotate(180deg);
}

/* Dropdown Submenus */
.dropdown-menu {
    position: absolute;
    top: calc(var(--header-height) - 10px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: var(--bg-card);
    min-width: 220px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 0.75rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
    border: 1px solid rgba(232, 232, 232, 0.6);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

header.scrolled .dropdown-menu {
    top: 60px;
}

.dropdown-item {
    font-size: 0.9rem;
    padding: 0.6rem 0.8rem;
    border-radius: var(--radius-sm);
    color: var(--text-medium);
    font-weight: 500;
    display: block;
    white-space: nowrap;
}

.dropdown-item:hover {
    color: var(--color-pink);
    background-color: var(--color-pink-light);
    transform: translateX(4px);
}

/* Show Dropdown on Hover */
.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Highlighted Donate Button */
.btn-nav-donate {
    background-color: var(--color-pink);
    color: var(--text-white) !important;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(232, 63, 164, 0.3);
    transition: var(--transition-normal);
    margin-left: 0.5rem;
}

.btn-nav-donate:hover {
    background-color: var(--color-pink-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(232, 63, 164, 0.4);
}

/* Mobile Hamburger Trigger */
.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1100;
}

/* Mobile Sidebar Nav Drawer */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    height: 100dvh;
    background-color: var(--bg-cream);
    box-shadow: var(--shadow-lg);
    z-index: 1050;
    padding: 6rem 2rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    overflow-y: auto;
    transition: right var(--transition-normal);
}

.mobile-nav.open {
    right: 0;
}

.mobile-nav-link {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.mobile-nav-link.active {
    color: var(--color-pink);
}

.mobile-submenu {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    padding-left: 1rem;
    margin-top: 0.25rem;
}

.mobile-submenu.open {
    display: flex;
}

.mobile-submenu-item {
    font-size: 0.95rem;
    color: var(--text-medium);
    padding: 0.4rem 0;
}

.mobile-submenu-item:hover {
    color: var(--color-pink);
}

.mobile-nav .btn-nav-donate {
    margin-top: 1rem;
    text-align: center;
    margin-left: 0;
}

/* Drawer Backdrop Blur */
.nav-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,0.4);
    z-index: 1040;
}

.nav-backdrop.active {
    display: block;
}

/* --- 4. BUTTONS & INTERACTIVE ELEMENTS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: var(--transition-normal);
    font-size: 1rem;
}

.btn-pink {
    background-color: var(--color-pink);
    color: var(--text-white);
    box-shadow: 0 4px 14px rgba(232, 63, 164, 0.35);
}

.btn-pink:hover {
    background-color: var(--color-pink-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(232, 63, 164, 0.45);
}

.btn-blue {
    background-color: var(--color-blue);
    color: var(--text-white);
    box-shadow: 0 4px 14px rgba(154, 194, 230, 0.5);
}

.btn-blue:hover {
    background-color: var(--color-blue-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(154, 194, 230, 0.6);
}

.btn-green {
    background-color: var(--color-green);
    color: var(--text-white);
    box-shadow: 0 4px 14px rgba(132, 188, 113, 0.45);
}

.btn-green:hover {
    background-color: var(--color-green-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(132, 188, 113, 0.55);
}

.btn-yellow {
    background-color: var(--color-yellow);
    color: var(--text-dark);
    box-shadow: 0 4px 14px rgba(247, 188, 58, 0.35);
}

.btn-yellow:hover {
    background-color: var(--color-yellow-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(247, 188, 58, 0.45);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-medium);
    border: 2px solid var(--text-light);
}

.btn-outline:hover {
    background-color: rgba(0,0,0,0.03);
    color: var(--text-dark);
    transform: translateY(-2px);
}

.btn-outline-pink {
    background-color: transparent;
    color: var(--color-pink);
    border: 2px solid var(--color-pink);
}

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

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: var(--text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    z-index: 999;
    cursor: pointer;
    transition: var(--transition-normal);
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.5);
}

/* Pulse animation for CTA */
.pulse {
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* --- 5. PAGE VIEWS ENGINE (SPA) --- */
.page-view {
    display: none;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    padding-top: var(--header-height);
    min-height: calc(100vh - 350px); /* Fill screen min */
}

.page-view.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* --- 6. HERO SECTION --- */
.hero {
    position: relative;
    height: 90vh;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: var(--text-white);
    overflow: hidden;
}

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

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 750px;
    animation: fadeInUp 0.8s ease-out;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: var(--text-white);
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

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

/* --- 7. CARDS & GRID LAYOUTS --- */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

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

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* Modern Card Style */
.card {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    border: 1px solid rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
}

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

.card-img-container {
    position: relative;
    height: 240px;
    overflow: hidden;
    background-color: var(--bg-cream-dark);
}

.card-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.card:hover .card-img-container img {
    transform: scale(1.08);
}

.card-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    box-shadow: var(--shadow-sm);
}

.tag-verde {
    background-color: #e2f4dc;
    color: var(--color-green-dark);
}

.tag-azul {
    background-color: #e2effa;
    color: var(--color-blue-dark);
}

.tag-amarillo {
    background-color: #fef4db;
    color: var(--color-yellow-dark);
}

.tag-rosa {
    background-color: var(--color-pink-light);
    color: var(--color-pink);
}

.card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title {
    font-family: var(--font-title);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.meta-badge {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    background-color: var(--bg-cream-dark);
    border-radius: var(--radius-sm);
    color: var(--text-medium);
    font-weight: 500;
}

.card-desc {
    font-size: 0.9rem;
    color: var(--text-medium);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 1rem;
    margin-top: auto;
}

/* --- 8. SPECIFIC PAGE SECTIONS --- */

/* Mision & Vision Section */
.mision-section {
    background-color: var(--color-blue);
    color: var(--text-dark);
    border-radius: var(--radius-lg);
    padding: 3rem;
    margin-bottom: 3rem;
}

.mision-section h2::after {
    background-color: var(--text-dark);
}

/* Before and After Image Comparison */
.before-after-container {
    position: relative;
    height: 300px;
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
}

.before-after-half {
    width: 50%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.before-after-half img {
    width: 200%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
}

.before-after-half.before img {
    left: 0;
}

.before-after-half.after img {
    right: 0;
}

.before-after-badge {
    position: absolute;
    bottom: 15px;
    padding: 0.3rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-white);
    border-radius: var(--radius-sm);
    z-index: 5;
    text-transform: uppercase;
}

.before .before-after-badge {
    left: 15px;
    background-color: #E53E3E;
}

.after .before-after-badge {
    right: 15px;
    background-color: var(--color-green);
}

.before-after-divider {
    position: absolute;
    left: 50%;
    top: 0;
    width: 4px;
    height: 100%;
    background-color: var(--color-yellow);
    z-index: 10;
    transform: translateX(-50%);
}

.before-after-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    background-color: var(--color-yellow);
    color: var(--text-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    z-index: 11;
    box-shadow: var(--shadow-sm);
}

/* Filters Bar */
.filters-bar {
    background-color: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 2.5rem;
    border: 1px solid rgba(0,0,0,0.03);
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.filter-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-medium);
}

.filter-group select, .filter-group input {
    padding: 0.6rem;
    border: 1.5px solid var(--bg-cream-dark);
    border-radius: var(--radius-sm);
    outline: none;
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: var(--transition-fast);
    background-color: var(--bg-cream);
}

.filter-group select:focus, .filter-group input:focus {
    border-color: var(--color-pink);
    background-color: var(--text-white);
}

/* Form Styles */
.form-card {
    background-color: var(--bg-card);
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0,0,0,0.02);
}

.form-title {
    text-align: center;
    margin-bottom: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1.5px solid var(--bg-cream-dark);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-fast);
}

.form-control:focus {
    border-color: var(--color-pink);
    box-shadow: 0 0 0 3px rgba(232, 63, 164, 0.1);
}

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

/* File Upload Style */
.file-upload-wrapper {
    position: relative;
    border: 2px dashed var(--color-blue);
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
    background-color: rgba(154, 194, 230, 0.05);
    cursor: pointer;
    transition: var(--transition-fast);
}

.file-upload-wrapper:hover {
    background-color: rgba(154, 194, 230, 0.1);
    border-color: var(--color-blue-dark);
}

.file-upload-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-upload-content i {
    font-size: 2rem;
    color: var(--color-blue-dark);
    margin-bottom: 0.5rem;
}

.image-preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.image-preview-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.image-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-preview-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    background-color: rgba(0,0,0,0.6);
    color: var(--text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    cursor: pointer;
}

/* FAQs Accordion */
.accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.accordion-item {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.02);
}

.accordion-trigger {
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    text-align: left;
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-fast);
}

.accordion-trigger:hover {
    color: var(--color-pink);
    background-color: var(--color-pink-light);
}

.accordion-trigger i {
    transition: transform var(--transition-normal);
}

.accordion-item.active .accordion-trigger {
    color: var(--color-pink);
    background-color: var(--color-pink-light);
}

.accordion-item.active .accordion-trigger i {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal) ease-out;
    background-color: var(--bg-card);
}

.accordion-content-inner {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid rgba(0,0,0,0.03);
    color: var(--text-medium);
}

/* Tienda Solidaria Grid & Cart */
.product-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid rgba(0,0,0,0.02);
}

.product-img {
    height: 200px;
    background-color: var(--bg-cream-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow: hidden;
}

.product-img img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: var(--transition-normal);
}

.product-card:hover .product-img img {
    transform: scale(1.08);
}

.product-price {
    font-family: var(--font-title);
    font-size: 1.25rem;
    color: var(--color-pink);
    font-weight: 700;
}

/* Floating Shop Cart Badge in header */
.cart-badge-container {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background-color: var(--color-pink);
    color: var(--text-white);
    font-size: 0.7rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- 9. MODALS SYSTEM --- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(45, 55, 72, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-card {
    background-color: var(--bg-card);
    width: 100%;
    max-width: 650px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transform: scale(0.9);
    transition: transform var(--transition-normal);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal-overlay.active .modal-card {
    transform: scale(1);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-family: var(--font-title);
    font-size: 1.5rem;
    color: var(--text-dark);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition-fast);
}

.modal-close:hover {
    color: var(--text-dark);
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex-grow: 1;
}

.modal-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid rgba(0,0,0,0.05);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    background-color: var(--bg-cream);
}

/* Donar Modal Amounts Selector */
.donate-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.donate-amount-btn {
    background-color: var(--bg-cream);
    border: 2px solid var(--bg-cream-dark);
    padding: 0.75rem;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--text-medium);
    cursor: pointer;
    text-align: center;
    transition: var(--transition-fast);
}

.donate-amount-btn:hover {
    border-color: var(--color-pink);
    color: var(--color-pink);
}

.donate-amount-btn.active {
    background-color: var(--color-pink-light);
    border-color: var(--color-pink);
    color: var(--color-pink);
}

/* --- 10. NOTIFICATION POPUP --- */
.notification {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background-color: var(--text-dark);
    color: var(--text-white);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transform: translateY(150px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 3000;
}

.notification.show {
    transform: translateY(0);
}

.notification.success {
    border-left: 5px solid var(--color-green);
}

.notification.success i {
    color: var(--color-green);
}

.notification.error {
    border-left: 5px solid #E53E3E;
}

.notification.error i {
    color: #E53E3E;
}

/* --- 11. FOOTER --- */
footer {
    background-color: #1A202C;
    color: #A0AEC0;
    padding: 5rem 0 2rem 0;
    border-top: 4px solid var(--color-yellow);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr 2fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

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

.footer-logo img {
    height: 70px;
    width: auto;
    object-fit: contain;
    align-self: flex-start;
}

.footer-about {
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-title {
    color: var(--text-white);
    font-family: var(--font-title);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

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

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.footer-contact-info li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-contact-info li i {
    color: var(--color-yellow);
}

.footer-socials {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #2D3748;
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition-normal);
}

.social-icon:hover {
    background-color: var(--color-pink);
    transform: translateY(-3px);
}

/* Social Handles Layout (Contact Page) */
.social-handle-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    align-items: center;
    margin-top: 1.5rem;
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.social-handle-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    max-width: 280px;
    color: var(--text-dark);
    transition: var(--transition-normal);
}

.social-handle-item:hover {
    color: var(--color-pink) !important;
    transform: translateX(6px);
}

.social-handle-item:hover .social-icon {
    background-color: var(--color-pink) !important;
    transform: rotate(360deg);
}

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

.newsletter-form {
    display: flex;
    width: 100%;
}

.newsletter-input {
    flex-grow: 1;
    padding: 0.6rem 1rem;
    border: none;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    outline: none;
    font-family: var(--font-body);
    font-size: 0.9rem;
}

.newsletter-btn {
    background-color: var(--color-pink);
    color: var(--text-white);
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    cursor: pointer;
    transition: var(--transition-fast);
}

.newsletter-btn:hover {
    background-color: var(--color-pink-hover);
}

.footer-bottom {
    border-top: 1px solid #2D3748;
    padding-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
}

/* --- 12. RESPONSIVE MEDIA QUERIES --- */

@media (max-width: 1024px) {
    h1 {
        font-size: 2.5rem;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .nav-menu {
        display: none;
    }
    
    .hamburger {
        display: block;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .filters-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .logo {
        margin-top: 5px !important;
    }

    .logo img {
        height: 70px !important; /* Ajuste responsive para móvil */
    }
    
    header.scrolled .logo img {
        height: 55px !important;
    }

    .container {
        padding: 0 1rem;
    }
    
    .section-padding {
        padding-top: 3.5rem;
        padding-bottom: 3.5rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .hero {
        background-size: contain !important;
        background-repeat: no-repeat !important;
        background-position: center top !important;
        height: auto !important;
        min-height: auto !important;
        padding-top: 51.6% !important; /* Muestra toda la imagen completa sin recortar (aspect ratio de hero-bg.jpg) */
        display: block !important;
        color: var(--text-dark) !important;
        background-color: var(--bg-cream) !important;
    }
    
    .hero-overlay {
        display: none !important;
    }
    
    .hero .container {
        padding: 0 !important;
        display: block !important;
        height: auto !important;
    }
    
    .hero-content {
        padding: 2rem 1.5rem !important;
        background-color: var(--bg-cream) !important;
        color: var(--text-dark) !important;
        text-align: center !important;
    }
    
    .hero-content h1 {
        color: var(--text-dark) !important;
        font-size: 1.8rem !important;
        margin-bottom: 1rem !important;
        text-shadow: none !important;
        line-height: 1.3 !important;
    }
    
    .hero-content p {
        color: var(--text-medium) !important;
        font-size: 1rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .hero-content img {
        display: none !important; /* Oculta logo duplicado en el centro */
    }
    
    .hero-actions {
        flex-direction: column !important;
        gap: 0.8rem !important;
    }
    
    .hero-actions .btn {
        width: 100% !important;
        justify-content: center !important;
    }
    
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .form-group.full-width {
        grid-column: span 1;
    }
    
    .form-card {
        padding: 1.5rem;
    }
    
    .mision-section {
        padding: 1.5rem;
    }
    
    .filters-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Responsive overrides for layout/spacing/padding on mobile */
    .grid-2[style*="gap:"], .grid-3[style*="gap:"], .grid-4[style*="gap:"] {
        gap: 1.5rem !important;
    }
    
    .grid-2[style*="margin-top:"], .grid-3[style*="margin-top:"], .grid-4[style*="margin-top:"] {
        margin-top: 2rem !important;
    }
    
    #view-aliados .grid-3 > div,
    .grid-2 > div[style*="padding: 3rem"],
    .grid-2 > div[style*="padding: 2.5rem"] {
        padding: 1.5rem !important;
    }
    
    .card-body[style*="padding:"] {
        padding: 1.5rem 1.25rem !important;
    }
    
    h3[style*="font-size: 1.8rem"], 
    h3[style*="font-size: 1.6rem"],
    .highlight-pink[style*="font-size: 1.8rem"],
    .highlight-blue[style*="font-size: 1.8rem"],
    .highlight-green[style*="font-size: 1.6rem"] {
        font-size: 1.4rem !important;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .donate-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- 13. COMUNIDAD / MURAL --- */
.community-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3.5rem;
    align-items: start;
}

.messages-mural {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-height: 520px;
    overflow-y: auto;
    padding-right: 12px;
}

.messages-mural::-webkit-scrollbar {
    width: 6px;
}

.messages-mural::-webkit-scrollbar-track {
    background: var(--bg-cream-dark);
    border-radius: var(--radius-full);
}

.messages-mural::-webkit-scrollbar-thumb {
    background-color: var(--color-blue);
    border-radius: var(--radius-full);
}

.messages-mural::-webkit-scrollbar-thumb:hover {
    background-color: var(--color-blue-dark);
}

@media (max-width: 992px) {
    .community-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .messages-mural {
        max-height: 400px;
    }
}

.mural-card {
    flex-shrink: 0;
}

.mural-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    margin-top: auto;
}

@media (max-width: 480px) {
    .mural-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}
