/* ============================================
   PUNTEAR ORANGE THEME - Sistema de Diseño
   Paleta: #E55200, #e77f01, #f5ae19
   ============================================ */

/* ========== VARIABLES CSS ========== */
:root {
    /* Colores Primarios Naranja */
    --orange-primary: #E55200;
    --orange-medium: #e77f01;
    --orange-light: #f5ae19;
    --orange-50: #fff7ed;
    --orange-100: #ffedd5;
    
    /* Grises Corporativos */
    --gray-900: #1e293b;
    --gray-800: #334155;
    --gray-600: #475569;
    --gray-400: #94a3b8;
    --gray-200: #e2e8f0;
    --gray-50: #f1f5f9;
    
    /* Tipografía Tamaños */
    --text-paragraph: 1.125rem; /* 18px - párrafos */
    --text-short: 1.25rem;      /* 20px - textos destacados */
    --text-h1: 3.5rem;          /* 56px */
    --text-h2: 2.25rem;         /* 36px */
    --text-h3: 1.5rem;          /* 24px */
    
    /* Espaciado */
    --spacing-section: 5rem;    /* 80px */
    --spacing-card: 2rem;       /* 32px */
    
    /* Bordes */
    --radius-card: 24px;
    --radius-button: 2rem;
    
    /* Sombras */
    --shadow-card: 0 10px 40px rgba(229, 82, 0, 0.15);
    --shadow-card-hover: 0 20px 60px rgba(229, 82, 0, 0.3);
    --shadow-button: 0 4px 14px rgba(229, 82, 0, 0.25);
}

/* ========== DEGRADADOS ========== */
.gradient-orange-primary {
    background: linear-gradient(135deg, #E55200 0%, #e77f01 100%);
}

.gradient-orange-soft {
    background: linear-gradient(to right, #f5ae19 0%, #e77f01 100%);
}

.gradient-orange-vertical {
    background: linear-gradient(to bottom, #E55200 0%, #e77f01 50%, #f5ae19 100%);
}

.gradient-overlay-orange {
    background: linear-gradient(135deg, rgba(229, 82, 0, 0.85) 0%, rgba(231, 127, 1, 0.7) 100%);
}

/* ========== BOTONES ========== */
.btn-orange-primary {
    background-color: var(--orange-primary);
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--radius-button);
    font-weight: 700;
    font-size: var(--text-short);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-button);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-orange-primary:hover {
    background-color: var(--orange-medium);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 82, 0, 0.35);
}

.btn-orange-outline {
    background-color: transparent;
    color: var(--orange-primary);
    border: 2px solid var(--orange-primary);
    padding: 1rem 2rem;
    border-radius: var(--radius-button);
    font-weight: 700;
    font-size: var(--text-short);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

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

.btn-whatsapp {
    background-color: #25D366;
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--radius-button);
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp:hover {
    background-color: #20BA5A;
    transform: translateY(-2px);
}

/* ========== CARDS INTERACTIVOS ========== */
.card-interactive {
    position: relative;
    background: linear-gradient(135deg, var(--orange-primary), var(--orange-medium));
    border-radius: var(--radius-card);
    padding: var(--spacing-card);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-card);
    cursor: pointer;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.card-interactive:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-card-hover);
}

/* Estado inicial del card */
.card-front {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.card-interactive:hover .card-front {
    opacity: 0;
    transform: scale(0.9);
    pointer-events: none;
}

/* Contenido oculto que aparece en hover */
.card-back {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: var(--spacing-card);
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease 0.1s, transform 0.3s ease 0.1s;
    pointer-events: none;
}

.card-interactive:hover .card-back {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Iconos en cards */
.card-icon-large {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    color: white;
}

.card-icon-small {
    width: 40px;
    height: 40px;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    color: white;
    opacity: 0.8;
}

/* Variante card amarillo */
.card-interactive.card-yellow {
    background: linear-gradient(135deg, var(--orange-light), var(--orange-medium));
}

/* Variante card con imagen de fondo */
.card-with-image {
    position: relative;
    background-size: cover;
    background-position: center;
}

.card-with-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(229, 82, 0, 0.9) 0%, rgba(231, 127, 1, 0.8) 100%);
    border-radius: var(--radius-card);
}

