/*
    CSS for 'Cursos de Inglés en Colombia'
    Design System: Corporativo
    Trend: Volumetric UI elements
    Color Scheme: Яркая (Bright)
    Animation Style: 3D-эффекты
*/

/* ----------------------------------------------------------------
    1. CSS Variables & Root Styles
   ---------------------------------------------------------------- */
:root {
    /* Color Palette */
    --primary-color: #ec4899;      /* Bright Pink */
    --primary-dark-color: #c72b62; /* Darker Pink for 3D shadows */
    --accent-color: #f59e0b;        /* Bright Amber */
    --accent-dark-color: #d97706;  /* Darker Amber for 3D shadows */
    --text-color-dark: #1f2937;    /* Dark Gray for main text */
    --text-color-light: #f9fafb;   /* Off-white for dark backgrounds */
    --text-color-muted: #6b7280;   /* Muted Gray for secondary text */
    --bg-color-light: #f8fafc;     /* Very Light Gray for body */
    --bg-color-white: #ffffff;     /* Pure White for cards */
    --bg-color-dark: #1f2937;      /* Dark Gray for footer */
    --border-color: #e5e7eb;       /* Light Gray for borders */

    /* Typography */
    --font-header: 'Inter', sans-serif;
    --font-body: 'IBM Plex Sans', sans-serif;

    /* Effects */
    --card-shadow: 0 10px 20px rgba(0, 0, 0, 0.08), 0 4px 8px rgba(0, 0, 0, 0.06);
    --card-shadow-hover: 0 15px 30px rgba(0, 0, 0, 0.12), 0 8px 12px rgba(0, 0, 0, 0.1);
    --transition-fast: all 0.2s ease-in-out;
    --transition-medium: all 0.3s ease-in-out;
}

/* ----------------------------------------------------------------
    2. Base & Typography Styles
   ---------------------------------------------------------------- */
body {
    background-color: var(--bg-color-light);
    color: var(--text-color-dark);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-header);
    font-weight: 900;
    color: var(--text-color-dark);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.05);
}

h2 {
    text-align: center;
    margin-bottom: 3rem;
}

p {
    line-height: 1.65;
    color: var(--text-color-muted);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--primary-dark-color);
}

/* ----------------------------------------------------------------
    3. Global Components & UI Elements
   ---------------------------------------------------------------- */

/* -- Buttons -- */
.btn, button, input[type='submit'] {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 0.5rem;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: var(--transition-fast);
    text-decoration: none !important;
}

.btn-3d {
    color: var(--text-color-light);
    background-color: var(--primary-color);
    transform: translateY(0);
    box-shadow: 0 5px 0 var(--primary-dark-color);
}

.btn-3d:hover {
    transform: translateY(2px);
    box-shadow: 0 3px 0 var(--primary-dark-color);
    filter: brightness(1.05);
}

.btn-3d:active {
    transform: translateY(5px);
    box-shadow: 0 0 0 var(--primary-dark-color);
}

.btn-3d-accent {
    background-color: var(--accent-color);
    color: var(--text-color-dark);
    box-shadow: 0 5px 0 var(--accent-dark-color);
}

.btn-3d-accent:hover {
    box-shadow: 0 3px 0 var(--accent-dark-color);
}
.btn-3d-accent:active {
    box-shadow: 0 0 0 var(--accent-dark-color);
}

/* -- Cards -- */
.card {
    background-color: var(--bg-color-white);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition-medium);
    display: flex;
    flex-direction: column;
}

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

.card-image, .image-container {
    height: 220px; /* Fixed height for consistency */
    overflow: hidden;
}

.card-image img, .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers the area without distortion */
    transition: transform 0.4s ease;
}

.card:hover .card-image img,
.card:hover .image-container img {
    transform: scale(1.05);
}

.card-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.card-content h3 {
    margin-bottom: 0.75rem;
}
.card-content p {
    margin-bottom: 1.5rem;
    flex-grow: 1; /* Pushes the link to the bottom */
}
.card-content a {
    font-weight: bold;
    color: var(--primary-color);
    align-self: flex-start;
}

/* -- Forms -- */
.input-3d {
    width: 100%;
    padding: 0.9rem;
    border-radius: 0.5rem;
    border: 2px solid var(--border-color);
    background-color: var(--bg-color-light);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.06);
    transition: var(--transition-medium);
}

.input-3d:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.3), inset 0 2px 4px rgba(0,0,0,0.06);
}

/* ----------------------------------------------------------------
    4. Section Specific Styles
   ---------------------------------------------------------------- */

/* -- Header -- */
#header.sticky {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* -- Hero Section -- */
#hero {
    color: var(--text-color-light);
}

#hero .parallax-bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Simple parallax effect */
}

#hero h1 {
    color: var(--text-color-light);
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.6);
}

/* -- Statistics Section -- */
.stat-item .text-6xl {
    font-weight: 900;
}

/* -- Testimonials Section -- */
#testimonials {
    background: linear-gradient(45deg, var(--primary-color), #a21caf);
    position: relative;
}
#testimonials h2 {
    color: var(--text-color-light);
}

#testimonials .card {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: none;
}
#testimonials .card:hover {
    transform: translateY(0);
    background-color: rgba(255, 255, 255, 0.15);
}

#testimonials p, #testimonials h3 {
    color: var(--text-color-light);
}
#testimonials .font-bold {
    color: var(--accent-color);
}

/* -- Carousel Styles -- */
.overflow-x-auto {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
.overflow-x-auto::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}


/* -- Progress Indicators -- */
.progress-bar-container {
    width: 100%;
    background-color: var(--border-color);
    border-radius: 9999px;
    height: 10px;
}
.progress-bar-fill {
    background-color: var(--accent-color);
    height: 100%;
    border-radius: 9999px;
}


/* -- Footer -- */
footer a {
    color: #9ca3af; /* text-gray-400 */
}
footer a:hover {
    color: var(--text-color-light);
}

/* ----------------------------------------------------------------
    5. Page-Specific Containers
   ---------------------------------------------------------------- */

/* -- For success.html -- */
.success-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    padding: 2rem;
    background: linear-gradient(45deg, #fdf4f8, #f3e8f7);
}

.success-card {
    background: var(--bg-color-white);
    padding: 3rem 4rem;
    border-radius: 1.5rem;
    box-shadow: var(--card-shadow);
    max-width: 600px;
}
.success-card h1 {
    color: var(--primary-color);
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* -- For privacy.html & terms.html -- */
.legal-page-content {
    padding-top: 120px; /* Account for sticky header */
    padding-bottom: 4rem;
    min-height: 80vh;
}
.legal-page-content h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}
.legal-page-content h2 {
    font-size: 1.75rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    text-align: left;
}
.legal-page-content p,
.legal-page-content li {
    color: var(--text-color-muted);
    margin-bottom: 1rem;
}
.legal-page-content ul {
    list-style-type: disc;
    padding-left: 2rem;
}


/* ----------------------------------------------------------------
    6. Animations & Utilities
   ---------------------------------------------------------------- */

/* For ScrollReveal.js */
.reveal {
    visibility: hidden;
}