/*
Theme Name: MindFullEcosystem
Description: Tema personalizado para MindFullEcosystem - Plataforma de bienestar consciente
Version: 1.0
Author: MindFullEcosystem Team
Text Domain: mindfullecosystem
*/

/* Reset y base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colores MindFullEcosystem */
    --color-primary: #8B4A6B;
    --color-primary-dark: #6B3651;
    --color-accent: #D4A574;
    --color-accent-dark: #B8935F;
    --color-text-base: #333333;
    --color-text-light: #666666;
    --color-blanco: #FFFFFF;
    --color-gris-medio: #F8F9FA;
    --color-beige-suave: #F5F3F0;
    --color-body-background: #FEFEFE;
    --color-electric-blue: #4F9CF9;
    --color-cta-gold: #E6B800;
    
    /* Tipografía */
    --font-serif: 'Crimson Text', serif;
    --font-sans: 'Inter', sans-serif;
    
    /* Spacing */
    --container-max-width: 1200px;
    --border-radius: 12px;
    --border-radius-button: 8px;
    
    /* Shadows */
    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-card-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-button: 0 4px 14px 0 rgba(139, 74, 107, 0.39);
}

/* Tipografía */
@import url('https://fonts.googleapis.com/css2?family=Crimson+Text:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

body {
    font-family: var(--font-sans);
    background-color: var(--color-body-background);
    color: var(--color-text-base);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 700;
    color: var(--color-text-base);
}

/* Container */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header y Navegación */
.main-header {
    background: var(--color-blanco);
    box-shadow: var(--shadow-card);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--color-text-base);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--color-primary);
}

/* Mode Toggle */
.mode-toggle {
    background: var(--color-primary);
    color: var(--color-blanco);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-button);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.mode-toggle:hover {
    background: var(--color-primary-dark);
    transform: scale(1.05);
}

/* Main Content */
.main-content {
    margin-top: 80px; /* Height of fixed header */
    min-height: calc(100vh - 80px);
}

/* Hero Section */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, rgba(139, 74, 107, 0.9), rgba(212, 165, 116, 0.8));
    color: var(--color-blanco);
    padding: 6rem 0;
    text-align: center;
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(139, 74, 107, 0.8), rgba(212, 165, 116, 0.7));
    backdrop-filter: blur(1px);
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    margin-bottom: 2.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: var(--border-radius-button);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-blanco);
    box-shadow: var(--shadow-button);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    transform: scale(1.05);
    color: var(--color-blanco);
}

.btn-accent {
    background: var(--color-accent);
    color: var(--color-blanco);
}

.btn-accent:hover {
    background: var(--color-accent-dark);
    transform: scale(1.05);
    color: var(--color-blanco);
}

.btn-gold {
    background: var(--color-cta-gold);
    color: var(--color-blanco);
    animation: pulse 2s infinite;
}

.btn-gold:hover {
    background: #CC9900;
    transform: scale(1.1);
    color: var(--color-blanco);
}

/* Sections */
.section {
    padding: 4rem 0;
}

.section-light {
    background: var(--color-blanco);
}

.section-gray {
    background: var(--color-gris-medio);
}

.section-beige {
    background: var(--color-beige-suave);
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    text-align: center;
    margin-bottom: 1rem;
    color: var(--color-text-base);
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
}

/* Grid Layouts */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Cards */
.card {
    background: var(--color-blanco);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
    height: 100%;
}

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

.card-icon {
    width: 3rem;
    height: 3rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--color-text-base);
}

.card-description {
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}

/* Images */
.img-responsive {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

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

.img-feature {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: var(--border-radius);
}

/* Footer */
.main-footer {
    background: var(--color-text-base);
    color: var(--color-blanco);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.footer-section a {
    color: var(--color-blanco);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* WordPress Specific */
.wp-block-image {
    margin: 2rem 0;
}

.wp-block-gallery {
    margin: 2rem 0;
}

.wp-block-quote {
    border-left: 4px solid var(--color-primary);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--color-text-light);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-text-base);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #E5E7EB;
    border-radius: var(--border-radius-button);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

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

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

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

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-section {
        padding: 4rem 0;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .hero-section {
        padding: 3rem 0;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.grid { display: grid; }

.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.w-full { width: 100%; }
.h-full { height: 100%; }

.text-primary { color: var(--color-primary); }
.text-accent { color: var(--color-accent); }
.text-white { color: var(--color-blanco); }
.text-gray { color: var(--color-text-light); }

.bg-primary { background-color: var(--color-primary); }
.bg-accent { background-color: var(--color-accent); }
.bg-white { background-color: var(--color-blanco); }
.bg-gray { background-color: var(--color-gris-medio); }
.bg-beige { background-color: var(--color-beige-suave); }

/* Special WordPress Classes */
.alignwide { 
    width: 100vw; 
    position: relative; 
    left: 50%; 
    right: 50%; 
    margin-left: -50vw; 
    margin-right: -50vw; 
}

.alignfull { 
    width: 100vw; 
    position: relative; 
    left: 50%; 
    right: 50%; 
    margin-left: -50vw; 
    margin-right: -50vw; 
}
