/**
 * PetLoversLab - Campaña Ella
 * Estilos principales
 * Version: 1.0.0
 */

:root {
    --ella-bg: #fbf7f6;
    --ella-card: #ffffff;
    --ella-ink: #1f2937;
    --ella-muted: #6b7280;
    --ella-accent: #f59e0b;
    --ella-accent2: #fda4af;
    --ella-accent3: #fde68a;
    --ella-line: rgba(31, 41, 55, 0.10);
    --ella-shadow: 0 18px 40px rgba(31, 41, 55, 0.10);
    --ella-radius: 18px;
    --ella-max-width: 1100px;
    --ella-focus: 0 0 0 4px rgba(245, 158, 11, 0.25);
    --ella-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset y base */
.ella-campaign-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--ella-ink);
    line-height: 1.6;
}

.ella-campaign-wrapper * {
    box-sizing: border-box;
}

/* Contenedor principal */
.ella-container {
    max-width: var(--ella-max-width);
    margin: 0 auto;
    padding: 20px;
}

/* ====================
   HERO SECTION
   ==================== */
.ella-hero {
    position: relative;
    border-radius: calc(var(--ella-radius) + 6px);
    overflow: hidden;
    box-shadow: var(--ella-shadow);
    margin-bottom: 30px;
    background: linear-gradient(135deg, rgba(253, 164, 175, 0.15), rgba(245, 158, 11, 0.12)), 
                url('data:image/svg+xml,%3Csvg width="20" height="20" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="%239C92AC" fill-opacity="0.03"%3E%3Cpath d="M0 0h20L0 20z"/%3E%3C/g%3E%3C/svg%3E');
}

.ella-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(108%) contrast(105%);
    transform: scale(1.02);
}

.ella-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.92) 0%,
        rgba(255, 255, 255, 0.72) 46%,
        rgba(255, 255, 255, 0.20) 72%,
        rgba(255, 255, 255, 0.00) 100%
    );
}

.ella-hero-content {
    position: relative;
    z-index: 1;
    padding: 40px;
    min-height: 420px;
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 20px;
    align-items: end;
}

.ella-hero-main {
    animation: fadeInUp 0.6s ease-out;
}

.ella-hero-title {
    margin: 0 0 12px;
    font-size: 44px;
    line-height: 1.05;
    letter-spacing: -0.02em;
    font-weight: 800;
    color: var(--ella-ink);
}

.ella-hero-subtitle {
    margin: 0 0 20px;
    color: #374151;
    font-size: 18px;
    max-width: 520px;
    line-height: 1.5;
}

.ella-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 15px;
}

.ella-hero-side {
    align-self: start;
    justify-self: end;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: saturate(120%) blur(10px);
    border: 1px solid var(--ella-line);
    border-radius: var(--ella-radius);
    padding: 18px;
    max-width: 320px;
    animation: fadeIn 0.8s ease-out 0.3s both;
}

/* KPIs */
.ella-kpis {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 15px;
}

.ella-kpi {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--ella-line);
    border-radius: 14px;
    padding: 12px;
}

.ella-kpi-label {
    font-size: 12px;
    color: var(--ella-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.ella-kpi-value {
    font-weight: 800;
    margin-top: 6px;
    font-size: 18px;
    color: var(--ella-ink);
}

/* ====================
   BUTTONS
   ==================== */
.ella-btn {
    appearance: none;
    border: 0;
    border-radius: 999px;
    padding: 14px 24px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: var(--ella-transition);
    font-size: 15px;
    line-height: 1;
}

.ella-btn:active {
    transform: translateY(1px);
}

.ella-btn-primary {
    background: linear-gradient(135deg, var(--ella-accent), #fb923c);
    color: #111827;
    box-shadow: 0 14px 30px rgba(245, 158, 11, 0.28);
}

.ella-btn-primary:hover {
    box-shadow: 0 18px 35px rgba(245, 158, 11, 0.35);
    transform: translateY(-2px);
}

.ella-btn-primary:focus {
    outline: none;
    box-shadow: var(--ella-focus), 0 14px 30px rgba(245, 158, 11, 0.28);
}

.ella-btn-secondary {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--ella-line);
    color: var(--ella-ink);
}

.ella-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--ella-accent);
}

.ella-btn-ghost {
    background: transparent;
    border: 2px solid currentColor;
    color: var(--ella-ink);
}

/* ====================
   PROGRESS BAR
   ==================== */
.ella-progress-section {
    background: var(--ella-card);
    border: 1px solid var(--ella-line);
    border-radius: var(--ella-radius);
    padding: 24px;
    margin: 30px 0;
    box-shadow: 0 10px 24px rgba(31, 41, 55, 0.06);
}

.ella-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.ella-progress-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
}

.ella-progress-bar-container {
    height: 14px;
    border-radius: 999px;
    background: rgba(31, 41, 55, 0.10);
    overflow: hidden;
    position: relative;
}

.ella-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--ella-accent2), var(--ella-accent));
    border-radius: 999px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.ella-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-image: linear-gradient(
        -45deg,
        rgba(255, 255, 255, .2) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, .2) 50%,
        rgba(255, 255, 255, .2) 75%,
        transparent 75%,
        transparent
    );
    background-size: 50px 50px;
    animation: move 2s linear infinite;
}

@keyframes move {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 50px 50px;
    }
}

.ella-progress-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    font-size: 14px;
}

.ella-progress-amount {
    font-weight: 700;
    color: var(--ella-accent);
}

/* ====================
   CARDS
   ==================== */
.ella-card {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--ella-line);
    border-radius: var(--ella-radius);
    padding: 24px;
    margin: 20px 0;
    box-shadow: 0 10px 24px rgba(31, 41, 55, 0.06);
    transition: var(--ella-transition);
}

