/* ============================================================
   RINDE – REHABILITACION INTEGRAL DEPORTIVA
   Landing Page Stylesheet
   ============================================================ */

/* ── Reset & Variables ─────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --purple-dark:  #001f3f;
    --purple-mid:   #0d3b6e;
    --purple-main:  #0077b6;
    --purple-light: #00b4d8;
    --gold:         #17a2b8;
    --gold-light:   #48cae4;
    --white:        #ffffff;
    --off-white:    #f0f8ff;
    --gray-light:   #cce4f0;
    --gray-text:    #3d6a80;
    --dark-text:    #0a1f3f;
    --shadow:       0 8px 40px rgba(0, 119, 182, 0.18);
    --shadow-heavy: 0 16px 60px rgba(0, 119, 182, 0.30);
    --radius:       14px;
    --radius-sm:    8px;
    --transition:   all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--off-white);
    color: var(--dark-text);
    line-height: 1.7;
    overflow-x: hidden;
}

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4 { line-height: 1.2; }

.section-title {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 800;
    color: var(--purple-dark);
    text-align: center;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    text-align: center;
    color: var(--gray-text);
    font-size: 1.05rem;
    margin-bottom: 3rem;
}

.divider {
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, var(--purple-main), var(--gold));
    border-radius: 2px;
    margin: 0.8rem auto 1.2rem;
}

/* ── Navbar ─────────────────────────────────────────────────── */
.navbar-landing {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0.9rem 2rem;
    background: rgba(0, 31, 63, 0.95);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
    transition: var(--transition);
}

.navbar-brand-landing {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.navbar-brand-landing img {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold);
}

.navbar-brand-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: 0.5px;
}

.navbar-brand-name span {
    color: var(--gold);
}

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

.nav-links a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    transition: var(--transition);
}

.nav-links a:hover {
    background: rgba(0, 180, 216, 0.15);
    color: var(--gold-light);
}

.nav-cta {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: var(--purple-dark) !important;
    font-weight: 700 !important;
    padding: 0.45rem 1.2rem !important;
    border-radius: 20px;
}

.nav-cta:hover {
    box-shadow: 0 4px 15px rgba(0, 180, 216, 0.5);
    transform: translateY(-1px);
    background: linear-gradient(135deg, var(--gold-light), var(--gold)) !important;
}

.nav-login {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255,255,255,0.9) !important;
    font-weight: 600 !important;
    font-size: 0.9rem;
    padding: 0.4rem 1rem !important;
    border-radius: 20px;
    border: 1.5px solid rgba(255,255,255,0.35);
    transition: var(--transition);
    text-decoration: none;
}

.nav-login:hover {
    background: rgba(255,255,255,0.10) !important;
    border-color: rgba(255,255,255,0.75);
    color: var(--white) !important;
    transform: translateY(-1px);
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
}

.nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--purple-dark) 0%, var(--purple-mid) 55%, #002d5a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 1.5rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 800'%3E%3Cdefs%3E%3CradialGradient id='g1' cx='70%25' cy='40%25' r='60%25'%3E%3Cstop offset='0%25' stop-color='%2300b4d8' stop-opacity='0.20'/%3E%3Cstop offset='100%25' stop-color='transparent'/%3E%3C/radialGradient%3E%3C/defs%3E%3Crect fill='url(%23g1)' width='1440' height='800'/%3E%3C/svg%3E") center/cover no-repeat;
    pointer-events: none;
}

/* floating orbs */
.hero::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0,180,216,0.08) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    border-radius: 50%;
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 860px;
    text-align: center;
}

.hero-badge {
    display: block;
    width: fit-content;
    margin: 0 auto 1.5rem;
    background: rgba(0,180,216,0.15);
    border: 1px solid rgba(0,180,216,0.4);
    color: var(--gold-light);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
}

