/* ========================================================================= */
/* --------------------------- RESET AND BASE STYLES ----------------------- */
/* ========================================================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #e0e0e0;
    background-image: linear-gradient(to bottom, rgba(12, 3, 20, 0.99), rgba(20, 8, 35, 0.99));
    background-color: #0c0314; /* Fallback color */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    line-height: 1.6;
}

body.no-scroll {
    overflow-y: hidden;
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: transparent;
    z-index: -1;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ========================================================================= */
/* --------------------------- CSS CUSTOM PROPERTIES ----------------------- */
/* ========================================================================= */

:root {
    --primary-color: #FF3B5F;
    --primary-color-darker: #B31E3C;
    --primary-color-hover-border: #FF5C7A;
    --primary-color-hover-bg: #CC2F4F;
    --secondary-color: #8E2DE2;
    --secondary-color-darker: #5D129C;
    --secondary-color-hover-border: #A450ED;
    --secondary-color-hover-bg: #7017B8;
    --tertiary-color: #4A00E0;
    --text-light: #f0f0f0;
    --text-dark: #333;
    --bg-dark-primary: rgba(18, 5, 30, 0.88);
    --bg-dark-secondary: rgba(25, 10, 40, 0.85);
    --card-bg: rgba(30, 15, 50, 0.75);
    --header-height: 70px;
}

/* ========================================================================= */
/* ------------------------------- HEADER STYLES --------------------------- */
/* ========================================================================= */

header {
    padding: 10px 0;
    background-color: rgba(10, 2, 15, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s ease, padding 0.3s ease;
}

header.scrolled {
    background-color: rgba(10, 2, 15, 0.9);
    padding: 8px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.logo-area {
    display: flex;
    align-items: center;
}
.logo-img {
    height: 55px;
    width: auto;
    margin-right: 12px;
    object-fit: contain;
    transition: height 0.3s ease, transform 0.3s ease;
}
.logo-img:hover {
     transform: scale(1.08) rotate(-2deg);
}
header.scrolled .logo-img {
    height: 38px;
}

header nav {
    display: none; /* Hidden by default, shown on desktop via media query */
}
header nav ul {
    list-style: none;
    display: flex;
}
header nav ul li {
    margin-left: 25px;
}
header nav ul li a {
    text-decoration: none;
    color: #ccc;
    font-weight: 500;
    font-size: 0.95em;
    text-transform: capitalize;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    padding: 5px 0;
    position: relative;
}
header nav ul li a:hover,
header nav ul li a.active-nav {
    color: var(--text-light);
    text-shadow: 0 0 8px var(--primary-color);
}

header nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 5px;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.5);
    transition: width 0.4s ease;
}

header nav ul li a:hover::after,
header nav ul li a.active-nav::after {
    width: 100%;
}


/* --- Mobile Navigation --- */
.mobile-nav-toggle {
    display: none; /* Hidden by default, shown on mobile */
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}
.hamburger-icon {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-light);
    position: relative;
    transition: background-color 0s 0.3s;
}
.hamburger-icon::before,
.hamburger-icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--text-light);
    transition: transform 0.3s ease-in-out, top 0.3s ease-in-out;
}
.hamburger-icon::before { top: -8px; }
.hamburger-icon::after { top: 8px; }

.mobile-nav-toggle[aria-expanded="true"] .hamburger-icon {
    background-color: transparent;
}
.mobile-nav-toggle[aria-expanded="true"] .hamburger-icon::before {
    transform: rotate(45deg);
    top: 0;
}
.mobile-nav-toggle[aria-expanded="true"] .hamburger-icon::after {
    transform: rotate(-45deg);
    top: 0;
}

#mobile-menu {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: rgba(15, 5, 30, 0.98);
    flex-direction: column;
    align-items: center;
    padding: 40px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
}
#mobile-menu.is-active {
    display: flex;
}
#mobile-menu nav ul {
    flex-direction: column;
    width: 100%;
    text-align: center;
}
#mobile-menu nav ul li {
    margin: 0;
    width: 100%;
}
#mobile-menu nav ul li a {
    display: block;
    padding: 20px 0;
    font-size: 1.2em;
    color: var(--text-light);
}

/* ========================================================================= */
/* ------------------------ MAIN CONTENT AND HERO SECTION ------------------ */
/* ========================================================================= */

main {
    flex-grow: 1;
    padding-top: var(--header-height);
    position: relative;
    z-index: 1;
}

#hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--header-height));
    text-align: center;
    width: 100%;
    position: relative;
    overflow: hidden;
    padding: 40px 20px 20px 20px;
    background-image: linear-gradient(rgba(12, 3, 20, 0.7), rgba(20, 8, 35, 0.7)), url('img/my-background.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.hero-slider-content-wrapper {
    position: relative;
    width: 100%;
    max-width: 850px;
    min-height: 48vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
}

.hero-slide-text {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 95%;
    max-width: 100%;
    transform: translate(-50%, -50%);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0s linear 0.8s;
    z-index: 1;
}
.hero-slide-text.active-slide {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.8s ease-in-out, visibility 0s linear 0s;
    z-index: 2;
}

.hero-slide-inner-content {
    animation: fadeInHeroContent 0.8s ease-out 0.2s backwards;
}
@keyframes fadeInHeroContent {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}
.hero-slide-text.active-slide .hero-slide-inner-content {
    animation-name: fadeInHeroContent;
}

.hero-slide-inner-content h1 {
    margin-bottom: 15px;
    line-height: 1.15;
}
.hero-slide-inner-content h1 .line1 {
    display: block;
    font-size: clamp(1.5em, 3.8vw, 2.2em);
    font-weight: 900;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 8px var(--primary-color);
}
.hero-slide-inner-content h1 .line2 {
    display: block;
    font-size: clamp(1.8em, 4.5vw, 2.8em);
    font-weight: 900;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 3px;
    text-shadow: 0 0 8px rgba(255,255,255,0.2);
}
.hero-slide-inner-content p {
    font-size: clamp(0.85em, 2vw, 1.0em);
    line-height: 1.5;
    color: #c0c0c0;
    text-shadow: 0 0 3px rgba(0,0,0,0.5);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-navigation-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 3;
    padding-top: 15px;
    padding-bottom: 20px;
}
.hero-navigation-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    padding:0;
}
.hero-navigation-dots .dot:hover {
    background-color: rgba(255, 255, 255, 0.7);
    transform: scale(1.2);
}
.hero-navigation-dots .dot.active-dot {
    background-color: var(--primary-color);
    transform: scale(1.3);
    box-shadow: 0 0 8px var(--primary-color);
}

/* ========================================================================= */
/* --------------------------- GENERAL BUTTON STYLES ----------------------- */
/* ========================================================================= */

.btn {
    padding: 12px 28px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85em;
    letter-spacing: 0.7px;
    transition: transform 0.2s ease, box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    display: inline-block;
}
.btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.btn-primary {
    background-color: var(--primary-color-darker);
    color: var(--text-light);
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 8px 0px var(--primary-color),
                0 0 12px 0px rgba(255, 59, 95, 0.7);
}
.btn-primary:hover {
    background-color: var(--primary-color-hover-bg);
    border-color: var(--primary-color-hover-border);
    box-shadow: 0 0 12px 0px var(--primary-color-hover-border),
                0 0 20px 0px rgba(255, 92, 122, 0.8);
}

.btn-secondary {
    background-color: var(--secondary-color-darker);
    color: var(--text-light);
    border: 2px solid var(--secondary-color);
    box-shadow: 0 0 8px 0px var(--secondary-color),
                0 0 12px 0px rgba(142, 45, 226, 0.7);
}
.btn-secondary:hover {
    background-color: var(--secondary-color-hover-bg);
    border-color: var(--secondary-color-hover-border);
    box-shadow: 0 0 12px 0px var(--secondary-color-hover-border),
                0 0 20px 0px rgba(164, 80, 237, 0.8);
}

.btn-tertiary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 6px 0px rgba(255, 59, 95, 0.2);
}
.btn-tertiary:hover {
    background-color: rgba(255, 59, 95, 0.1);
    color: var(--text-light);
    border-color: #ff5074;
    box-shadow: 0 0 12px 1px rgba(255, 59, 95, 0.4);
}

/* ========================================================================= */
/* ------------------------- CONTENT SECTION STYLING ----------------------- */
/* ========================================================================= */

