/* ===== VARIABLES Y RESET ===== */
:root {
    --primary-color: #9b87f8;
    --secondary-color: #b8a9f0;
    --accent-color: #d6c9ff;
    --dark-color: #4a3f6e;
    --light-color: #f9f6ff;
    --text-color: #3a2e4d;
    --shadow: 0 6px 18px rgba(106, 90, 150, 0.15);
    --border-radius: 12px;
    --transition: all 0.25s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
}

h1, h2, h3, h4 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; text-align: center; margin-bottom: 2rem; position: relative; }
h2:after {
    content: '';
    position: absolute;
    width: 90px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

p { margin-bottom: 1.2rem; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section { padding: 80px 0; }

/* ===== BOTONES ===== */
.btn {
    display: inline-block;
    background: linear-gradient(145deg, var(--primary-color), #7a6bc1);
    color: white;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    box-shadow: 0 5px 12px rgba(155, 135, 248, 0.3);
}
.btn:hover {
    background: linear-gradient(145deg, #7a6bc1, var(--primary-color));
    transform: translateY(-4px);
    box-shadow: 0 10px 18px rgba(106, 90, 150, 0.4);
}
.btn-secondary {
    background: linear-gradient(145deg, var(--secondary-color), #9a89d9);
}
.btn-secondary:hover {
    background: linear-gradient(145deg, #9a89d9, var(--secondary-color));
}

/* ===== HEADER Y NAVEGACIÓN ===== */
header {
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 20px rgba(74, 63, 110, 0.08);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo-img {
    height: 50px;
    width: auto;
    display: block;
}
.logo-text {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--dark-color);
    line-height: 1;
}
.logo-text span { color: var(--primary-color); }
nav ul { display: flex; }
nav li { margin-left: 32px; }
nav a {
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    color: var(--dark-color);
}
nav a:hover { color: var(--primary-color); }
nav a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2.5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    left: 0;
    bottom: -6px;
    transition: var(--transition);
    border-radius: 2px;
}
nav a:hover:after { width: 100%; }
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--dark-color);
    cursor: pointer;
}

/* ===== HERO ===== */
.hero {
    background: linear-gradient(145deg, rgba(74, 63, 110, 0.9), rgba(106, 90, 150, 0.85)), 
                url('https://images.unsplash.com/photo-1515168833906-d2a3b82b5d70?ixlib=rb-4.0.3&auto=format&fit=crop&w=1170&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 180px 0 110px;
    margin-top: 70px;
}
.hero h1 {
    color: white;
    font-size: 3.4rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.2);
}
.hero p {
    font-size: 1.25rem;
    max-width: 750px;
    margin: 0 auto 30px;
    opacity: 0.95;
}
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 22px;
}

/* ===== SOBRE NOSOTROS + CARRUSEL ===== */
.about { background-color: white; }
.about-content {
    display: flex;
    align-items: center;
    gap: 60px;
}
.about-text { flex: 1; }
.about-image {
    flex: 1;
    max-width: 550px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 4px solid var(--accent-color);
}
.slideshow-container {
    position: relative;
    width: 100%;
    height: 320px;
    background-color: #f0eaff;
}
.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}
.slide.active { opacity: 1; }
.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(155, 135, 248, 0.7);
    color: white;
    font-weight: bold;
    font-size: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: 0.3s;
    z-index: 10;
}
.prev { left: 12px; }
.next { right: 12px; }
.prev:hover, .next:hover {
    background-color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}
.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: #cbbef0;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease;
}
.dot.active, .dot:hover { background-color: var(--primary-color); }