.hero-logo-wrap {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.hero-logo {
    width: 210px;
    height: 210px;
    object-fit: contain;
    display: block;
}

.hero-name {
    font-size: clamp(2.2rem, 6vw, 3.8rem);
    font-weight: 900;
    color: var(--white);
    letter-spacing: -0.5px;
    margin-bottom: 0.4rem;
}

.hero-brand {
    font-size: clamp(1.4rem, 4vw, 2.2rem);
    font-weight: 800;
    color: var(--gold);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.hero-full-name {
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.hero-ced {
    display: inline-block;
    color: rgba(72,202,228,0.9);
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 2.5rem;
}

.hero-desc {
    color: rgba(255,255,255,0.75);
    font-size: 1.1rem;
    max-width: 520px;
    margin: 0 auto 3rem;
}

.hero-cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: var(--purple-dark);
    font-weight: 800;
    font-size: 1rem;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 8px 30px rgba(0,180,216,0.40);
    transition: var(--transition);
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(0,180,216,0.55);
    color: var(--purple-dark);
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: var(--white);
    font-weight: 600;
    font-size: 1rem;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    border: 2px solid rgba(255,255,255,0.35);
    text-decoration: none;
    transition: var(--transition);
}

.btn-hero-secondary:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.7);
    color: var(--white);
    transform: translateY(-3px);
}

.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255,255,255,0.4);
    font-size: 0.7rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    animation: bounce 2.2s infinite;
}

.scroll-indicator i { font-size: 1.1rem; }

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(8px); }
}

/* ── Stats Bar ──────────────────────────────────────────────── */
.stats-bar {
    background: linear-gradient(135deg, var(--purple-main), var(--purple-mid));
    padding: 2.5rem 1.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.stat-number {
    font-size: 2.4rem;
    font-weight: 900;
    color: var(--gold-light);
    line-height: 1;
}

.stat-label {
    color: rgba(255,255,255,0.75);
    font-size: 0.85rem;
    margin-top: 0.3rem;
    letter-spacing: 0.5px;
}

/* ── Services ───────────────────────────────────────────────── */
.section-services {
    padding: 6rem 1.5rem;
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.8rem;
    max-width: 1100px;
    margin: 0 auto;
}

.service-card {
    background: var(--off-white);
    border-radius: var(--radius);
    padding: 2.2rem 1.8rem;
    border: 1px solid var(--gray-light);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--purple-main), var(--gold));
    border-radius: 4px 0 0 4px;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-heavy);
    border-color: rgba(0,119,182,0.25);
    background: var(--white);
}

.service-icon {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--purple-main), var(--purple-light));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    font-size: 1.5rem;
    color: var(--white);
    box-shadow: 0 6px 20px rgba(0,119,182,0.30);
}

.service-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--purple-dark);
    margin-bottom: 0.6rem;
}

.service-card p {
    font-size: 0.92rem;
    color: var(--gray-text);
    line-height: 1.6;
}

/* ── About ──────────────────────────────────────────────────── */
.section-about {
    padding: 6rem 1.5rem;
    background: linear-gradient(135deg, var(--purple-dark) 0%, #002d5a 100%);
    position: relative;
    overflow: hidden;
}

.section-about::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0,180,216,0.15) 0%, transparent 70%);
    top: -200px; right: -150px;
    border-radius: 50%;
    pointer-events: none;
}

.about-inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.about-inner .section-title { color: var(--white); }
.about-inner .section-subtitle { color: rgba(255,255,255,0.65); }

.about-text {
    color: rgba(255,255,255,0.80);
    font-size: 1.05rem;
    line-height: 1.85;
    margin-bottom: 2rem;
}

.about-highlight {
    color: var(--gold-light);
    font-weight: 600;
}

.about-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    justify-content: center;
}

