/* -------------------------------------------------------------
   Centro CANEE - Custom Design System (CSS)
   Style: Modern, Clean, Glassmorphism & High Performance
   ------------------------------------------------------------- */

/* Custom CSS Variables */
:root {
    --primary: #4c4f9b;
    --primary-hover: #3b3d7a;
    --primary-light: #eff3ff;
    --text-dark: #192a3d;
    --text-muted: #5e6d7e;
    --bg-light: #FAFBFC;
    --bg-white: #ffffff;
    --border-color: #e1e8ed;
    --shadow-light: #cdd9f7;
    --accent-cyan: #31aad5;
    --accent-green: #5cb06c;
    --accent-purple: #9b63b6;
    
    /* Glassmorphism Presets */
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px 0 rgba(76, 79, 155, 0.07);
    --glass-blur: blur(12px);
    
    /* Typography & Spacing */
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'REM', sans-serif;
    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Grid & Layout Helpers */
.grid {
    display: grid;
    gap: 32px;
}

.grid-2col {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3col {
    grid-template-columns: repeat(3, 1fr);
}

.items-center {
    align-items: center;
}

.section-padding {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.bg-teal {
    background-color: var(--primary);
}

.text-white {
    color: var(--bg-white) !important;
}

.text-center {
    text-align: center;
}

.hidden {
    display: none !important;
}

/* Typography Styles */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
}

.section-subtitle {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 12px;
    padding: 6px 16px;
    background-color: var(--primary-light);
    border-radius: 50px;
}

.section-title {
    font-size: 2.25rem;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
}

.text-lead {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* Glassmorphism Card Style */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    box-shadow: var(--glass-shadow);
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(76, 79, 155, 0.12);
    border-color: rgba(76, 79, 155, 0.2);
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-primary);
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 50px;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 0.95rem;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary);
    color: var(--bg-white);
}

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

.btn-secondary {
    background-color: var(--bg-white);
    color: var(--text-dark);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--bg-light);
    border-color: var(--text-muted);
    transform: translateY(-2px);
}

.btn-secondary-light {
    background-color: transparent;
    color: var(--bg-white);
    border-color: var(--bg-white);
}

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

.btn-whatsapp-cta {
    border-color: var(--accent-green);
    color: var(--accent-green);
}

.btn-whatsapp-cta:hover {
    background-color: rgba(92, 176, 108, 0.08);
    border-color: var(--accent-green);
}

.btn-block {
    width: 100%;
}

.btn-booking {
    padding: 10px 22px;
    font-size: 0.85rem;
}

/* Header / Navbar */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(250, 251, 252, 0.8);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.main-header.scrolled {
    background: var(--bg-white);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition);
}

.main-header.scrolled .header-container {
    padding: 14px 24px;
}

.logo a {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 160px 0 100px;
    background: linear-gradient(135deg, #fced96 0%, #ffecd2 100%);
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.4) 0%, transparent 60%);
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    background: var(--bg-white);
    padding: 8px 18px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
    box-shadow: 0 4px 15px rgba(76, 79, 155, 0.08);
}

.hero-title {
    font-size: 3.25rem;
    color: var(--text-dark);
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 36px;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-image-card {
    padding: 12px;
    border-radius: 24px;
    overflow: hidden;
}

.hero-img {
    border-radius: 18px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.hero-title { animation-delay: 0.1s; }
.hero-description { animation-delay: 0.2s; }
.hero-actions { animation-delay: 0.3s; }
.hero-image-wrapper { animation-delay: 0.4s; }

/* Bienvenidos Section */
.image-stack {
    position: relative;
    padding-right: 40px;
    padding-bottom: 40px;
}

.img-large {
    border-radius: var(--border-radius);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    width: 100%;
}

.glass-info-card {
    position: absolute;
    bottom: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    padding: 20px 24px;
    border-radius: var(--border-radius);
    box-shadow: var(--glass-shadow);
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 280px;
}

.glass-info-card i {
    font-size: 2rem;
    color: var(--primary);
}

.glass-info-card h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.glass-info-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.quote-card {
    position: relative;
    padding: 32px 32px 32px 54px;
    border-left: 4px solid var(--primary);
}

.quote-icon {
    position: absolute;
    top: 24px;
    left: 20px;
    font-size: 1.8rem;
    color: var(--primary);
    opacity: 0.25;
}

.quote-card blockquote {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-style: italic;
    font-weight: 500;
    color: var(--primary);
}

/* Especialidades / Carousel */
.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 20px;
}

.carousel-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 24px;
    padding: 10px 4px 20px;
    scrollbar-width: none; /* Firefox */
}