/* ===== SERVICIOS ===== */
.services {
    background: linear-gradient(135deg, #f1ebff, #f9f3ff);
}
.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 35px;
}
.service-card {
    background-color: white;
    border-radius: 30px 30px 30px 0;
    padding: 35px 25px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    border-bottom: 5px solid var(--primary-color);
}
.service-card:hover {
    transform: translateY(-12px);
    border-bottom-color: var(--secondary-color);
}
.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}
.service-card h3 {
    font-size: 1.7rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

/* ===== HORARIOS Y TARIFAS ===== */
.schedule-pricing { background-color: white; }
.schedule-pricing-container {
    display: flex;
    gap: 60px;
}
.schedule, .pricing { flex: 1; }
.schedule h3, .pricing h3 {
    color: var(--dark-color);
    border-left: 8px solid var(--primary-color);
    padding-left: 18px;
}
.schedule-table, .pricing-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 25px;
    box-shadow: var(--shadow);
    border-radius: 18px;
    overflow: hidden;
}
.schedule-table th, .schedule-table td,
.pricing-table th, .pricing-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid #e8e0ff;
}
.schedule-table th, .pricing-table th {
    background: linear-gradient(145deg, var(--primary-color), #7a6bc1);
    color: white;
    font-weight: 600;
}
.schedule-table tr:nth-child(even),
.pricing-table tr:nth-child(even) {
    background-color: #f4efff;
}

/* ===== CONTACTO ===== */
.contact {
    background: linear-gradient(135deg, #f1ebff, #fcfaff);
}
.contact-container {
    display: flex;
    gap: 60px;
}
.contact-info, .contact-form { flex: 1; }
.contact-info h3, .contact-form h3 {
    color: var(--dark-color);
    margin-bottom: 25px;
}
.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}
.contact-icon {
    background: linear-gradient(145deg, var(--primary-color), #7a6bc1);
    color: white;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-size: 1.3rem;
    box-shadow: 0 6px 14px rgba(155, 135, 248, 0.35);
}
.contact-form form {
    display: flex;
    flex-direction: column;
}
.form-group {
    margin-bottom: 22px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-color);
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e3d9ff;
    border-radius: 30px;
    font-family: inherit;
    transition: var(--transition);
    background-color: white;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(155, 135, 248, 0.15);
}

/* ===== FOOTER ===== */
footer {
    background: linear-gradient(145deg, var(--dark-color), #352e4f);
    color: white;
    padding: 70px 0 30px;
}
.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-column {
    flex: 1;
    min-width: 240px;
}
.footer-logo {
    font-size: 2.1rem;
    font-weight: 700;
    margin-bottom: 18px;
    color: white;
}
.footer-logo span { color: var(--accent-color); }
.social-links {
    display: flex;
    gap: 18px;
    margin-top: 22px;
}
.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    transition: var(--transition);
    color: white;
    font-size: 1.2rem;
}
.social-link:hover {
    background: linear-gradient(145deg, var(--primary-color), var(--secondary-color));
    transform: translateY(-5px);
}
.footer-column h3 {
    color: white;
    margin-bottom: 22px;
    font-size: 1.4rem;
    position: relative;
    display: inline-block;
}
.footer-column h3:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 45px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}
.footer-links li { margin-bottom: 12px; }
.footer-links a {
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}
.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 6px;
}
.footer-links i { width: 20px; color: var(--accent-color); }
.copyright {
    text-align: center;
    padding-top: 35px;
    border-top: 1px solid rgba(255, 235, 255, 0.15);
    font-size: 0.95rem;
    opacity: 0.9;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .about-content,
    .schedule-pricing-container,
    .contact-container {
        flex-direction: column;
    }
    h1 { font-size: 2.4rem; }
    h2 { font-size: 2rem; }
    .about-image { max-width: 100%; }
}

@media (max-width: 768px) {
    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
        padding: 25px;
        border-radius: 0 0 20px 20px;
    }
    nav.active { display: block; }
    nav ul { flex-direction: column; }
    nav li { margin: 12px 0; }
    .mobile-menu-btn { display: block; }
    .hero { padding: 160px 0 90px; }
    .hero h1 { font-size: 2.2rem; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .btn { width: 100%; max-width: 280px; }
    section { padding: 60px 0; }
    .slideshow-container { height: 260px; }
    .logo-img { height: 40px; }
    .logo-text { font-size: 1.5rem; }
}