/* Variables de color */
:root {
    --primary-color: #2f5d62; /* verde profundo */
    --secondary-color: #f26b38; /* naranja coral */
    --background-color: #fdfdfd; /* blanco roto */
    --accent-color: #fff5e6; /* beige suave */
    --text-color: #333333;
    --light-gray: #f0f0f0;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* Header */
.main-header {
    background-color: var(--background-color);
    border-bottom: 2px solid var(--light-gray);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.navigation ul {
    list-style: none;
    display: flex;
    gap: 1.2rem;
}

.navigation a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    transition: color 0.3s;
}

.navigation a:hover {
    color: var(--secondary-color);
}

/* Hero */
.hero {
    height: 60vh;
    background-image: url('images/hero.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    margin-top: 70px; /* offset fixed header */
}

.hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(47, 93, 98, 0.6);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    color: #fff;
    max-width: 700px;
    padding: 0 1rem;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.hero p {
    font-size: 1.2rem;
    font-weight: 300;
}

/* Article */
.article-section {
    background-color: var(--accent-color);
    padding: 4rem 0;
}

.article-section h2 {
    margin-bottom: 1rem;
}

.article-section p {
    margin-bottom: 1rem;
    font-weight: 300;
}

/* Courses */
.courses-section {
    padding: 4rem 0;
}

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

.course-card {
    background-color: #fff;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.course-card:hover {
    transform: translateY(-4px);
}

.course-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.course-card h3 {
    font-size: 1.2rem;
    padding: 0.8rem 1rem 0.2rem;
    color: var(--primary-color);
}

.course-card p {
    flex-grow: 1;
    padding: 0 1rem 0.5rem;
    font-size: 0.95rem;
}

.course-card .price {
    font-weight: 600;
    color: var(--secondary-color);
    padding: 0 1rem 0.5rem;
}

.course-card .info-btn {
    margin: 0 1rem 1rem;
    padding: 0.6rem;
    border: none;
    background-color: var(--primary-color);
    color: #fff;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.course-card .info-btn:hover {
    background-color: var(--secondary-color);
}

/* Testimonials */
.testimonials-section {
    background-color: var(--light-gray);
    padding: 4rem 0;
}

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

.testimonial {
    background-color: #fff;
    padding: 1.2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    font-size: 0.95rem;
}

.testimonial p {
    margin-bottom: 0.8rem;
    font-style: italic;
}

.testimonial span {
    font-weight: 600;
    color: var(--primary-color);
}

.testimonial-form {
    margin-top: 3rem;
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.testimonial-form h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.testimonial-form input,
.testimonial-form textarea {
    width: 100%;
    padding: 0.7rem;
    margin-bottom: 1rem;
    border: 1px solid var(--light-gray);
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
}

.testimonial-form button {
    background-color: var(--secondary-color);
    color: #fff;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.testimonial-form button:hover {
    background-color: var(--primary-color);
}

/* Popup */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0,0,0,0.5);
    z-index: 2000;
}

.popup.hidden {
    display: none;
}

.popup-content {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    max-width: 400px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.popup-content button {
    margin-top: 1rem;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    cursor: pointer;
}

.popup-content button:hover {
    background-color: var(--secondary-color);
}

/* Contact */
.contact-section {
    padding: 4rem 0;
}

.contact-section p {
    margin-bottom: 1.5rem;
}

.contact-section form {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-section input,
.contact-section textarea {
    padding: 0.8rem;
    border: 1px solid var(--light-gray);
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.checkbox-wrapper input[type="checkbox"] {
    margin-right: 0.5rem;
}

.contact-section button {
    background-color: var(--secondary-color);
    color: #fff;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.contact-section button:hover {
    background-color: var(--primary-color);
}

/* Footer */
.main-footer {
    background-color: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 2rem 0;
}

.main-footer a {
    color: #fff;
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero h2 {
        font-size: 2rem;
    }
    .navigation ul {
        gap: 0.7rem;
    }
    .course-card img {
        height: 140px;
    }
}
