:root {
    --primary-color: #f7c607;
    --highlight-color: #f76416;
    --text-color: #333;
    --bg-color: #ffffff;
    --light-bg: #f9f9f9;
    --white: #ffffff;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --max-width: 1200px;
    --header-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-color);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: #1a1a1a;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 20px 0;
}

/* Header styles moved to menu-estilo.css */

/* Hero Section */
.hero {
    height: 70vh;
    /* Adjusted to 70vh */
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--white);
    max-width: 600px;
    padding-left: 0;
    /* Removing padding-left to align with container, but effectively it's in a container */
    margin-left: 0;
}

/* Ensure container alignment in hero */
.hero .container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* Align content to the left */
    height: 100%;
}

.hero h1 {
    font-size: 4.5rem;
    /* Larger */
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    color: var(--white);
}

.hero p.subtitle {
    font-size: 1.5rem;
    /* Increased back from 1.2rem */
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    color: var(--white);
    max-width: 500px;
}

/* Section Components */
section {
    padding: 60px 0;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: #222;
}

.section-intro {
    text-align: left;
    margin-bottom: 40px;
}

/* Introduction / How it Works Redesign */
.intro {
    background-color: #fff;
    padding-top: 80px;
    padding-bottom: 40px;
    /* Reduced from 80px */
}

.intro-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.intro-header span {
    text-transform: uppercase;
    color: var(--highlight-color);
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 10px;
}

.intro-header h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #222;
}

.intro-header p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.benefit-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: left;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    /* Increased shadow */
    border: 1px solid #eee;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--highlight-color));
    transform: scaleX(1);
    /* Permanent, was 0 */
    transform-origin: left;
    transition: transform 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    /* Increased hover shadow */
}

.benefit-card:hover::before {
    transform: scaleX(1);
}

.benefit-card h3 {
    color: #222;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.benefit-card p {
    color: #666;
    font-size: 1rem;
}

.benefit-number {
    font-size: 3rem;
    font-weight: 700;
    color: rgba(247, 100, 22, 0.4);
    /* Increased opacity from 0.1 to 0.4 */
    position: absolute;
    top: 20px;
    right: 20px;
    line-height: 1;
}

/* Course Grid */
.course-grid-section {
    background-color: #f4f4f4;
    padding-top: 40px;
    /* Reduced specific padding, overrides generic section 60px */
}

.course-category-title {
    font-size: 1.5rem;
    margin: 40px 0 20px;
    border-left: 5px solid var(--highlight-color);
    padding-left: 15px;
    color: #444;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.course-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.2s;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.card-body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-tags {
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 20px;
    background: #eef;
    color: #55a;
    font-weight: 600;
}

.tag.online {
    background: #e0f7fa;
    color: #006064;
}

.tag.presencial {
    background: #fce4ec;
    color: #880e4f;
}

.tag.formacion {
    background: #fff8e1;
    color: #ff6f00;
}

.course-card h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
    color: #111;
}

.course-card p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--highlight-color);
    color: var(--white);
    border: none;
    align-self: flex-start;
}

.btn-primary:hover {
    background-color: #d9530e;
}

.btn-hero {
    background-color: var(--highlight-color);
    /* Orange background */
    color: var(--white);
    /* White text */
    margin-top: 20px;
    border: 2px solid var(--highlight-color);
    transition: 0.3s;
}

.btn-hero:hover {
    background-color: #d9530e;
    /* Darker orange on hover */
    border-color: #d9530e;
    color: var(--white);
}


/* About Section */
.about-section {
    background: linear-gradient(135deg, #fff 50%, #fff8e1 100%);
    text-align: center;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-cta {
    margin-top: 30px;
    font-size: 1.1rem;
}

/* Location and Contact */
.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    /* Vertically center content */
}

.map-container iframe {
    width: 100%;
    height: 350px;
    /* Slightly taller */
    border-radius: 20px;
    border: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.location-info h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--highlight-color);
}

.address-text {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.6;
}