.content-section {
    padding: 70px 0;
    background-color: transparent;
    position: relative;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.content-section h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: clamp(1.8em, 5vw, 2.5em);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 8px rgba(255, 59, 95, 0.4);
}
.content-section .icon img {
    vertical-align: middle;
    margin-right: 10px;
    width: 60px;
    height: 60px;
}
.content-section .section-subtitle {
    text-align: center;
    color: #b0b0b0;
    margin-bottom: 40px;
    font-size: clamp(1em, 3vw, 1.15em);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Philosophy Section --- */
.philosophy-content {
    color: #c0c0c0;
}
.philosophy-content p {
    margin-bottom: 25px;
    line-height: 1.7;
}
.philosophy-content > p:first-of-type,
.philosophy-content > p:nth-of-type(2) {
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.philosophy-content > p:nth-of-type(2) {
    margin-bottom: 40px;
}
.philosophy-content > p:last-of-type {
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #d0d0d0;
    font-weight: 600;
    font-size: clamp(1.05em, 3.2vw, 1.2em);
    line-height: 1.65; 
    margin-top: 40px;
    text-shadow: 0 0 6px rgba(142, 45, 226, 0.35);
}

.pilares-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px 0;
}
.pilar-card {
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid var(--secondary-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2), 0 0 10px rgba(142, 45, 226, 0.1) inset;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pilar-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3), 0 0 15px rgba(142, 45, 226, 0.2) inset;
}
.pilar-card h4 {
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-size: 1.2em;
}
.pilar-card p {
    font-size: 0.95em;
    color: #b0b0b0;
}

/* --- Benefits Section --- */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.benefit-item {
    text-align: center;
    padding: 20px;
    background-color: var(--card-bg);
    border-radius: 10px;
    border-top: 3px solid var(--primary-color);
    transition: transform 0.3s ease;
}
.benefit-item:hover {
    transform: scale(1.03);
}
.benefit-icon {
    margin-bottom: 15px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.benefit-icon img {
    max-height: 100%;
    width: auto;
}
.benefit-item h3 {
    color: var(--text-light);
    margin-bottom: 10px;
    font-size: 1.25em;
}

/* --- Video Section --- */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto 30px auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    object-fit: cover;
}
.video-cta {
    text-align: center;
    margin-top: 30px;
}

/* --- Programs Section --- */
.program-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.program-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.program-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.35), 0 0 15px var(--primary-color);
}
.program-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 3px solid var(--primary-color);
}
.program-card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.program-card-content h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.3em;
}
.program-card-content p {
    margin-bottom: 20px;
    font-size: 0.95em;
    flex-grow: 1;
}
.program-card-content .btn {
    align-self: flex-start;
}

/* --- Schedule Section --- */
.schedule-table-wrapper {
    overflow-x: auto;
    padding: 5px;
    background-color: rgba(0,0,0,0.2);
    border-radius: 10px;
    box-shadow: 0 0 20px -5px var(--primary-color);
    margin: 0 auto 40px auto;
}
.schedule-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
    color: #f0f0f0;
    font-weight: 500;
}
.schedule-table th, .schedule-table td {
    border: 1px solid rgba(255,255,255,0.1);
    padding: 12px;
    text-align: center;
    vertical-align: middle;
}
.schedule-table thead th {
    background-color: rgba(255,59,95,0.2);
    color: var(--primary-color);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 1.1em;
    text-shadow: 0 0 5px var(--primary-color);
}
.schedule-table tbody .time-slot {
    font-weight: 700;
    color: var(--secondary-color);
    text-shadow: 0 0 5px var(--secondary-color);
    background-color: rgba(142,45,226,0.1);
}
.schedule-table tbody td {
    transition: background-color 0.3s ease;
    height: 60px;
}
.schedule-table tbody td:not(.time-slot):hover {
    background-color: rgba(255,255,255,0.1);
}
.class-bjj, .class-kids, .class-nogi, .class-open-mat, .class-beginner, .class-juvenil {
    font-weight: 700;
    cursor: default;
}
.class-bjj {
    background-color: rgba(255, 59, 95, 0.25);
    color: #ffc4cf;
    text-shadow: 0 0 5px #FF3B5F;
}
.class-nogi {
    background-color: rgba(74, 0, 224, 0.25);
    color: #d1c1ff;
    text-shadow: 0 0 5px #4A00E0;
}
.class-open-mat {
    background: linear-gradient(45deg, rgba(255, 59, 95, 0.3), rgba(142, 45, 226, 0.3));
    font-weight: 900;
    text-transform: uppercase;
    color: #fff;
}
.class-kids {
    background-color: rgba(255, 165, 0, 0.2);
    color: #ffdcb2;
    text-shadow: 0 0 5px orange;
}
.class-kids small, .class-juvenil small, .class-beginner small, .class-bjj small, .class-nogi small {
    display: block;
    font-size: 0.8em;
    font-weight: 500;
    opacity: 0.8;
}
.class-juvenil {
    background-color: rgba(0, 191, 255, 0.2);
    color: #b3ecff;
    text-shadow: 0 0 5px deepskyblue;
}
.class-beginner {
    background-color: rgba(60, 179, 113, 0.2);
    color: #b2f0d1;
    text-shadow: 0 0 5px mediumseagreen;
}

