/* --- VARIABLES Y ESTILOS GLOBALES --- */
:root {
    --primary-color: #e84c88;
    --dark-text: #343a40;
    --light-text: #6c757d;
    --background-light: #f8f9fa;
    --white: #ffffff;
    --border-color: #dee2e6;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark-text);
    background-color: var(--white);
    line-height: 1.7;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

.section {
    padding: 80px 0;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.section-subtitle {
    font-size: 18px;
    color: var(--light-text);
    max-width: 700px;
    margin: 0 auto 50px;
    text-align: center;
}

.btn {
    padding: 12px 28px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    display: inline-block;
    margin: 5px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}
.btn-primary:hover {
    background-color: #d63c78;
    transform: translateY(-2px);
}

.btn-secondary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background-color: var(--white);
}
.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* --- HEADER --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--white);
    padding: 15px 0;
    transition: box-shadow 0.3s ease, padding 0.3s ease;
}
header.scrolled {
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    padding: 10px 0;
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 30px;
}
.logo {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
}
.logo span {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--light-text);
    letter-spacing: 1px;
}
nav a {
    margin-left: 25px;
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 500;
    transition: color 0.3s;
}
nav a:hover {
    color: var(--primary-color);
}

/* --- HERO SECTION --- */
.hero {
    padding-top: 150px;
    padding-bottom: 100px;
    text-align: center;
    background: linear-gradient(45deg, rgba(249, 237, 242, 0.4), rgba(237, 243, 253, 0.4));
}
.hero h1 {
    font-size: 52px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.2;
}
.hero p {
    font-size: 18px;
    color: var(--light-text);
    max-width: 650px;
    margin: 0 auto 30px;
}

/* --- GRID SECTIONS (Filosofía, Servicios) --- */
.grid {
    display: grid;
    gap: 30px;
}
.grid-4-cols { grid-template-columns: repeat(4, 1fr); }
.grid-3-cols { grid-template-columns: repeat(3, 1fr); }
.grid-2-cols { grid-template-columns: repeat(2, 1fr); }

/* --- PHILOSOPHY CARD --- */
.philosophy-card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.06);
    text-align: left;
    border-top: 4px solid;
    transition: transform 0.3s, box-shadow 0.3s;
}
.philosophy-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}
.philosophy-card .icon { font-size: 32px; margin-bottom: 15px; }
.philosophy-card h3 { font-size: 20px; margin-bottom: 10px; }
.philosophy-card p { color: var(--light-text); }
.card-pink { border-color: #e84c88; color: #e84c88; }
.card-purple { border-color: #8f48c2; color: #8f48c2; }
.card-teal { border-color: #38b6a3; color: #38b6a3; }
.card-gold { border-color: #f7b84b; color: #f7b84b; }

/* --- SERVICE CARD --- */
.service-card {
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.06);
    text-align: left;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}
.service-card-header {
    color: var(--white);
    font-size: 36px;
    text-align: center;
    padding: 30px;
}
.service-card-content { padding: 30px; }
.service-card-content h3 { font-size: 20px; margin-bottom: 10px; }
.service-card-content p { color: var(--light-text); margin-bottom: 20px; }
.service-card-content a { color: var(--primary-color); text-decoration: none; font-weight: 600; }

.bg-pink { background-color: #e95a94; }
.bg-purple { background-color: #a46ed6; }
.bg-teal { background-color: #51c7a8; }
.bg-orange { background-color: #f7a353; }
.bg-red { background-color: #f06a77; }
.bg-turquoise { background-color: #4dc4d2; }

/* --- DETAILED SECTIONS (2 columnas) --- */
.detailed-section {
    display: flex;
    align-items: center;
    gap: 60px;
}
.detailed-section .content, .detailed-section .image-container { flex: 1; text-align: left;}
.detailed-section .image-container { text-align: center; }
.detailed-section:nth-child(even) { flex-direction: row-reverse; }
.detailed-section h3 { font-size: 28px; margin-bottom: 15px; }
.detailed-section p { color: var(--light-text); margin-bottom: 20px; }
.detailed-section img { max-width: 350px; }
.detailed-section ul { list-style: none; padding: 0; }
.detailed-section ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
}
.detailed-section ul li::before {
    font-family: "Font Awesome 6 Free";
    content: "\f00c"; /* check icon */
    font-weight: 900;
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 2px;
}

/* --- TRAINING & EXPERIENCE CARDS --- */
.category-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    text-align: left;
    box-shadow: 0 4px 25px rgba(0,0,0,0.06);
}
.category-card h3 {
    font-size: 22px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}
.category-card h3 i { color: var(--primary-color); }
.category-card ul { list-style: none; padding: 0; }
.category-card ul li { margin-bottom: 10px; position: relative; padding-left: 25px; }
.category-card ul li::before {
    font-family: "Font Awesome 6 Free"; content: "\f00c"; font-weight: 900;
    color: var(--primary-color); position: absolute; left: 0; top: 2px;
}

/* --- CRITICAL TOPICS --- */
.critical-topics-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px 30px;
    max-width: 900px;
    margin: 40px auto;
    text-align: left;
}
.critical-topics-list li {
    position: relative;
    padding-left: 25px;
}
.critical-topics-list li::before {
    font-family: "Font Awesome 6 Free"; content: "\f00c"; font-weight: 900;
    color: var(--primary-color); position: absolute; left: 0; top: 2px;
}

/* --- FORMULARIO DE CONTACTO --- */
.contact-form {
    max-width: 800px;
    margin: 0 auto;
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.form-group {
    width: 100%;
}
.form-group.full-width {
    grid-column: 1 / -1;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(232, 76, 136, 0.2);
}
.form-group textarea {
    resize: vertical;
    min-height: 150px;
}
.submit-container {
    text-align: center;
    margin-top: 20px;
}


/* --- FOOTER --- */
footer {
    background-color: #212529;
    color: var(--white);
    padding: 60px 0 20px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
}
.footer-col h3 { font-size: 18px; margin-bottom: 20px; }
.footer-col p, .footer-col a {
    color: #adb5bd;
    text-decoration: none;
    font-size: 15px;
}
.footer-col a:hover { color: var(--white); }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.social-icons { margin-top: 20px; }
.social-icons a {
    color: #adb5bd;
    font-size: 18px;
    margin-right: 15px;
    transition: color 0.3s;
}
.social-icons a:hover { color: var(--primary-color); }
.footer-col .contact-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.footer-col .contact-item i { margin-top: 5px; }
.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #343a40;
    font-size: 14px;
    color: #6c757d;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 992px) {
    .grid-4-cols { grid-template-columns: repeat(2, 1fr); }
    .grid-3-cols { grid-template-columns: repeat(2, 1fr); }
    .critical-topics-list { grid-template-columns: repeat(2, 1fr); }
    .detailed-section { flex-direction: column !important; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .header-container { padding: 0 15px; }
    nav { display: none; } /* Simple hiding for mobile, a real site would use a burger menu */
    .hero h1 { font-size: 38px; }
    .section-title { font-size: 30px; }
    .grid-4-cols, .grid-3-cols, .grid-2-cols { grid-template-columns: 1fr; }
    .critical-topics-list, .footer-grid { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
}