/**
 * main-modular.css - Componentes modulares de Arrayanmed
 * Este archivo contiene todos los estilos de los componentes principales
 * del sitio: hero section, cards, secciones, grids y elementos decorativos.
 * Está organizado de forma modular para facilitar el mantenimiento.
 */

/* ========== ELEMENTOS DECORATIVOS GLOBALES ========== */
/* Formas flotantes de fondo */
.floating-shapes {
    position: fixed;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: var(--z-normal);
}

.shape {
    position: absolute;
    opacity: 0.05;
}

.shape-1 {
    top: 10%;
    left: 5%;
    width: 150px;
    height: 150px;
    background: var(--primary-green);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: float-1 20s ease-in-out infinite;
}

.shape-2 {
    top: 60%;
    right: 5%;
    width: 200px;
    height: 200px;
    background: var(--accent-gold);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: float-2 25s ease-in-out infinite;
}

.shape-3 {
    bottom: 10%;
    left: 10%;
    width: 100px;
    height: 100px;
    background: var(--primary-green);
    border-radius: 50%;
    animation: float-3 15s ease-in-out infinite;
}

/* ========== HERO SECTION - OPTIMIZADO ========== */
.hero {
    min-height: 70vh; /* Reducido de 100vh a 70vh */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px 40px; /* Reducido de 120px a 80px */
    position: relative;
    background: radial-gradient(circle at 30% 50%, rgba(152, 170, 113, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(230, 199, 87, 0.08) 0%, transparent 50%);
}

/* Decoraciones del hero */
.hero-decorations {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.decoration {
    position: absolute;
    opacity: 0.1;
    font-size: 2rem;
    animation: gentle-float 15s ease-in-out infinite;
}

/* Posicionamiento de decoraciones */
.decoration:nth-child(1) { top: 15%; left: 10%; animation-delay: 0s; }
.decoration:nth-child(2) { top: 20%; right: 15%; animation-delay: 3s; }
.decoration:nth-child(3) { bottom: 20%; left: 15%; animation-delay: 6s; }
.decoration:nth-child(4) { bottom: 15%; right: 10%; animation-delay: 9s; }
.decoration:nth-child(5) { top: 50%; left: 5%; animation-delay: 12s; }
.decoration:nth-child(6) { top: 40%; right: 5%; animation-delay: 15s; }

/* Contenido del hero */
.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* ========== LOGO Y BRANDING ========== */
.logo-wrapper {
    margin-bottom: 50px;
    animation: float 6s ease-in-out infinite;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-container {
    width: 420px;
    height: 420px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 10px 40px rgba(152, 170, 113, 0.15),
                0 0 0 1px rgba(152, 170, 113, 0.1);
    transition: all 0.4s ease;
    margin: 0 auto;
}

.logo-container::before {
    content: '';
    position: absolute;
    inset: -15px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(152, 170, 113, 0.08) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

.logo-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(152, 170, 113, 0.25),
                0 0 0 1px rgba(152, 170, 113, 0.15);
}

.logo-container img {
    width: 75%;
    height: 75%;
    object-fit: contain;
    display: block;  
    position: relative;
    z-index: 1;
}

/* Título de marca */
.brand-title {
    margin-bottom: 60px;
}

.brand-name {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 15px;
    letter-spacing: -1px;
    position: relative;
    display: inline-block;
}

.brand-subtitle {
    font-size: 1.4rem;
    color: var(--text-medium);
    font-weight: 300;
    letter-spacing: 1px;
    font-family: 'Quicksand', sans-serif;
}

/* Estrellas decorativas */
.star {
    color: var(--accent-gold);
    font-size: 2rem;
    vertical-align: middle;
    margin: 0 20px;
    animation: sparkle 2s ease-in-out infinite;
}

/* ========== COUNTDOWN SECTION ========== */
.countdown-section {
    margin: 100px auto;
    max-width: 1000px;
}

.countdown-card {
    background: white;
    border-radius: 30px;
    padding: 60px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

/* Elementos decorativos del countdown */
.countdown-card::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--accent-gold) 0%, transparent 70%);
    opacity: 0.1;
}

.countdown-card::after {
    content: '🌟';
    position: absolute;
    bottom: 20px;
    left: 20px;
    font-size: 3rem;
    opacity: 0.1;
    animation: sparkle 3s ease-in-out infinite;
}

/* Header del countdown */
.countdown-header {
    text-align: center;
    margin-bottom: 50px;
}

.countdown-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.countdown-description {
    font-size: 1.1rem;
    color: var(--text-medium);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
    font-family: 'Quicksand', sans-serif;
}

/* Grid del countdown */
.countdown {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    position: relative;
    z-index: 1;
}

.countdown-item {
    background: var(--bg-cream);
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
}

/* Punto decorativo en countdown items */
.countdown-item::before {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    background: var(--accent-gold);
    border-radius: 50%;
    opacity: 0.2;
}

.countdown-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-green);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.countdown-number {
    font-family: 'Poppins', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 10px;
}