.btn-outline {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: 2px solid var(--highlight-color);
    color: var(--highlight-color);
    background: transparent;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: var(--highlight-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(247, 100, 22, 0.2);
}


.contact-form {
    background: var(--light-bg);
    padding: 30px;
    border-radius: 12px;
    max-width: 600px;
    /* Added centering */
    margin: 0 auto;
    /* Added centering */
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
}

.form-group button {
    width: 100%;
}

/* Footer */
footer {
    background-color: #222;
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: flex-start;
}

.footer-col {
    flex: 1;
    min-width: 200px;
    margin-bottom: 30px;
}

.footer-col h4 {
    color: var(--highlight-color);
    margin-bottom: 25px;
    font-size: 1.2rem;
    position: relative;
    display: inline-block;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 2px;
    background: var(--highlight-color);
    bottom: -5px;
    left: 0;
}

.footer-col p {
    color: #ccc;
    line-height: 1.8;
}

.footer-col a {
    color: #ccc;
    text-decoration: none;
    transition: 0.3s;
}

.footer-col a:hover {
    color: var(--highlight-color);
}

.footer-col i {
    margin-right: 8px;
    color: var(--highlight-color);
    font-size: 1.1rem;
    vertical-align: middle;
}

/* Footer Logo */
.footer-logo img {
    max-width: 180px;
    filter: brightness(0) invert(1);
    /* Make logo white if it's not transparent/white already, adjust if needed */
    margin-bottom: 20px;
}

/* Footer Links */
.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links li a {
    display: flex;
    align-items: center;
}

.footer-links li a::before {
    content: '›';
    margin-right: 8px;
    color: var(--highlight-color);
    font-size: 1.2rem;
    line-height: 0;
    position: relative;
    top: -2px;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
}

/* Force social icons to be white */
.social-icons i {
    color: var(--white) !important;
    font-size: 1.5rem;
    margin: 0;
    /* Remove default footer i margin */
}

.social-icons a:hover {
    background: var(--highlight-color);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    border-top: 1px solid #444;
    padding-top: 30px;
    margin-top: 20px;
    font-size: 0.9rem;
    color: #888;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    /* Header mobile styles moved to menu-estilo.css */

    .hero h1 {
        font-size: 2.5rem;
    }

    .grid-2-col {
        grid-template-columns: 1fr;
    }

    .location-info {
        text-align: center;
        margin-top: 20px;
    }

    .contact-section .section-intro {
        text-align: center;
    }

    .contact-section .section-title {
        text-align: center;
    }

    .contact-methods .benefit-card {
        text-align: center !important;
        /* Force override inline style */
    }

    /* Center Cursos section on mobile */
    .courses-section .section-title,
    .courses-section .section-intro,
    .course-category-title {
        text-align: center;
    }

    /* Footer Mobile Centering */
    .footer-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px !important;
        /* Force gap override */
    }

    .footer-col {
        width: 100%;
        /* Ensure full width for centering */
        min-width: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 20px;
    }

    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
        /* Center the underline */
    }

    .footer-links li a {
        justify-content: center;
        /* Center links */
    }

    .social-icons {
        justify-content: center;
        /* Center social icons */
    }

    .footer-col p {
        text-align: center;
    }

    /* Remove left margin from span in address on mobile if needed, or adjust globally */
    .footer-col p span {
        margin-left: 0 !important;
    }
}

/* Page Headers (Subpages) - Removed orange header */

/* Page Headers (Subpages) - Removed orange header */

.section-padding {
    padding: 80px 0;
}

/* Reduced padding for Contact Section specifically */
.contact-section.section-padding {
    padding-top: 40px;
    padding-bottom: 80px;
}

.conocenos-content {
    padding-top: 40px;
    /* Reduced from generic 80px */
}

.align-center {
    align-items: center;
}

.text-content p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    color: #444;
    line-height: 1.8;
}


/* Conocenos Typography */
.conocenos-title {
    font-size: 3.5rem;
    color: #222;
    margin-bottom: 5px;
    line-height: 1.1;
}

.conocenos-subtitle {
    font-family: var(--font-heading);
    font-weight: 300;
    color: var(--highlight-color);
    font-size: 1.5rem;
    margin-bottom: 40px;
    display: block;
}