.carousel-container::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.carousel-card {
    flex: 0 0 calc(33.333% - 16px);
    scroll-snap-align: start;
    padding: 32px;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.card-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.carousel-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.carousel-btn {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    transition: var(--transition);
    z-index: 10;
}

.carousel-btn:hover {
    background: var(--primary);
    color: var(--bg-white);
    border-color: var(--primary);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--primary);
    width: 24px;
    border-radius: 4px;
}

/* Diferenciales Section */
.why-us-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.why-us-list li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.list-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
    margin-top: 4px;
}

.why-us-image-card {
    padding: 12px;
    overflow: hidden;
}

.why-us-img {
    border-radius: 12px;
    width: 100%;
}

/* Especialistas / Team */
.team-grid {
    margin-top: 20px;
}

.team-card {
    padding: 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-img-wrapper {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 20px;
    border: 4px solid var(--bg-white);
    box-shadow: 0 8px 24px rgba(76, 79, 155, 0.15);
}

.team-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-img-placeholder {
    width: 100%;
    height: 100%;
    background-color: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.team-info h3 {
    font-size: 1.3rem;
    margin-bottom: 6px;
}

.team-role {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-cyan);
    margin-bottom: 12px;
    text-transform: uppercase;
}

.team-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Banner Inclusión */
.banner-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    position: relative;
    overflow: hidden;
}

.banner-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.banner-description {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 32px;
    opacity: 0.9;
}

/* Contacto / Turnos Section */
.contact-lead-text {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.sedes-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sedes-container h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.sede-card {
    padding: 24px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.sede-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background-color: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.sede-details h4 {
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.sede-details p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.sede-map-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.sede-map-link:hover {
    color: var(--primary-hover);
    transform: translateX(3px);
}

/* Formulario */
.booking-form-wrapper {
    padding: 40px;
}

.booking-form-wrapper h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.booking-form-wrapper p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.booking-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: var(--font-primary);
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: rgba(255,255,255,0.6);
    font-size: 0.95rem;
    transition: var(--transition);
    width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background-color: var(--bg-white);
    box-shadow: 0 0 0 3px rgba(76, 79, 155, 0.1);
}

.form-group textarea {
    resize: vertical;
}

.form-status {
    padding: 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    display: none;
}

.form-status.success {
    display: block;
    background-color: rgba(92, 176, 108, 0.1);
    color: var(--accent-green);
    border: 1px solid rgba(92, 176, 108, 0.2);
}

.form-status.error {
    display: block;
    background-color: rgba(207, 46, 46, 0.1);
    color: #cf2e2e;
    border: 1px solid rgba(207, 46, 46, 0.2);
}

.btn-loader {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Footer */
.main-footer {
    background-color: var(--text-dark);
    color: rgba(255, 255, 255, 0.7);
    padding-top: 80px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand h2 {
    font-size: 1.8rem;
    color: var(--bg-white);
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

.footer-links h3,
.footer-contact-details h3 {
    font-size: 1.2rem;
    color: var(--bg-white);
    margin-bottom: 24px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a:hover {
    color: var(--bg-white);
    padding-left: 4px;
}

.footer-contact-details p {
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.footer-contact-details i {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 30px 0;
    text-align: center;
    font-size: 0.85rem;
}

.footer-bottom a {
    color: var(--bg-white);
    font-weight: 600;
}

/* Floating WhatsApp button */
.whatsapp-float-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    z-index: 999;
    transition: var(--transition);
}

.whatsapp-float-btn:hover {
    transform: scale(1.1) rotate(5deg);
    background-color: #20ba5a;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .grid-3col {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .carousel-card {
        flex: 0 0 calc(50% - 12px);
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }
    
    .grid-2col,
    .grid-3col {
        grid-template-columns: 1fr;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 40px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        margin: 0 auto 30px;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--bg-white);
        padding: 40px 24px;
        transition: var(--transition);
        border-top: 1px solid var(--border-color);
        overflow-y: auto;
    }
    
    .nav-menu.open {
        left: 0;
    }
    
    .nav-menu ul {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }
    
    .nav-link {
        font-size: 1.2rem;
    }
    
    .header-cta {
        display: none;
    }
    
    .carousel-card {
        flex: 0 0 100%;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .image-stack {
        padding-right: 0;
        padding-bottom: 0;
    }
    
    .glass-info-card {
        position: relative;
        margin-top: 20px;
        max-width: 100%;
    }
    
    .booking-form-wrapper {
        padding: 24px;
    }
}