.tag {
    background: rgba(0,180,216,0.12);
    border: 1px solid rgba(0,180,216,0.30);
    color: var(--gold-light);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* ── Carrusel compartido ────────────────────────────────────── */
.section-gallery-services {
    padding: 6rem 1.5rem;
    background: var(--off-white);
}

.section-gallery-instalaciones {
    padding: 6rem 1.5rem;
    background: linear-gradient(135deg, var(--purple-dark) 0%, #002d5a 100%);
}

.section-gallery-instalaciones .section-title  { color: var(--white); }
.section-gallery-instalaciones .section-subtitle { color: rgba(255,255,255,0.65); }

.carousel-landing {
    max-width: 900px;
    margin: 0 auto;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-heavy);
}

.carousel-landing .carousel-img {
    height: 480px;
    object-fit: contain;
    object-position: center;
    border-radius: var(--radius);
    background: #001a33;
}

/* indicadores con color de marca */
.carousel-landing .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    border: none;
    margin: 0 4px;
    transition: background-color 0.3s;
}

.carousel-landing .carousel-indicators .active {
    background-color: var(--gold-light);
}

/* flechas */
.carousel-landing .carousel-control-prev-icon,
.carousel-landing .carousel-control-next-icon {
    background-color: rgba(0,31,63,0.55);
    border-radius: 50%;
    padding: 1.2rem;
    background-size: 50%;
}

.carousel-landing .carousel-control-prev,
.carousel-landing .carousel-control-next {
    width: 6%;
}

/* fade transition más suave */
.carousel-landing.carousel-fade .carousel-item {
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.carousel-landing.carousel-fade .carousel-item.active {
    opacity: 1;
}

@media (max-width: 768px) {
    .carousel-landing .carousel-img { height: 260px; background: #001a33; }
}

@media (max-width: 480px) {
    .carousel-landing .carousel-img { height: 200px; background: #001a33; }
}

/* ── Schedule ───────────────────────────────────────────────── */
.section-schedule {
    padding: 6rem 1.5rem;
    background: var(--off-white);
}

.schedule-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

.schedule-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.schedule-header {
    background: linear-gradient(135deg, var(--purple-main), var(--purple-mid));
    padding: 1.8rem;
    text-align: center;
    color: var(--white);
}

.schedule-header i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--gold-light);
}

.schedule-header h3 { font-size: 1.3rem; font-weight: 700; }

.schedule-body { padding: 1.5rem 2rem; }

.schedule-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-light);
}
.schedule-row:last-child { border-bottom: none; }

