/* =========================================
   SISTEMA DE DISEÑO - EL APRENDIZ
   Colores: #1DC2D6 -> #ECDC63
   ========================================= */

:root {
    --primary-grad: linear-gradient(90deg, #1DC2D6 0%, #ECDC63 100%);
    --teal: #1DC2D6;
    --yellow: #ECDC63;
    --dark-teal: #148f9e;
    --text-main: #2c3e50;
    --text-muted: #576574;
    --bg-light: #f9fdfd;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.7);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 100px 0;
}

/* =========================================
   NAVBAR
   ========================================= */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    background: var(--glass);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition);
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.nav-logo {
    height: 50px;
    width: auto;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.brand-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--primary-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 400;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--teal);
}

.btn-cta-nav {
    background: var(--primary-grad);
    color: var(--white) !important;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 600 !important;
    box-shadow: 0 4px 15px rgba(29, 194, 214, 0.3);
}

.btn-cta-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(29, 194, 214, 0.4);
}

/* =========================================
   HERO
   ========================================= */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-bg-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(249, 253, 253, 0.7), rgba(249, 253, 253, 0.7)), 
                url('background_bach.png') center/cover no-repeat;
    opacity: 0.3;
    z-index: -1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    align-items: center;
    gap: 4rem;
}

.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-logo-main {
    width: 100%;
    max-width: 450px;
    height: auto;
    z-index: 2;
    animation: floating 6s ease-in-out infinite;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.1));
}

.hero-text h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.highlight {
    background: var(--primary-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-style: italic;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
}

.btn-primary {
    background: var(--primary-grad);
    color: var(--white);
    text-decoration: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(29, 194, 214, 0.3);
    transition: var(--transition);
}

.btn-secondary {
    background: var(--white);
    color: var(--teal);
    text-decoration: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    border: 1px solid var(--teal);
    transition: var(--transition);
}

.btn-primary:hover, .btn-secondary:hover {
    transform: translateY(-3px);
}

/* =========================================
   CARDS & SECTIONS
   ========================================= */

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.underline {
    width: 80px;
    height: 4px;
    background: var(--primary-grad);
    margin: 0 auto;
    border-radius: 2px;
}

.grid-beneficios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 24px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    border: 1px solid rgba(0,0,0,0.02);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
}

.icon-box {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

/* =========================================
   TERAPEUTA
   ========================================= */

.flex-row {
    display: flex;
    align-items: center;
    gap: 5rem;
}

.terapeuta-text {
    flex: 1;
}

.subtitle {
    color: var(--teal);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.terapeuta-img-box {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
}

.photo-container {
    width: 400px;
    height: 500px;
    background: #eef7f8;
    border-radius: 30px;
    position: relative;
    z-index: 1;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.terapeuta-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.photo-container:hover .terapeuta-img {
    transform: scale(1.05);
}

.glass-decoration {
    position: absolute;
    width: 200px;
    height: 200px;
    background: var(--primary-grad);
    bottom: -30px;
    left: -30px;
    z-index: 0;
    border-radius: 30px;
    opacity: 0.3;
}

/* =========================================
   RESERVAS (FORM)
   ========================================= */

.reservas {
    background: linear-gradient(135deg, #1DC2D6 0%, #ECDC63 100%);
    position: relative;
}

.glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    padding: 4rem;
    border-radius: 40px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
}

.form-container h2 {
    margin-bottom: 1rem;
}

.form-container p {
    margin-bottom: 3rem;
    color: var(--text-muted);
}

form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

input, textarea {
    padding: 1.2rem;
    border-radius: 12px;
    border: 1px solid #ddd;
    font-family: inherit;
    font-size: 1rem;
    width: 100%;
    transition: var(--transition);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 4px rgba(29, 194, 214, 0.1);
}

.btn-submit, .btn-secondary-full {
    background: var(--primary-grad);
    color: var(--white);
    border: none;
    padding: 1.2rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 1rem;
    width: 100%;
}

.btn-submit:hover, .btn-secondary-full:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.small-info {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

select {
    padding: 1.2rem;
    border-radius: 12px;
    border: 1px solid #ddd;
    font-family: inherit;
    font-size: 1rem;
    width: 100%;
    background: white;
    cursor: pointer;
}

.form-success {
    margin-top: 1rem;
    color: #27ae60;
    font-weight: 600;
}

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

.footer {
    background: #2c3e50;
    color: var(--white);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo {
    height: 60px;
    margin-bottom: 1.5rem;
    border-radius: 50%;
}

.footer h4 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 0.8rem;
}

.footer a {
    color: #bdc3c7;
    text-decoration: none;
    transition: var(--transition);
}

.footer a:hover {
    color: var(--teal);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    color: #7f8c8d;
}

/* =========================================
   ANIMATIONS
   ========================================= */

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.card, .terapeuta-text, .terapeuta-img-box, .section-header {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.card.visible, .terapeuta-text.visible, .terapeuta-img-box.visible, .section-header.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    animation: fadeIn 1s ease-out forwards;
}

.fade-in-delay {
    animation: fadeIn 1s ease-out 0.3s backwards forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-text p {
        margin: 0 auto 2.5rem;
    }
    .hero-btns {
        justify-content: center;
    }
    .flex-row {
        flex-direction: column;
        text-align: center;
    }
    .hero-text h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .section {
        padding: 60px 0;
    }
    .glass-card {
        padding: 2rem;
    }
}
