/* ================================
   COLEGIO DE MEDIADORES EDOMEX
   Custom CSS Styles
   ================================ */

/* ===== VARIABLES CSS ===== */
:root {
    --primary-color: #23211D;        /* Negro */
    --secondary-color: #593A27;      /* Marrón Oscuro */
    --accent-color: #A87E34;         /* Dorado Oscuro */
    --accent2-color: #E6C665;        /* Dorado Claro */
    --light-color: #DCDCDC;          /* Gris Claro */
    --white-color: #FFFFFF;          /* Blanco Puro */
    
    --transition-fast: 0.2s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;
    
    --shadow-soft: 0 4px 20px rgba(35, 33, 29, 0.1);
    --shadow-medium: 0 8px 30px rgba(35, 33, 29, 0.15);
    --shadow-strong: 0 15px 40px rgba(35, 33, 29, 0.2);
}

/* ===== RESET AND BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--primary-color);
    background-color: var(--light-color);
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    line-height: 1.2;
}

.font-playfair {
    font-family: 'Playfair Display', serif;
    font-style: italic;
}

/* ===== CUSTOM BUTTON STYLES ===== */
.btn-primary {
    @apply bg-accent hover:bg-accent/90 text-white px-6 py-3 rounded-lg font-montserrat font-medium transition-all duration-300 hover:shadow-lg hover:-translate-y-0.5 inline-flex items-center justify-center;
}

.btn-secondary {
    @apply bg-secondary hover:bg-secondary/90 text-white px-6 py-3 rounded-lg font-montserrat font-medium transition-all duration-300 hover:shadow-lg hover:-translate-y-0.5 inline-flex items-center justify-center;
}

.btn-accent {
    @apply bg-accent2 hover:bg-accent2/90 text-primary px-6 py-3 rounded-lg font-montserrat font-semibold transition-all duration-300 hover:shadow-lg hover:-translate-y-0.5 inline-flex items-center justify-center;
}

.btn-outline-light {
    @apply border-2 border-white text-white hover:bg-white hover:text-primary px-6 py-3 rounded-lg font-montserrat font-medium transition-all duration-300 hover:shadow-lg hover:-translate-y-0.5 inline-flex items-center justify-center;
}

.btn-outline-primary {
    @apply border-2 border-primary text-primary hover:bg-primary hover:text-white px-6 py-3 rounded-lg font-montserrat font-medium transition-all duration-300 hover:shadow-lg hover:-translate-y-0.5 inline-flex items-center justify-center;
}

/* ===== NAVIGATION STYLES ===== */
.nav-link {
    position: relative;
    overflow: hidden;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent2-color));
    transition: width var(--transition-normal);
}

.nav-link:hover::after {
    width: 100%;
}

.navbar-scrolled {
    background: rgba(254, 255, 254, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-soft);
}

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

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

@keyframes floatDelayed {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(191, 134, 65, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(191, 134, 65, 0.6);
    }
}

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

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

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

.animate-pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* ===== HOVER EFFECTS ===== */
.hover-lift {
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.hover-scale {
    transition: transform var(--transition-fast);
}

.hover-scale:hover {
    transform: scale(1.05);
}

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

.gradient-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(35, 33, 29, 0.8) 0%, rgba(115, 73, 57, 0.6) 100%);
    z-index: 1;
}

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

/* ===== CARD STYLES ===== */
.card-hover {
    transition: all var(--transition-normal);
    border: 1px solid transparent;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-strong);
    border-color: var(--accent-color);
}

.card-glass {
    background: rgba(254, 255, 254, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(254, 255, 254, 0.2);
}

/* ===== SECTION DIVIDERS ===== */
.section-divider {
    position: relative;
    padding: 100px 0;
}

.section-divider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent2-color));
    border-radius: 2px;
}

/* ===== LOADING STATES ===== */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ===== FORM STYLES ===== */
.form-input {
    @apply w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-accent focus:border-transparent transition-all duration-300;
}

.form-input:focus {
    box-shadow: 0 0 0 3px rgba(191, 134, 65, 0.1);
}

.form-label {
    @apply block text-sm font-montserrat font-medium text-primary mb-2;
}

/* ===== RESPONSIVE UTILITIES ===== */
.container-custom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== ACCESSIBILITY ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles for better accessibility */
*:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.btn-primary:focus,
.btn-secondary:focus,
.btn-accent:focus {
    outline: 2px solid white;
    outline-offset: 2px;
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* ===== MEDIA QUERIES ===== */
@media (max-width: 768px) {
    .container-custom {
        padding: 0 16px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .btn-primary,
    .btn-secondary,
    .btn-accent {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .section-divider {
        padding: 60px 0;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .no-print {
        display: none !important;
    }
    
    * {
        color: black !important;
        background: white !important;
    }
}

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000000;
        --secondary-color: #333333;
        --accent-color: #0066CC;
        --accent2-color: #FF6600;
        --light-color: #FFFFFF;
    }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .animate-float,
    .animate-float-delayed,
    .animate-pulse-glow {
        animation: none;
    }
}

/* ===== DARK MODE SUPPORT (Future Enhancement) ===== */
@media (prefers-color-scheme: dark) {
    /* 
    Future dark mode implementation
    body {
        background-color: var(--primary-color);
        color: var(--light-color);
    }
    */
}