/* ===== Steps Podología - estilos generales ===== */
/* Mobile-first: los estilos base son para móvil; los @media (min-width) van
   agregando la versión de tablet/escritorio a medida que crece la pantalla. */

:root {
    /* Paleta de marca real de Steps Podología (tomada del material oficial de Instagram) */
    --primary: #1ca39a;
    --primary-dark: #0e7c74;
    --primary-light: #e7f6f4;
    --accent: #0e7c74;
    --accent-dark: #0a625c;
    --whatsapp: #25d366;
    --text: #263241;
    --text-light: #64748b;
    --border: #e2e8f0;
    --white: #ffffff;
    --navy: #123734;
    --radius: 10px;
    --shadow: 0 4px 16px rgba(15, 36, 56, 0.08);
    --shadow-lg: 0 16px 40px rgba(15, 36, 56, 0.18);
    --font-heading: 'Poppins', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
    line-height: 1.25;
    margin: 0 0 .5em;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--navy);
}

p { margin: 0 0 1em; text-align: justify; text-justify: inter-word; }

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

/* ===== Botones ===== */
.btn {
    display: inline-block;
    padding: 13px 26px;
    border-radius: 999px;
    font-weight: 700;
    font-family: var(--font-heading);
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-dark); }

.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }

/* Sobre fondos oscuros/de color (banda de CTA, hero con imagen) el outline debe ser blanco */
.cta-band .btn-outline,
.hero-banner .btn-outline {
    border-color: var(--white);
    color: var(--white);
}
.cta-band .btn-outline:hover,
.hero-banner .btn-outline:hover {
    background: rgba(255,255,255,.15);
    color: var(--white);
}