.ella-card:hover {
    box-shadow: 0 14px 30px rgba(31, 41, 55, 0.10);
    transform: translateY(-2px);
}

.ella-card-title {
    margin: 0 0 16px;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.ella-card-content {
    color: #374151;
    line-height: 1.6;
}

/* ====================
   DONATION SECTION
   ==================== */
.ella-donation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.ella-donation-option {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--ella-line);
    border-radius: var(--ella-radius);
    padding: 24px;
    transition: var(--ella-transition);
    cursor: pointer;
}

.ella-donation-option:hover {
    border-color: var(--ella-accent);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.15);
    transform: translateY(-4px);
}

.ella-donation-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.ella-donation-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px;
}

.ella-donation-desc {
    color: var(--ella-muted);
    font-size: 14px;
    margin: 0 0 16px;
}

.ella-payment-data {
    background: rgba(251, 247, 246, 0.8);
    border-radius: 12px;
    padding: 12px;
    margin: 8px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ella-payment-label {
    font-size: 12px;
    color: var(--ella-muted);
    text-transform: uppercase;
}

.ella-payment-value {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    font-size: 14px;
}

.ella-copy-btn {
    background: var(--ella-accent);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--ella-transition);
}

.ella-copy-btn:hover {
    background: #d97706;
    transform: scale(1.05);
}

/* ====================
   TIMELINE DE AVANCES
   ==================== */
.ella-timeline {
    position: relative;
    padding-left: 40px;
    margin: 30px 0;
}

.ella-timeline::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--ella-accent2), var(--ella-accent));
    border-radius: 999px;
}

.ella-timeline-item {
    position: relative;
    margin-bottom: 30px;
    animation: fadeInLeft 0.5s ease-out;
}

.ella-timeline-dot {
    position: absolute;
    left: -34px;
    top: 6px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ella-accent), var(--ella-accent2));
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.ella-timeline-content {
    background: white;
    border: 1px solid var(--ella-line);
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 4px 12px rgba(31, 41, 55, 0.06);
}

.ella-timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 12px;
}

.ella-timeline-title {
    font-weight: 700;
    font-size: 16px;
    margin: 0;
}

.ella-timeline-date {
    font-size: 12px;
    color: var(--ella-muted);
}

.ella-timeline-body {
    color: #374151;
    line-height: 1.5;
}

.ella-timeline-image {
    width: 100%;
    border-radius: 10px;
    margin-top: 12px;
}

.ella-timeline-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ella-badge-rescate {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.ella-badge-veterinario {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
}

.ella-badge-tratamiento {
    background: rgba(139, 92, 246, 0.1);
    color: #7c3aed;
}

.ella-badge-recuperacion {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.ella-badge-donacion {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

/* ====================
   MODAL
   ==================== */
.ella-modal {
    position: fixed;
    inset: 0;
    display: none;
    place-items: center;
    background: rgba(17, 24, 39, 0.60);
    backdrop-filter: blur(4px);
    padding: 20px;
    z-index: 9999;
    animation: fadeIn 0.3s ease-out;
}

.ella-modal.active {
    display: grid;
}

.ella-modal-panel {
    width: min(720px, 100%);
    background: white;
    border-radius: 22px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ella-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--ella-line);
    background: linear-gradient(135deg, rgba(253, 164, 175, 0.22), rgba(245, 158, 11, 0.18));
}

.ella-modal-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

.ella-modal-close {
    border: 0;
    background: transparent;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    color: var(--ella-muted);
    transition: var(--ella-transition);
}

.ella-modal-close:hover {
    color: var(--ella-ink);
    transform: rotate(90deg);
}

.ella-modal-body {
    padding: 24px;
    max-height: 70vh;
    overflow-y: auto;
}

/* ====================
   SHARE BUTTONS
   ==================== */
.ella-share-buttons {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.ella-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: var(--ella-transition);
}

.ella-share-whatsapp {
    background: #25D366;
    color: white;
}

.ella-share-facebook {
    background: #1877F2;
    color: white;
}

.ella-share-twitter {
    background: #1DA1F2;
    color: white;
}

.ella-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ====================
   TOAST NOTIFICATION
   ==================== */
.ella-toast {
    position: fixed;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    background: #111827;
    color: white;
    padding: 12px 20px;
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
    z-index: 10000;
    font-size: 14px;
    font-weight: 600;
    animation: slideUp 0.3s ease-out;
}

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

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

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

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

/* ====================
   RESPONSIVE
   ==================== */
@media (max-width: 920px) {
    .ella-hero-content {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .ella-hero-side {
        justify-self: start;
        max-width: none;
    }
    
    .ella-hero-title {
        font-size: 36px;
    }
    
    .ella-donation-grid {
        grid-template-columns: 1fr;
    }
    
    .ella-timeline {
        padding-left: 30px;
    }
}

@media (max-width: 640px) {
    .ella-container {
        padding: 15px;
    }
    
    .ella-hero-content {
        padding: 24px;
    }
    
    .ella-hero-title {
        font-size: 28px;
    }
    
    .ella-hero-subtitle {
        font-size: 16px;
    }
    
    .ella-kpis {
        grid-template-columns: 1fr;
    }
    
    .ella-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ====================
   UTILITY CLASSES
   ==================== */
.ella-text-center {
    text-align: center;
}

.ella-mb-20 {
    margin-bottom: 20px;
}

.ella-mt-20 {
    margin-top: 20px;
}

.ella-muted {
    color: var(--ella-muted);
}

.ella-note {
    padding: 12px;
    border-left: 3px solid var(--ella-accent2);
    background: rgba(253, 164, 175, 0.08);
    border-radius: 8px;
    font-size: 14px;
    color: var(--ella-muted);
    margin: 16px 0;
}