.schedule-cta {
    text-align: center;
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    margin-top: 30px;
    border-top: 3px solid var(--secondary-color);
}
.schedule-cta h3 {
    color: var(--secondary-color);
    font-size: 1.5em;
    margin-bottom: 15px;
}
.schedule-cta .btn {
    margin-top: 25px;
}

/* --- Instructor Section --- */
.instructor-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
}
.instructor-image {
    width: clamp(180px, 25vw, 280px);
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px auto;
    border: 5px solid var(--secondary-color);
    box-shadow: 0 0 20px rgba(142, 45, 226, 0.4);
    position: relative; 
}
.instructor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.instructor-bio {
    flex: 2 1 400px;
}
.instructor-bio h3 {
    color: var(--secondary-color);
    font-size: 1.8em;
    margin-bottom: 5px;
}
.instructor-bio .instructor-subtitle {
    font-size: 1.1em;
    color: var(--primary-color);
    text-shadow: 0 0 5px var(--primary-color);
    margin-bottom: 20px;
    font-weight: 600;
}
.instructor-bio p {
    color: #c0c0c0;
    margin-bottom: 15px;
    line-height: 1.7;
}
.instructor-bio p:last-child {
    margin-bottom: 0;
}
.instructor-bio p strong {
    color: var(--text-light);
    font-weight: 700;
}

/* --- Testimonials Section --- */
.testimonial-scroll-wrapper {
    max-height: 300px;
    overflow-y: hidden;
    position: relative;
    border: 1px solid rgba(255,255,255,0.1);
    padding: 10px;
    border-radius: 8px;
    background-color: rgba(0,0,0,0.1);
}
.testimonial-item {
    padding: 20px;
    margin-bottom: 15px;
    background-color: rgba(255,255,255,0.03);
    border-radius: 5px;
    border-left: 3px solid var(--secondary-color);
}
.testimonial-item p {
    font-style: italic;
    margin-bottom: 10px;
    color: #d0d0d0;
}
.testimonial-item cite {
    display: block;
    text-align: right;
    font-weight: bold;
    color: var(--secondary-color);
}

/* --- Blog Section --- */        
#blog .program-card {
    cursor: pointer;
}
#blog .program-card-content h3 {
    color: var(--secondary-color);
}
#blog .program-card:hover {
     box-shadow: 0 10px 30px rgba(0,0,0,0.35), 0 0 15px var(--secondary-color);
}

.blog-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}
.blog-modal-content {
    background: linear-gradient(to bottom, #1c0a2e, #120314);
    margin: 5% auto;
    padding: 30px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    width: 90%;
    max-width: 800px;
    position: relative;
    box-shadow: 0 5px 25px rgba(0,0,0,0.5);
    animation: slideInModal 0.5s ease-out;
}
@keyframes slideInModal {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.blog-modal-close {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 35px;
    font-weight: bold;
    transition: color 0.3s ease;
}
.blog-modal-close:hover,
.blog-modal-close:focus {
    color: var(--primary-color);
    text-decoration: none;
    cursor: pointer;
}
#modal-blog-title {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.8em;
}
#modal-blog-body p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: #d0d0d0;
}
#modal-blog-body h4 {
    color: var(--secondary-color);
    margin-top: 25px;
    margin-bottom: 10px;
}

/* --- Contact Section --- */
#contact h2 .h2-logo {
    width: 35px;
    height: auto;
    vertical-align: middle;
    margin: 0 10px;
    filter: drop-shadow(0 0 8px var(--primary-color));
}
.student-group-photo-container {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 50px;
    padding: 0 15px;
}
.student-group-photo {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    border: 5px solid var(--secondary-color-darker);
}