.btn-whatsapp { background: var(--whatsapp); color: var(--white); }
.btn-whatsapp:hover { background: #1ea952; }

.btn-block { display: block; width: 100%; text-align: center; }

/* ===== Barra superior ===== */
.top-bar {
    background: var(--navy);
    color: #cbd5e1;
    font-size: .85rem;
    padding: 8px 0;
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.top-bar-info { display: flex; gap: 22px; flex-wrap: wrap; }
.top-bar-info span:not(:first-child) { display: none; }
.top-bar-info a { color: #e2e8f0; font-weight: 600; }
.top-bar-info a:hover { color: #6fe3d6; }
.top-bar-social { display: flex; gap: 14px; }
.top-bar-social a { color: #cbd5e1; }
.top-bar-social a:hover { color: #6fe3d6; }

@media (min-width: 861px) {
    .top-bar-info span:not(:first-child) { display: inline; }
}

/* ===== Header / Nav ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    padding-bottom: 14px;
}

.brand { display: flex; flex-direction: column; }
.brand-name { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 800; color: var(--primary-dark); }
.brand-owner { font-size: .8rem; color: var(--text-light); }

.nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--text); display: block; }

.site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 16px 20px 24px;
    border-bottom: 1px solid var(--border);
    display: none;
}
.site-nav.open { display: flex; }
.site-nav a { width: 100%; padding: 10px 0; font-weight: 600; color: var(--text); border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a.active { color: var(--primary); border-color: var(--primary); }
.site-nav a.nav-cta { width: auto; margin-top: 8px; border: none; padding: 11px 22px; color: var(--white); }
.site-nav a.nav-cta:hover { border: none; }

@media (min-width: 861px) {
    .nav-toggle { display: none; }
    .site-nav {
        position: static;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 26px;
        padding: 0;
        border-bottom: 0;
        background: transparent;
    }
    .site-nav a { width: auto; padding: 6px 2px; }
    .site-nav a.nav-cta { padding: 11px 22px; }
}

/* ===== Hero dividido: texto + carrusel de video ===== */
.hero-split { padding: 40px 0; background: linear-gradient(160deg, var(--primary-light), #ffffff); }
.hero-split-inner { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
.hero-split-copy { text-align: center; }
.hero-split-copy .lead { color: var(--text-light); text-align: center; font-size: 1.05rem; max-width: 480px; margin-left: auto; margin-right: auto; }
.hero-split .hero-actions { justify-content: center; }

@media (min-width: 861px) {
    .hero-split { padding: 56px 0; }
    .hero-split-inner { grid-template-columns: 1fr 1.1fr; gap: 40px; }
    .hero-split-copy { text-align: left; }
    .hero-split-copy .lead { text-align: left; margin-left: 0; margin-right: 0; }
    .hero-split .hero-actions { justify-content: flex-start; }
}

/* ===== Hero (banner de imagen completa, usado en páginas internas si aplica) ===== */
.hero-banner {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: 72px 0;
    color: var(--white);
}
.hero-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(15,36,56,.92) 0%, rgba(15,36,56,.72) 55%, rgba(27,95,168,.55) 100%);
}
.hero-banner .container { position: relative; z-index: 1; }
.hero-banner-content { max-width: 620px; }
.hero-eyebrow {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: .78rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 18px;
}
.hero-banner h1 { color: var(--white); font-size: 2rem; }
.hero-banner p.lead { font-size: 1.1rem; color: rgba(255,255,255,.9); text-align: left; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }

@media (min-width: 701px) {
    .hero-banner { padding: 110px 0; }
    .hero-banner h1 { font-size: 2.6rem; }
}

/* ===== Encabezado de página interior ===== */
.page-header {
    background: var(--navy);
    color: var(--white);
    padding: 48px 0;
    text-align: center;
}
.page-header h1 { color: var(--white); margin-bottom: 8px; }
.page-header p { color: rgba(255,255,255,.8); margin: 0; text-align: center; }

/* ===== Secciones genéricas ===== */
section { padding: 48px 0; }
.section-alt { background: var(--primary-light); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 32px; }
.eyebrow { display: inline-block; color: var(--accent); font-family: var(--font-heading); font-weight: 700; text-transform: uppercase; font-size: .8rem; letter-spacing: .06em; margin-bottom: 6px; }
.section-head p { color: var(--text-light); text-align: center; }

@media (min-width: 701px) {
    section { padding: 64px 0; }
    .section-head { margin-bottom: 40px; }
}

/* ===== Tarjetas de servicio con ícono ===== */
.grid { display: grid; gap: 20px; }
.grid-3, .grid-4 { grid-template-columns: 1fr; }

@media (min-width: 561px) {
    .grid { gap: 24px; }
    .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 861px) {
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px 22px;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--primary);
    transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card h3 { color: var(--navy); font-size: 1.1rem; }
.card p { color: var(--text-light); margin: 0; }
.card .icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    background: var(--primary-light);
    border-radius: 12px;
    margin-bottom: 16px;
}

/* ===== Servicios en detalle ===== */
.service-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
@media (min-width: 781px) {
    .service-list { grid-template-columns: 1fr 1fr; gap: 28px; }
}

.service-row {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 26px 22px 22px;
    box-shadow: var(--shadow);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    overflow: hidden;
}
.service-row::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}
.service-row:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--primary); }

.service-row-top { display: flex; align-items: center; gap: 16px; }
.service-row .icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    background: linear-gradient(135deg, var(--primary-light), #ffffff);
    border: 1px solid var(--border);
    border-radius: 50%;
}
.service-row-body h3 { color: var(--navy); font-size: 1.15rem; margin: 2px 0 0; }
.service-row-body p { color: var(--text-light); margin-bottom: 18px; }
.service-row-body .btn { padding: 10px 20px; font-size: .88rem; }

@media (min-width: 781px) {
    .service-row { padding: 32px 28px 28px; }
}

/* ===== Sobre mí ===== */
.about-grid { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
.about-grid img { border-radius: var(--radius); box-shadow: var(--shadow); }

@media (min-width: 861px) {
    .about-grid { grid-template-columns: .9fr 1.1fr; gap: 48px; }
}

/* Foto recortada (fondo transparente): sin marco ni sombra rectangular, con un círculo detrás */
.photo-cutout {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.photo-cutout::before {
    content: "";
    position: absolute;
    inset: 6% 8% 0 8%;
    background: var(--primary-light);
    border-radius: 50%;
    z-index: 0;
}
.photo-cutout img {
    position: relative;
    z-index: 1;
    border-radius: 0;
    box-shadow: none;
    max-height: 420px;
    width: auto;
    margin: 0 auto;
}

/* Variante: la foto sobresale del borde inferior de la sección de color,
   como si saliera del cuadro. Solo se activa en pantallas grandes, donde
   la foto y el texto quedan lado a lado (en móvil se ve apilada normal). */
@media (min-width: 861px) {
    .photo-cutout--overflow {
        align-self: end;
        z-index: 2;
        margin-bottom: -36px;
    }
}

.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.gallery img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 1/1; object-fit: cover; }

/* ===== Horario destacado ===== */
.hours-block {
    background: var(--navy);
    color: var(--white);
    border-radius: var(--radius);
    padding: 28px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: center;
}
.hours-block h3 { color: var(--white); }
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table td { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.hours-table td:last-child { text-align: right; color: #6fe3d6; font-weight: 700; }

@media (min-width: 701px) {
    .hours-block { grid-template-columns: 1fr 1fr; gap: 24px; padding: 36px; }
}

/* ===== Carrusel de videos (Reels) ===== */
.video-carousel { position: relative; max-width: 480px; width: 100%; margin: 0 auto; }
.video-frame-wrap {
    position: relative;
    aspect-ratio: 9 / 16;
    border-radius: 20px;
    overflow: hidden;
    background: var(--navy);
    box-shadow: var(--shadow-lg);
}
.video-slide { display: none; width: 100%; height: 100%; }
.video-slide.active { display: block; }
.video-slide iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: var(--navy);
    display: block;
}

.video-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    cursor: pointer;
    z-index: 2;
}
.video-arrow.prev { left: -6px; }
.video-arrow.next { right: -6px; }

@media (min-width: 561px) {
    .video-arrow.prev { left: -18px; }
    .video-arrow.next { right: -18px; }
}

.video-dots { display: flex; justify-content: center; gap: 10px; margin-top: 18px; }
.video-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border); border: none; cursor: pointer; padding: 0; }
.video-dot.active { background: var(--primary); }

/* ===== Por qué elegirnos ===== */
.why-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.why-item { text-align: center; padding: 10px; }
.why-item .icon {
    width: 64px; height: 64px; margin: 0 auto 14px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
}
.why-item h4 { margin-bottom: 6px; font-size: 1rem; }
.why-item p { color: var(--text-light); font-size: .92rem; margin: 0; text-align: center; }

@media (min-width: 561px) {
    .why-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 861px) {
    .why-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ===== CTA banda ===== */
.cta-band {
    background: var(--primary);
    color: var(--white);
    text-align: center;
    padding: 48px 0;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,.9); text-align: center; }

@media (min-width: 701px) {
    .cta-band { padding: 56px 0; }
}

/* ===== Formularios ===== */
.form-grid { display: grid; gap: 18px; }
label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .9rem; }
input[type="text"], input[type="tel"], input[type="email"], select, textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    background: var(--white);
    color: var(--text);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--primary); border-color: var(--primary); }
