/* General Styles */
:root {
    --primary-color: #004C99;
    --accent-color: #F4B400;
    --background-color: #F9F9F9;
    --text-color: #333333;
    --light-text: #FFFFFF;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --header-bg: #003366;
    --footer-bg: #003366;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 40px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

body:has(#menu-toggle:checked) {
    overflow: hidden;
}

section[id] {
    scroll-margin-top: 40px;
}

div {
    word-break: break-word;
    overflow-wrap: break-word;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    line-height: 1.2;
}

section {
    padding: 4rem 0;
}

section h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

section > .container > p {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

.btn {
    display: block;
    max-width: max-content;
    margin: auto;
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
}

.btn:hover {
    background-color: transparent;
    color: var(--primary-color);
}

/* Cookie Popup */
#cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 20px;
    max-width: 90%;
    width: 400px;
    z-index: 1000;
    display: none;
}

#cookie-popup p {
    margin-bottom: 15px;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.cookie-buttons button {
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
}

#accept-cookies {
    background-color: var(--primary-color);
    color: white;
}

#reject-cookies {
    background-color: #e0e0e0;
    color: var(--text-color);
}

/* Header */
header {
    background-color: var(--header-bg);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
}

.menu-checkbox {
    display: none;
}

.menu-icon {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.menu-icon span {
    height: 3px;
    width: 100%;
    background-color: white;
    border-radius: 3px;
}

nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 20px;
}

nav ul a {
    color: white;
    font-weight: 500;
}

nav ul a:hover {
    color: var(--accent-color);
}

.nav-btn {
    background-color: var(--accent-color);
    padding: 8px 16px;
    border-radius: 8px;
    color: var(--text-color) !important;
}

.nav-btn:hover {
    background-color: white;
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero {
    background-size: cover;
    background-position: center;
    position: relative;
    height: 80vh;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.6);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    margin: 0 auto;
}

.hero h1 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Curso Section */
.curso-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.curso-image img {
    border-radius: 16px;
    box-shadow: var(--shadow);
}

/* Learning Grid */
.learning-grid,
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.learning-card,
.benefit-card {
    background-color: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.learning-card:hover,
.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.learning-card h3,
.benefit-card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.service-card {
    background-color: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.service-image {
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-card h3 {
    margin-bottom: 10px;
}

.price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-card ul {
    margin-bottom: 20px;
    padding-left: 20px;
    flex-grow: 1;
}

.service-card li {
    margin-bottom: 8px;
}

.featured {
    border: 2px solid var(--accent-color);
}



/* Testimonials Section */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.testimonial-card {
    background-color: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 15px;
}

.testimonial-author {
    text-align: right;
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    background-color: white;
    border-radius: 16px;
    overflow: hidden;
}

.faq-checkbox {
    display: none;
}

.faq-question {
    display: block;
    padding: 20px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    border-radius: 16px;
}

.faq-arrow {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

.faq-arrow::before {
    content: '+';
    font-size: 1.5rem;
}

.faq-checkbox:checked ~ .faq-question .faq-arrow::before {
    content: '-';
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-checkbox:checked ~ .faq-answer {
    max-height: 500px;
    padding: 0 20px 20px;
}

/* Inscripción Section */
.inscripcion-section {
    background-color: #f0f5ff;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

input, select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

select option {
    color: black;
    background-color: white;
}

.form-check {
    margin-bottom: 15px;
}

.form-check input {
    width: auto;
    margin-right: 10px;
}

.form-check label {
    display: inline;
}

/* Footer */
footer {
    background-color: var(--footer-bg);
    color: white;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-column h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.contact-list, .legal-links {
    list-style: none;
}

.contact-list li, .legal-links li {
    margin-bottom: 10px;
}

.legal-links a {
    color: white;
}

.legal-links a:hover {
    color: var(--accent-color);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Gracias page */
.thanks-section {
    min-height: 100vh;
    display: grid;
    align-items: center;
}

.thanks-content {
    background-color: white;
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 2px solid var(--primary-color);
    margin: 5rem auto;
}

.thanks-content h1 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Policy Pages */
.policy-content {
    background-color: white;
    border-radius: 16px;
    padding: 40px;
    margin: 40px auto;
    box-shadow: var(--shadow);
    border: 1px solid #ddd;
}

.policy-content h1 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
}

.policy-content h2 {
    margin: 30px 0 15px;
}

/* Media Queries */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .menu-icon {
        display: flex;
        z-index: 102;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 0;
        background-color: var(--header-bg);
        overflow: hidden;
        transition: all 0.3s ease;
        z-index: 101;
    }
    
    #menu-toggle:checked ~ nav {
        max-height: 100vh;
        height: 100vh;
    }
    
    nav ul {
        flex-direction: column;
        padding: 80px 20px 20px;
        height: 100%;
        gap: 5px;
    }
    
    nav ul li {
        width: 100%;
        text-align: center;
    }
    
    nav ul li a {
        display: block;
        padding: 10px;
        font-size: 1.1rem;
    }
    
    .curso-content {
        grid-template-columns: 1fr;
    }
    
    .curso-image {
        order: -1;
    }
    
    .hero {
        height: auto;
        padding: 60px 0;
    }
    
   
    
   
    
    .thanks-section {
        height: auto;
    }
}

@media (max-width: 480px) {
    section {
        padding: 3rem 0;
    }
    
    .service-image {
        height: 150px;
    }
}
