/* Estilos globales */
:root {
    --primary-color: #004d65;
    --secondary-color: #ff885e;
    --light-bg: #f0f8fa;
    --text-color: #333333;
    --heading-color: #00384d;
    --accent-color: #00695c;
    --gray-light: #f7f9fc;
    --gray-border: #e0e6eb;
}

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

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    color: var(--text-color);
    background-color: var(--gray-light);
    line-height: 1.6;
}

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

/* Cabecera */
.site-header {
    background-color: var(--primary-color);
    color: #fff;
    padding: 1.5rem 0;
    text-align: center;
}

.site-header .logo {
    font-size: 2.2rem;
    font-weight: bold;
    margin-bottom: 0.3rem;
}

.site-header .tagline {
    font-size: 1rem;
    font-weight: normal;
    color: #cde8f1;
}

/* Hero */
.hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    background-color: var(--light-bg);
    padding: 2rem 0;
}

.hero-image {
    flex: 1 1 50%;
    max-width: 500px;
    width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: 8px;
}

.hero-text {
    flex: 1 1 50%;
    padding: 1rem;
}

.hero-text h2 {
    font-size: 1.8rem;
    color: var(--heading-color);
    margin-bottom: 0.5rem;
}

.hero-text p {
    font-size: 1rem;
    color: var(--text-color);
}

/* Artículo */
.article h2 {
    font-size: 1.6rem;
    color: var(--heading-color);
    margin-bottom: 0.5rem;
}

.article h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-top: 1.5rem;
    margin-bottom: 0.4rem;
}

.article p {
    margin-bottom: 1rem;
    text-align: justify;
}

/* Courses */
.courses {
    background-color: #fff;
    border-top: 1px solid var(--gray-border);
    border-bottom: 1px solid var(--gray-border);
    padding: 2rem 0;
}

.courses h2 {
    font-size: 1.6rem;
    color: var(--heading-color);
    margin-bottom: 0.5rem;
}

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

.course-item {
    background-color: var(--gray-light);
    border: 1px solid var(--gray-border);
    border-radius: 6px;
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.course-item h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 0.3rem;
}

.course-item p {
    font-size: 0.95rem;
    margin-bottom: 0.6rem;
}

.course-item .price {
    font-weight: bold;
    color: var(--secondary-color);
}

/* Testimonios */
.testimonials {
    padding: 2rem 0;
}

.testimonials h2 {
    font-size: 1.6rem;
    color: var(--heading-color);
    margin-bottom: 1rem;
    text-align: center;
}

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

.testimonial-item {
    background-color: #fff;
    border: 1px solid var(--gray-border);
    border-radius: 6px;
    padding: 1rem;
    font-size: 0.95rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.testimonial-text {
    margin-bottom: 0.5rem;
    font-style: italic;
}

.testimonial-author {
    font-weight: bold;
    color: var(--primary-color);
}

.review-form-wrapper {
    max-width: 500px;
    margin: 0 auto;
    background-color: var(--gray-light);
    border: 1px solid var(--gray-border);
    border-radius: 6px;
    padding: 1rem;
}

.review-form-wrapper h3 {
    margin-bottom: 0.8rem;
    color: var(--heading-color);
    font-size: 1.2rem;
    text-align: center;
}

/* Contacto */
.contact {
    background-color: #fff;
    padding: 2rem 0;
    border-top: 1px solid var(--gray-border);
}

.contact h2 {
    font-size: 1.6rem;
    color: var(--heading-color);
    margin-bottom: 0.5rem;
}

.contact p {
    margin-bottom: 1rem;
    font-size: 1rem;
}

form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

label {
    margin-bottom: 0.2rem;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    padding: 0.6rem;
    border: 1px solid var(--gray-border);
    border-radius: 4px;
    font-size: 0.95rem;
    width: 100%;
}

textarea {
    resize: vertical;
}

.checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-group label {
    font-weight: normal;
    color: var(--text-color);
}

.btn {
    background-color: var(--secondary-color);
    color: #fff;
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #e9784d;
}

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

.footer-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-info,
.footer-contact,
.footer-links {
    flex: 1 1 250px;
}

.footer-info h4,
.footer-contact h4,
.footer-links h4 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links a {
    color: #cde8f1;
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 1rem;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #cde8f1;
}

/* Política de privacidad */
.policy-header {
    background-color: var(--primary-color);
    color: #fff;
    padding: 2rem 0;
    text-align: center;
}

.policy-content {
    background-color: #fff;
    padding: 2rem 0;
}

.policy-content h2 {
    color: var(--heading-color);
    margin-top: 1.5rem;
    margin-bottom: 0.4rem;
    font-size: 1.3rem;
}

.policy-content p,
.policy-content ul {
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.6;
}

.policy-footer {
    background-color: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 1.5rem 0;
    font-size: 0.85rem;
}

/* Thanks page */
.thanks-page {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background-color: var(--gray-light);
    text-align: center;
}

.thanks-container {
    background-color: #fff;
    padding: 2rem 3rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.thanks-container h1 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.thanks-container p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

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

.modal-content {
    background-color: #fff;
    padding: 2rem;
    border-radius: 6px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .hero {
        flex-direction: column;
    }
    .hero-image,
    .hero-text {
        flex: 1 1 100%;
        max-width: 100%;
    }
    .course-list {
        grid-template-columns: 1fr;
    }
    .testimonial-list {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        flex-direction: column;
        text-align: center;
    }
}