/* ACADEMIXX STYLESHEET (Blend of YAPYSOFT index + Kodland layout) */

:root {
    /* Main colors from index */
    --cyan: #00AEF7;
    --cyan-shadow: #008cc7;
    --navy: #213347;
    --navy-shadow: #152230;
    --orange: #FF9600;
    --orange-shadow: #CC7B00;
    
    --text-dark: var(--navy);
    --text-muted: rgba(33, 51, 71, 0.7);
    
    /* Backgrounds */
    --bg-white: #ffffff;
    --bg-light-blue: #e8f7ff; /* Very pale cyan */
    --bg-pink: #feeffe; 
    --bg-orange-light: #fff2ed;
    --bg-lime: #f3ffd5;
    --bg-gray: #f7f7f7;

    --radius-sm: 16px;
    --radius-md: 24px;
    --radius-lg: 32px;
    --radius-xl: 44px;
    
    --transition: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', 'Outfit', sans-serif;
    background-color: var(--bg-white);
    color: var(--text-dark);
    line-height: 1.5;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text-dark);
}

h1 { font-size: clamp(36px, 5vw, 60px); }
h2 { font-size: clamp(30px, 4.5vw, 48px); margin-bottom: 24px; }
h3 { font-size: clamp(22px, 3vw, 28px); margin-bottom: 16px; }
p { font-size: 16px; margin-bottom: 16px; font-weight: 600; }

.text-accent {
    position: relative;
    display: inline-block;
    z-index: 1;
}
.text-accent::before {
    content: "";
    position: absolute;
    bottom: 0px;
    left: -10px;
    right: -10px;
    height: 35%;
    border-radius: 20px;
    z-index: -1;
}
.text-accent.cyan::before { background-color: var(--cyan); }
.text-accent.orange::before { background-color: var(--orange); }

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 16px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition);
}
.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 0 #e5e5e5;
    padding: 12px 40px;
}
.logo img {
    height: 36px;
    border-radius: 50%;
    vertical-align: middle;
}
.logo span {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 24px;
    vertical-align: middle;
    margin-left: 8px;
    letter-spacing: -1px;
}
.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}
.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 700;
    font-size: 16px;
    transition: var(--transition);
}
.nav-links a:hover {
    color: var(--cyan);
}

/* Buttons (Duolingo Style) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: 60px;
    font-weight: 800;
    font-size: 16px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: transform 0.1s ease, filter 0.2s ease;
}
.btn-primary {
    background: var(--orange);
    color: #fff;
    border-bottom: 4px solid var(--orange-shadow);
}
.btn-primary:active {
    transform: translateY(4px);
    border-bottom: 0px solid transparent;
    margin-top: 4px; /* compensate for layout shift */
}
.btn-primary:hover {
    filter: brightness(1.1);
}

.btn-secondary {
    background: var(--cyan);
    color: #fff;
    border-bottom: 4px solid var(--cyan-shadow);
}
.btn-secondary:active {
    transform: translateY(4px);
    border-bottom: 0px solid transparent;
    margin-top: 4px;
}
.btn-secondary:hover {
    filter: brightness(1.1);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--text-dark);
    color: var(--text-dark);
}
.btn-outline:hover {
    background: var(--text-dark);
    color: #fff;
}

/* Hero Section */
.hero {
    padding: 160px 40px 80px;
    text-align: center;
    background-color: var(--bg-white);
    position: relative;
    overflow: hidden;
}
.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}
.hero-desc {
    font-size: 18px;
    color: var(--text-muted);
    margin: 24px auto 40px;
    max-width: 650px;
}
.floating-img {
    position: absolute;
    animation: float 6s ease-in-out infinite;
    z-index: 1;
}
.img-left {
    top: 20%;
    left: 5%;
    width: 250px;
    animation-delay: 0s;
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.1));
}
.img-right {
    top: 15%;
    right: 5%;
    width: 250px;
    animation-delay: 2s;
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.1));
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

/* Enfoque Grid */
.enfoque-grid {
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 24px;
}

/* Courses Section */
.courses {
    padding: 80px 40px;
    background-color: var(--bg-white);
}
.courses-container {
    max-width: 1200px;
    margin: 0 auto;
}
.courses-header {
    text-align: center;
    margin-bottom: 64px;
}
.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.course-card {
    border-radius: var(--radius-xl);
    padding: 32px;
    display: flex;
    flex-direction: column;
    min-height: 400px;
    text-decoration: none;
    color: var(--text-dark);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}
.course-card:hover {
    transform: translateY(-8px);
}
.card-pink { background: var(--bg-pink); }
.card-orange { background: var(--bg-orange-light); }
.card-lime { background: var(--bg-lime); }
.card-blue { background: var(--bg-light-blue); }

.course-tag {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(5px);
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 800;
    font-size: 14px;
    align-self: flex-start;
    margin-bottom: 24px;
    color: var(--cyan);
}
.course-img-wrap {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 24px;
}
.course-img-wrap img {
    max-width: 160px;
    transition: transform 0.4s ease;
}
.course-card:hover .course-img-wrap img {
    transform: scale(1.1) rotate(-5deg);
}
.course-card p {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 24px;
}
.course-link {
    font-weight: 800;
    font-size: 18px;
    margin-top: auto;
    position: relative;
    display: inline-block;
    color: var(--cyan);
}
.course-link::after {
    content: "→";
    margin-left: 8px;
    transition: margin-left 0.3s ease;
}
.course-card:hover .course-link::after {
    margin-left: 12px;
}

/* Banner */
.banner {
    grid-column: span 2;
    background: var(--cyan);
    color: white;
    border-radius: var(--radius-xl);
    padding: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.banner h2 { color: white; }
.banner p { color: rgba(255,255,255,0.9); }
.banner-content {
    max-width: 60%;
}
.banner img {
    max-width: 250px;
}

/* Requisitos Section */
.requisitos-list {
    text-align: left;
    margin: 0 auto;
    max-width: 600px;
    background: white;
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.requisitos-list li {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
}
.requisitos-list li::before {
    content: "✅";
    margin-right: 12px;
}

/* Formulario */
.form-container {
    background: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    max-width: 500px;
    margin: 0 auto;
    text-align: left;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--navy);
}
.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    font-family: inherit;
    font-size: 16px;
    transition: border-color 0.3s ease;
}
.form-control:focus {
    outline: none;
    border-color: var(--cyan);
}

/* Footer */
footer {
    background: var(--navy);
    color: #fff;
    padding: 60px 40px;
    text-align: center;
}

/* Responsive */
@media (max-width: 1024px) {
    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .banner {
        grid-column: span 2;
    }
}
@media (max-width: 768px) {
    .courses-grid {
        grid-template-columns: 1fr;
    }
    .banner {
        grid-column: span 1;
        flex-direction: column;
        text-align: center;
    }
    .banner-content {
        max-width: 100%;
        margin-bottom: 24px;
    }
    .hero {
        padding: 120px 24px 60px;
    }
    .img-left, .img-right {
        display: none;
    }
    .enfoque-grid {
        grid-template-columns: 1fr;
    }
}