textarea { resize: vertical; min-height: 120px; }

.alert { padding: 14px 18px; border-radius: 8px; margin-bottom: 24px; font-weight: 600; }
.alert-success { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.alert-error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

.contact-layout { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: start; }
@media (min-width: 861px) {
    .contact-layout { grid-template-columns: 1fr 1fr; gap: 48px; }
}

.info-list { list-style: none; padding: 0; margin: 0 0 24px; }
.info-list li { padding: 10px 0; border-bottom: 1px solid var(--border); }
.info-list strong { display: block; color: var(--primary-dark); font-family: var(--font-heading); }

.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.map-embed iframe { width: 100%; height: 280px; border: 0; display: block; }

/* ===== Footer ===== */
.site-footer { background: var(--navy); color: #cbd5e1; padding: 48px 0 24px; margin-top: 0; }
.site-footer h3, .site-footer h4 { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
.social-links { display: flex; gap: 16px; margin-top: 8px; }
.social-links a { font-weight: 600; color: var(--accent); }
.site-footer .social-links a { color: #6fe3d6; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 32px; padding-top: 20px; font-size: .85rem; color: #94a3b8; }

@media (min-width: 701px) {
    .site-footer { padding: 56px 0 24px; }
    .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

/* ===== Botón flotante de WhatsApp ===== */
.whatsapp-float {
    position: fixed;
    bottom: 18px;
    right: 18px;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--whatsapp);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    z-index: 60;
}
.whatsapp-float:hover { transform: scale(1.06); }

@media (min-width: 701px) {
    .whatsapp-float { bottom: 22px; right: 22px; width: 58px; height: 58px; }
}

/* ===== Admin ===== */
.admin-body { background: #f8fafc; }
.admin-shell { min-height: 100vh; display: flex; flex-direction: column; }
.admin-topbar {
    background: var(--navy);
    color: var(--white);
    padding: 14px 0;
}
.admin-topbar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.admin-topbar a { color: var(--white); }
.admin-topbar .admin-nav { display: flex; gap: 16px; align-items: center; font-weight: 600; flex-wrap: wrap; }

.admin-main { flex: 1; padding: 28px 0; }

.admin-login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--primary-light); padding: 20px; }
.admin-login-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 32px 24px; width: 100%; max-width: 380px; }

.stat-row { display: grid; grid-template-columns: 1fr; gap: 16px; margin-bottom: 28px; }
.stat-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; text-align: center; }
.stat-card .num { font-size: 2rem; font-weight: 800; color: var(--primary-dark); font-family: var(--font-heading); }
.stat-card .label { color: var(--text-light); font-size: .9rem; }

@media (min-width: 701px) {
    .admin-main { padding: 36px 0; }
    .admin-login-card { padding: 36px; }
    .stat-row { grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 32px; }
}

.table-wrap { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: .92rem; }
th { background: var(--primary-light); color: var(--primary-dark); }
tr:last-child td { border-bottom: none; }

.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.badge-nuevo { background: #dbeafe; color: #1d4ed8; }
.badge-contactado { background: #dcfce7; color: #15803d; }
.badge-descartado { background: #f1f5f9; color: #64748b; }

.back-link { display: inline-block; margin-bottom: 20px; font-weight: 600; color: var(--primary); }