.card-with-image > * {
    position: relative;
    z-index: 1;
}

/* ========== SECCIONES CON FOTO ========== */
.section-with-photo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

@media (max-width: 1024px) {
    .section-with-photo {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.image-container-decorated {
    position: relative;
}

.main-image {
    width: 100%;
    height: auto;
    border-radius: var(--radius-card);
    position: relative;
    z-index: 2;
}

.main-image.no-background {
    /* Para imágenes sin fondo PNG */
    mix-blend-mode: multiply;
}

/* Formas decorativas */
.shape-decoration {
    position: absolute;
    z-index: 1;
}

.shape-circle {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: var(--orange-light);
    opacity: 0.2;
    filter: blur(60px);
    top: -50px;
    right: -50px;
}

.shape-dots {
    width: 200px;
    height: 200px;
    bottom: -30px;
    left: -30px;
    opacity: 0.15;
}

.shape-wave {
    width: 100%;
    height: auto;
    bottom: 0;
    left: 0;
}

/* ========== BADGES Y TAGS ========== */
.badge-orange {
    background: linear-gradient(135deg, var(--orange-primary), var(--orange-medium));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.badge-outline {
    background: transparent;
    border: 2px solid var(--orange-primary);
    color: var(--orange-primary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 700;
}

/* ========== DIVISORES ========== */
.divider-orange {
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--orange-primary), var(--orange-light));
    border-radius: 2px;
    margin: 1rem auto;
}

.divider-orange.divider-left {
    margin: 1rem 0;
}

/* ========== STATS/COUNTERS ========== */
.stat-block {
    text-align: center;
    padding: 2rem;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-number.orange {
    background: linear-gradient(135deg, var(--orange-primary), var(--orange-medium));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: var(--text-paragraph);
    color: var(--gray-600);
    font-weight: 600;
}

/* ========== ANIMACIONES ========== */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

@keyframes pulse-orange {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(229, 82, 0, 0.4);
    }
    50% {
        box-shadow: 0 0 0 20px rgba(229, 82, 0, 0);
    }
}

.animate-pulse-orange {
    animation: pulse-orange 2s infinite;
}

/* Animación de reveal (IntersectionObserver compatible) */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== OVERLAYS ========== */
.overlay-orange {
    position: relative;
}

.overlay-orange::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(229, 82, 0, 0.8) 0%, rgba(231, 127, 1, 0.6) 100%);
    z-index: 1;
}

.overlay-orange > * {
    position: relative;
    z-index: 2;
}

/* ========== PROGRESS BAR ========== */
.progress-bar-orange {
    width: 100%;
    height: 8px;
    background-color: var(--gray-200);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(to right, var(--orange-primary), var(--orange-light));
    transition: width 0.3s ease;
}

/* ========== TIMELINE ========== */
.timeline-orange {
    position: relative;
    padding-left: 3rem;
}

.timeline-orange::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--orange-primary), var(--orange-light));
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -3.25rem;
    top: 0.25rem;
    width: 16px;
    height: 16px;
    background-color: var(--orange-primary);
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 0 0 3px var(--orange-50);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    :root {
        --text-h1: 2.5rem;
        --text-h2: 1.75rem;
        --text-h3: 1.25rem;
        --spacing-section: 3rem;
    }
    
    .card-interactive {
        min-height: 280px;
    }
    
    .btn-orange-primary,
    .btn-orange-outline {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

/* ========== UTILITIES ========== */
.text-orange-gradient {
    background: linear-gradient(135deg, var(--orange-primary), var(--orange-medium));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-orange-pattern {
    background-color: var(--orange-50);
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(229, 82, 0, 0.05) 1%, transparent 1%),
        radial-gradient(circle at 75% 75%, rgba(245, 174, 25, 0.05) 1%, transparent 1%);
    background-size: 50px 50px;
}

.shadow-orange {
    box-shadow: var(--shadow-card);
}

.shadow-orange-lg {
    box-shadow: var(--shadow-card-hover);
}