.countdown-label {
    font-size: 0.85rem;
    color: var(--text-medium);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
    font-family: 'Quicksand', sans-serif;
}

/* ========== SECCIONES GENERALES ========== */
.section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

/* Línea decorativa bajo títulos */
.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

/* Icono de sección */
.section-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 36px;
    margin-bottom: 30px;
    box-shadow: 0 8px 20px rgba(152, 170, 113, 0.3);
    position: relative;
}

/* Borde decorativo del icono */
.section-icon::after {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 2px solid var(--primary-green);
    opacity: 0.2;
}

/* ========== ABOUT SECTION ========== */
.about-container {
    background: white;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.08);
}

.about-content {
    padding: 50px; /* Reducido de 80px a 50px */
    position: relative;
}

.about-text {
    columns: 2;
    column-gap: 60px;
    text-align: justify;
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-medium);
}

.about-text p {
    margin-bottom: 30px;
    position: relative;
}

/* Drop cap para el primer párrafo */
.about-text p:first-child::first-letter {
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
    float: left;
    line-height: 0.8;
    margin: 10px 15px 0 0;
    color: var(--primary-green);
    font-weight: 700;
}

/* Cita destacada */
.quote-highlight {
    background: linear-gradient(to right, var(--bg-cream), white);
    border-left: 4px solid var(--accent-gold);
    padding: 30px 40px;
    margin: 40px 0;
    font-style: italic;
    font-size: 1.15rem;
    color: var(--text-dark);
    border-radius: 10px;
    break-inside: avoid;
    column-span: all;
    position: relative;
    font-family: 'Quicksand', sans-serif;
}

.quote-highlight::before {
    content: '"';
    font-size: 4rem;
    color: var(--accent-gold);
    position: absolute;
    top: -10px;
    left: 15px;
    font-family: 'Playfair Display', serif;
}

/* ========== CARDS GENERALES ========== */
/* Card base reutilizable */
.card {
    background: white;
    border-radius: 25px;
    padding: 50px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.12);
}

/* ========== RESPONSIVE ========== */
@media (min-width: 1400px) {
    .logo-container {
        width: 420px;
        height: 420px;
    }
    
    .logo-image {
        max-width: 380px;
    }
    
    .brand-name {
        font-size: 4.5rem;
    }
    
    .brand-subtitle {
        font-size: 1.5rem;
    }
}

@media (max-width: 1024px) {
    .about-text {
        columns: 1;
    }
    
    .countdown {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section {
        padding: 80px 0;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 100px 20px 40px;
    }
    
    .brand-name {
        font-size: 2.5rem;
    }
    
    .brand-subtitle {
        font-size: 1.1rem;
    }
    
    .logo-container {
        width: 340px;
        height: 340px;
    }
    
    .logo-container img {
        width: 75%;
        height: 75%;
        object-fit: contain;
    }
    
    .countdown-card {
        padding: 40px 30px;
    }
    
    .about-content {
        padding: 50px 30px;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .countdown-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .logo-container {
        width: 240px;
        height: 240px;
    }
    
    .logo-container img {
        width: 75%;
        height: 75%;
        object-fit: contain;
    }
    
    .brand-name {
        font-size: 2rem;
    }
    
    .brand-subtitle {
        font-size: 1rem;
    }
    
    .countdown {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .star {
        font-size: 1.5rem;
        margin: 0 10px;
    }
}

/* Breakpoint adicional para móviles muy pequeños */
@media (max-width: 360px) {
    .logo-container {
        width: 200px;
        height: 200px;
    }
    
    .logo-image {
        max-width: 150px;
    }
    
    .brand-name {
        font-size: 1.8rem;
    }
    
    .hero {
        padding: 80px 15px 30px;
    }
}

/* ========== ANIMACIONES ========== */
/* Animaciones de elementos flotantes */
@keyframes float-1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

@keyframes float-2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-30px, 30px) rotate(-120deg); }
    66% { transform: translate(20px, -20px) rotate(-240deg); }
}

@keyframes float-3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, -40px) scale(1.2); }
}

/* Animación de flotación suave */
@keyframes gentle-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(5deg); }
    50% { transform: translateY(0) rotate(-5deg); }
    75% { transform: translateY(10px) rotate(3deg); }
}

/* Animación principal de flotación */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

/* Animación de brillo */
@keyframes sparkle {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}