.schedule-day {
    font-weight: 600;
    color: var(--purple-dark);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.schedule-day i { color: var(--purple-light); }

.schedule-time {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.2rem;
}

.time-badge {
    background: linear-gradient(135deg, var(--purple-main), var(--purple-light));
    color: var(--white);
    padding: 0.22rem 0.8rem;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
}

/* ── Contact ────────────────────────────────────────────────── */
.section-contact {
    padding: 6rem 1.5rem;
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.contact-card {
    background: var(--off-white);
    border-radius: var(--radius);
    padding: 2rem 1.6rem;
    text-align: center;
    border: 1px solid var(--gray-light);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    display: block;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
    text-decoration: none;
    color: inherit;
}

.contact-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.6rem;
}

.icon-wa   { background: #dcfce7; color: #16a34a; }
.icon-ig   { background: linear-gradient(135deg,#fde7f0,#f9e4fe); color: #c13584; }
.icon-addr { background: #ede9fe; color: var(--purple-main); }

.contact-card h4 {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gray-text);
    margin-bottom: 0.4rem;
}

.contact-card p {
    font-size: 0.97rem;
    font-weight: 600;
    color: var(--purple-dark);
}

/* ── WhatsApp Float ─────────────────────────────────────────── */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 58px;
    height: 58px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--white);
    text-decoration: none;
    box-shadow: 0 6px 25px rgba(37,211,102,0.45);
    z-index: 999;
    transition: var(--transition);
    animation: pulse-wa 2.5s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 35px rgba(37,211,102,0.60);
    color: var(--white);
}

@keyframes pulse-wa {
    0%, 100% { box-shadow: 0 6px 25px rgba(37,211,102,0.45); }
    50%       { box-shadow: 0 6px 35px rgba(37,211,102,0.7), 0 0 0 10px rgba(37,211,102,0.10); }
}

/* ── Footer ─────────────────────────────────────────────────── */
footer.landing-footer {
    background: var(--purple-dark);
    color: rgba(255,255,255,0.65);
    text-align: center;
    padding: 2.5rem 1.5rem;
}

.footer-logo { font-size: 1.5rem; font-weight: 900; color: var(--gold); letter-spacing: 2px; }
.footer-sub  { font-size: 0.8rem; margin-top: 0.3rem; letter-spacing: 0.5px; }
.footer-sep  { margin: 1.2rem auto; width: 50px; height: 2px; background: rgba(0,180,216,0.3); }
.footer-copy { font-size: 0.78rem; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(0,31,63,0.98);
        flex-direction: column;
        padding: 1rem;
        gap: 0.2rem;
    }

    .nav-links.open { display: flex; }

    .nav-hamburger { display: flex; }

    .hero { padding: 7rem 1.2rem 4rem; }

    .schedule-body { padding: 1rem; }
    .schedule-row { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
    .schedule-time { align-items: flex-start; flex-direction: row; }
}

@media (max-width: 480px) {
    .hero-cta-group { flex-direction: column; align-items: center; }
    .btn-hero-primary, .btn-hero-secondary { width: 100%; max-width: 280px; justify-content: center; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}


/* ══════════════ DISPONIBILIDAD SEMANAL ══════════════ */
.section-disponibilidad {
    background: var(--off-white);
    padding: 6rem 1.5rem;
    text-align: center;
}

.disponibilidad-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    max-width: 1200px;
    margin: 2.5rem auto 0;
}

@media (max-width: 992px) {
    .disponibilidad-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 576px) {
    .disponibilidad-grid { grid-template-columns: repeat(2, 1fr); }
}

.disp-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(0, 119, 182, 0.10);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}
.disp-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0, 119, 182, 0.18);
}
.disp-card--hoy {
    box-shadow: 0 0 0 3px var(--purple-light), 0 8px 24px rgba(0,180,216,0.20);
}

.disp-card__header {
    background: var(--purple-mid);
    color: #fff;
    padding: 0.75rem 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}
.disp-card--hoy .disp-card__header {
    background: var(--purple-light);
}
.disp-day {
    font-weight: 700;
    font-size: 1rem;
}
.disp-date {
    font-size: 0.78rem;
    opacity: 0.85;
}
.disp-hoy-badge {
    margin-top: 4px;
    font-size: 0.68rem;
    background: rgba(255,255,255,0.25);
    border-radius: 20px;
    padding: 1px 8px;
    letter-spacing: 0.05em;
}

.disp-card__body {
    flex: 1;
    padding: 0.75rem 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.disp-slot {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    padding: 0.35rem 0.55rem;
    border-radius: 8px;
    font-weight: 500;
    color: #fff;
}
.disp-slot i { font-size: 0.75rem; }
.disp-slot-label {
    margin-left: auto;
    font-size: 0.7rem;
    opacity: 0.9;
    font-weight: 400;
}
.disp-slot--disponible { background: var(--purple-main); }
.disp-slot--ocupada    { background: var(--gold); }

.disp-free {
    font-size: 0.82rem;
    color: #28a745;
    font-weight: 600;
    padding: 0.4rem;
}
.disp-free i { margin-right: 4px; }

.disp-card__footer {
    padding: 0.6rem 0.5rem;
    border-top: 1px solid var(--gray-light);
}
.disp-btn-wa {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #25d366;
    color: #fff;
    border-radius: 20px;
    padding: 0.35rem 0.9rem;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
}
.disp-btn-wa:hover {
    background: #1ebe5c;
    color: #fff;
    transform: scale(1.04);
}