/* Conocenos Float Layout */
.image-float {
    float: right;
    width: 45%;
    margin-left: 50px;
    margin-bottom: 30px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.image-float img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.image-float:hover img {
    transform: scale(1.03);
}

.text-flow p {
    margin-bottom: 25px;
    font-size: 1.1rem;
    color: #444;
    line-height: 1.8;
}

/* Clearfix for container */
.container::after {
    content: "";
    display: table;
    clear: both;
}

@media (max-width: 768px) {
    .image-float {
        float: none;
        width: 100%;
        margin-left: 0;
        margin-bottom: 40px;
    }
}

.image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.image-wrapper img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.image-wrapper:hover img {
    transform: scale(1.03);
}

/* Course Detail Page Styles */
.course-header {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('img/hero-image.jpg') center/cover no-repeat;
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding-top: var(--header-height);
}

.course-header h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.course-header h2 {
    font-size: 1.5rem;
    font-weight: 300;
}

.course-detail-content {
    padding: 80px 0;
    max-width: 900px;
    margin: 0 auto;
}

.course-detail-content h3 {
    font-size: 1.8rem;
    color: var(--highlight-color);
    margin-top: 40px;
    margin-bottom: 20px;
}

.course-detail-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 20px;
}

.course-features {
    list-style: none;
    margin-bottom: 30px;
}

.course-features li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 25px;
    font-size: 1.1rem;
}

.course-features li::before {
    content: '•';
    color: var(--highlight-color);
    font-weight: bold;
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -5px;
}

/* New Course Visuals */
.course-intro-text {
    font-size: 1.2rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    color: #555;
}

.course-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.course-feature-card {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    border-top: 4px solid var(--highlight-color);
}

.course-feature-card:hover {
    transform: translateY(-5px);
}

.course-feature-card h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #222;
    display: flex;
    align-items: center;
    gap: 10px;
}

.course-feature-card i {
    font-size: 1.5rem;
    color: var(--highlight-color);
}

.course-feature-card ul {
    list-style: none;
    padding: 0;
}

.course-feature-card ul li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
    font-size: 0.95rem;
    color: #666;
}

.course-feature-card ul li::before {
    content: '✓';
    color: var(--highlight-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Contact Section Alignment (Global) */
.contact-section .section-title,
.contact-section .section-intro {
    text-align: center;
}

/* WhatsApp Widget */
.whatsapp-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    font-family: 'Helvetica', sans-serif;
}

/* Floating Button */
.whatsapp-toggle {
    background-color: #25D366;
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
}

/* Chat Box */
.whatsapp-chat {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 320px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    transform-origin: bottom right;
}

.whatsapp-chat.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Chat Header */
.whatsapp-header {
    background-color: #075E54;
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.whatsapp-profile {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.whatsapp-profile img {
    width: 100%;
    height: auto;
}

.whatsapp-info {
    display: flex;
    flex-direction: column;
}

.whatsapp-name {
    font-weight: bold;
    font-size: 1.1rem;
}

.whatsapp-status {
    font-size: 0.8rem;
    opacity: 0.9;
}

.close-whatsapp {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    position: absolute;
    top: 15px;
    right: 15px;
    cursor: pointer;
    opacity: 0.8;
}

.close-whatsapp:hover {
    opacity: 1;
}

/* Chat Body */
.whatsapp-body {
    background-color: #E5DDD5;
    padding: 20px;
    height: 200px;
    background-image: url('https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png');
    /* Standard WA bg pattern */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.whatsapp-message {
    background: white;
    padding: 10px 15px;
    border-radius: 0 15px 15px 15px;
    position: relative;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    max-width: 85%;
    align-self: flex-start;
}

.whatsapp-message-name {
    font-size: 0.8rem;
    color: #075E54;
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
}

.whatsapp-message p {
    color: #111;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0;
}

.whatsapp-time {
    display: block;
    text-align: right;
    font-size: 0.7rem;
    color: #999;
    margin-top: 5px;
}

/* Chat Footer */
.whatsapp-footer {
    padding: 15px;
    background: #f0f0f0;
    text-align: center;
}

.btn-whatsapp-start {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #25D366;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: bold;
    transition: background 0.3s;
    width: 100%;
}

.btn-whatsapp-start:hover {
    background-color: #128C7E;
}