/* CSS Reset & Basics */
:root {
    --primary: #003366;
    /* Deep Blue - Professionalism */
    --secondary: #4DA8DA;
    /* Light Blue - Trust/Freshness */
    --accent: #FF8C00;
    /* Orange - Action/Llamativo */
    --text: #333333;
    --text-light: #777777;
    --bg-light: #F4F6F8;
    --white: #FFFFFF;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text);
    line-height: 1.6;
    background-color: var(--white);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--primary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.text-center {
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--accent);
    border-radius: 2px;
}

/* LEFT align title adjust */
.about-text .section-title::after {
    left: 0;
    transform: none;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--white);
    box-shadow: 0 4px 10px rgba(255, 140, 0, 0.3);
}

.btn-primary:hover {
    background-color: #e07b00;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #002244;
}

.btn-outline {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.2rem;
    text-transform: uppercase;
}

.btn-accent {
    background-color: var(--accent);
    color: var(--white);
}

.btn-accent:hover {
    background-color: #e07b00;
    transform: scale(1.05);
}

.btn-link {
    color: var(--secondary);
    padding: 0;
    font-weight: 600;
}

.btn-link:hover {
    color: var(--primary);
}

/* Header */
.main-header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
    /* Reduced padding slightly for better fit with logo */
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    /* Fixed height for the logo */
    width: auto;
}

.main-nav ul {
    display: flex;
    gap: 30px;
    align-items: center;
}

.main-nav a {
    font-weight: 600;
    color: var(--primary);
}

.main-nav a:hover {
    color: var(--accent);
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(244, 246, 248, 1) 0%, rgba(255, 255, 255, 1) 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-content .subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

.hero-bullets {
    margin-bottom: 30px;
}

.hero-bullets li {
    font-size: 1.1rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-bullets i {
    color: var(--secondary);
}

.hero-actions {
    display: flex;
    gap: 15px;
}

.hero-image img {
    border-radius: 20px;
    box-shadow: var(--shadow);
    transform: Rotate(2deg);
    transition: var(--transition);
    max-width: 70%;
    /* Size adjusted to 70% per request */
    margin: 0 auto;
    /* Center it */
}

.hero-image img:hover {
    transform: rotate(0);
}

/* Trust Bar */
.trust-bar {
    background-color: var(--primary);
    padding: 40px 0;
    color: var(--white);
}

.trust-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.trust-item i {
    font-size: 2rem;
    color: var(--secondary);
}

.trust-item span {
    font-weight: 600;
}

/* About Section */
.about-section {
    padding: 80px 0;
}

.about-container {
    /* Simple single col for now mostly text focused as per design request, but can be split */
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

/* Courses Section */
.courses-section {
    background-color: var(--bg-light);
    padding: 80px 0;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.course-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.course-card:hover {
    transform: translateY(-10px);
}

.card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.card-content p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

/* Modalities */
.modalities-section {
    padding: 80px 0;
}

.modalities-wrapper {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.modality-box {
    flex: 1;
    min-width: 250px;
    text-align: center;
    padding: 30px;
    border: 1px solid #eee;
    border-radius: 10px;
    transition: var(--transition);
}

.modality-box:hover {
    border-color: var(--secondary);
    box-shadow: var(--shadow);
}

.modality-box i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.modality-box h3 {
    margin-bottom: 15px;
}

/* Benefits */
.benefits-section {
    background-color: var(--primary);
    padding: 80px 0;
    color: var(--white);
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.benefit-item {
    display: flex;
    gap: 20px;
}

.benefit-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.benefit-icon i {
    font-size: 1.5rem;
    color: var(--accent);
}

.benefit-text h4 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.benefit-text p {
    color: rgba(255, 255, 255, 0.8);
}

/* Testimonials */
.testimonials-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.testimonial-header img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.icon-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--secondary);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.5rem;
}

.testimonial-header h5 {
    margin-bottom: 2px;
    color: var(--primary);
}

.course-label {
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: italic;
}

/* CTA Strong */
.cta-strong {
    background: linear-gradient(rgba(0, 51, 102, 0.9), rgba(0, 51, 102, 0.9)), url('https://placehold.co/1200x600/000/FFF?text=CEFOLAR');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 100px 0;
    text-align: center;
    color: var(--white);
}

.cta-content h2 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 2.5rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* FAQ */
.faq-section {
    padding: 80px 0;
}

.accordion-item {
    border-bottom: 1px solid #ddd;
}

.accordion-header {
    width: 100%;
    background: none;
    border: none;
    padding: 20px;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease;
}

.accordion-body p {
    padding-bottom: 20px;
    color: var(--text-light);
}

.accordion-header.active i {
    transform: rotate(180deg);
}

/* Footer */
.main-footer {
    background-color: #002244;
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: none;
    /* Hide old text class if it sticks around, text replacement will remove it though */
}

.footer-logo-img {
    max-width: 180px;
    height: auto;
    margin-bottom: 20px;
}

.footer-col h4 {
    color: var(--secondary);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.footer-col p {
    margin-bottom: 10px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive */
@media (max-width: 768px) {
    .main-nav {
        display: none;
        /* simple hide for now, JS toggle needed */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        box-shadow: var(--shadow);
        padding: 20px;
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        text-align: center;
    }

    .mobile-toggle {
        display: block;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-bullets li {
        justify-content: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .section-title {
        font-size: 2rem;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .cta-strong {
        background-attachment: scroll;
        /* Better for mobile performance */
        background-image: linear-gradient(rgba(0, 51, 102, 0.9), rgba(0, 51, 102, 0.9)), url('https://placehold.co/1200x600/000/FFF?text=CEFOLAR');
    }
}

/* Whatsapp Floating Widget */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.whatsapp-btn {
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 35px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    color: white;
    box-shadow: 2px 4px 15px rgba(0, 0, 0, 0.3);
}

.whatsapp-chat-box {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 300px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: none;
    /* Hidden by default */
    border: 1px solid #eee;
    animation: fadeIn 0.3s ease;
}

.wa-header {
    background-color: #075e54;
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wa-header span {
    font-weight: 600;
    font-size: 0.95rem;
}

.close-wa {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
}

.wa-body {
    padding: 20px;
    text-align: center;
    background-color: #e5ddd5;
    /* CSS Pattern instead of external image for performance */
    background-image: radial-gradient(#d4c4b7 7%, transparent 7%), radial-gradient(#d4c4b7 7%, transparent 7%);
    background-position: 0 0, 10px 10px;
    background-size: 20px 20px;
    opacity: 1;
}

.btn-whatsapp-send {
    background-color: #25d366;
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.btn-whatsapp-send:hover {
    background-color: #128c7e;
    color: white;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}