.contact-flex-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 30px;
}
.contact-info,
.contact-form-container {
    flex: 1 1 400px;
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: 10px;
}
.contact-info h3,
.contact-form-container h3 {
    color: var(--text-light);
    margin-bottom: 20px;
    text-align: left;
    font-size: 1.4em;
    color: var(--primary-color);
}
.contact-info p {
    margin-bottom: 12px;
}
.contact-info a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}
.contact-info a:hover {
    color: #ff5074;
}
.social-links { 
    margin-top: 15px !important;
}
.social-icon {
    width: 35px;
    height: 35px;
    margin-right: 15px;
    opacity: 0.8;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.social-icon:hover {
    opacity: 1;
    transform: scale(1.1);
}
.map-container {
    margin-top: 25px;
}

/* --- Contact Form --- */
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #ccc;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.2);
    background-color: rgba(255,255,255,0.05);
    color: var(--text-light);
    font-family: 'Montserrat', sans-serif;
    font-size: 1em;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.form-group input[type="text"]::placeholder,
.form-group input[type="email"]::placeholder,
.form-group textarea::placeholder {
    color: rgba(255,255,255,0.4);
}
.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(255, 59, 95, 0.3);
}
.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.error-message {
    display: none;
    color: #ff6b6b;
    font-size: 0.85em;
    margin-top: 5px;
}
input.error,
textarea.error {
    border-color: #ff6b6b !important;
}
#formStatus {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    font-weight: 500;
    display: none;
}
#formStatus.success {
    background-color: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    border: 1px solid #2ecc71;
}
#formStatus.error {
    background-color: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 1px solid #e74c3c;
}
#formStatus.info {
    background-color: rgba(52, 152, 219, 0.2);
    color: #3498db;
    border: 1px solid #3498db;
}

/* ========================================================================= */
/* --------------------------------- FOOTER -------------------------------- */
/* ========================================================================= */

footer {
    text-align: center;
    padding: 30px 0;
    background-color: rgba(5, 0, 10, 0.85);
    color: #aaa;
    font-size: 0.9em;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ========================================================================= */
/* ------------------------ FLOATING ACTION BUTTONS ------------------------ */
/* ========================================================================= */

.whatsapp-float {
    position: fixed;
    width: 55px;
    height: 55px;
    bottom: 25px;
    right: 25px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}
.whatsapp-float img {
    width: 30px;
    height: 30px;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #1EBE57;
}

#backToTopBtn {
    display: none;
    position: fixed;
    bottom: 90px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: var(--secondary-color);
    color: white;
    cursor: pointer;
    padding: 0;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: background-color 0.3s ease, opacity 0.3s ease;
    opacity: 0.8;
}
#backToTopBtn:hover {
    background-color: var(--tertiary-color);
    opacity: 1;
}

/* ========================================================================= */
/* ---------------------------- RESPONSIVE DESIGN -------------------------- */
/* ========================================================================= */

@media (min-width: 768px) {
    header nav {
        display: flex;
    }
}

@media (max-width: 767px) {
    .mobile-nav-toggle {
        display: block;
    }

    .header-container {
        height: var(--header-height);
    }
    main {
        padding-top: var(--header-height);
    }
    #hero {
        min-height: calc(100vh - var(--header-height));
    }

    .instructor-content {
        flex-direction: column;
    }
    .instructor-bio h3, .instructor-bio .instructor-subtitle {
        text-align: center;
    }
    .instructor-bio p {
        text-align: center;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 600px) {
    .content-section .section-subtitle {
        margin-bottom: 30px;
    }
    .philosophy-content > p:first-of-type,
    .philosophy-content > p:nth-of-type(2),
    .philosophy-content > p:last-of-type {
        padding: 0 10px;
    }
    .philosophy-content > p:nth-of-type(2) {
        margin-bottom: 30px;
    }
    .philosophy-content > p:last-of-type {
        font-size: clamp(1em, 3.5vw, 1.15em);
    }

    #hero {
        padding: 20px 10px 10px 10px;
    }
    .hero-slide-inner-content h1 .line1 {
        font-size: 1.3em;
        letter-spacing: 0.5px;
    }
    .hero-slide-inner-content h1 .line2 {
        font-size: 1.8em;
        letter-spacing: 0.5px;
    }
    .hero-slide-inner-content p {
        font-size: 0.8em;
        margin-bottom: 20px;
        line-height: 1.4;
    }
    .hero-slider-content-wrapper {
        min-height: 55vh;
    }
    .hero-navigation-dots {
      margin-top: auto;
      padding-top: 10px;
      padding-bottom: 5px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    .btn {
        width: 80%;
        max-width: 260px;
        text-align: center;
        padding: 12px 15px;
        font-size: 0.75em;
    }

    .content-section h2 {
        font-size: 1.6em;
    }
    .content-section .section-subtitle {
        font-size: 0.9em;
    }

    .pilares-grid,
    .benefits-grid,
    .program-cards {
        grid-template-columns: 1fr;
    }
    
    .instructor-image {
        width: clamp(150px, 40vw, 200px);
    }

    .contact-flex-container {
        gap: 20px;
    }
    .contact-info,
    .contact-form-container {
        padding: 15px;
    }
    .student-group-photo-container {
        margin-bottom: 30px;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    .whatsapp-float img {
        width: 25px;
        height: 25px;
    }
    #backToTopBtn {
        bottom: 80px;
        right: 22px;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}