/* ============================================================
   CATEGORY TEMPLATE — Pie Pro Salud
   Cargar DESPUÉS de styles.css
   Reutilizable en: clinica-bogota.html, spa-medico-bogota.html,
   masaje-pies-bogota.html (y cualquier categoría futura)
   ============================================================ */

/* ----------------------------------------------------------
   1. CATEGORY HERO
   ---------------------------------------------------------- */
.category-hero {
    position: relative;
    padding: 110px 0 70px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--accent-color) 100%);
    color: var(--white);
}

.category-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../fondo.png') center / cover no-repeat;
    opacity: 0.08;
    pointer-events: none;
}

/* Círculos decorativos de fondo */
.category-hero::after {
    content: '';
    position: absolute;
    top: -120px;
    right: -120px;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

.category-hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    opacity: 0.85;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--white);
    text-decoration: none;
    transition: opacity 0.2s;
}

.breadcrumb a:hover { opacity: 0.7; }

.breadcrumb span { opacity: 0.6; }

.breadcrumb .current { opacity: 1; font-weight: 500; }

/* Tag encima del H1 */
.category-hero-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--white);
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 0.35rem 1rem;
    margin-bottom: 1.25rem;
}

.category-hero h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

.category-hero-description {
    font-size: 1.1rem;
    line-height: 1.8;
    opacity: 0.93;
    margin-bottom: 2.25rem;
    max-width: 620px;
}

.category-hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ----------------------------------------------------------
   2. INTRO STRIP — íconos de beneficios rápidos
   ---------------------------------------------------------- */
.category-strip {
    background: var(--white);
    border-bottom: 1px solid rgba(0, 184, 212, 0.12);
    padding: 0;
}

.category-strip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.category-strip-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 2rem;
    border-right: 1px solid rgba(0, 184, 212, 0.1);
    transition: background 0.3s;
}

.category-strip-item:last-child { border-right: none; }

.category-strip-item:hover { background: var(--bg-light); }

.category-strip-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-strip-icon svg {
    width: 20px;
    height: 20px;
    color: var(--white);
}

.category-strip-text strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
}

.category-strip-text span {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* ----------------------------------------------------------
   3. SERVICES LIST — igual al index pero adaptado a categoría
   ---------------------------------------------------------- */
.category-services-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.category-services-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 4rem;
}

.category-services-header h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    color: var(--text-dark);
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 1rem;
}

.category-services-header h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.category-services-header p {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* Service cards — mismo sistema alternante que el index */
.service-entry {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-bottom: 2.5rem;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: var(--white);
    min-height: 360px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.service-entry:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

/* Contenido textual */
.service-entry-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 3.5rem;
    position: relative;
    overflow: hidden;
}

.service-entry-content::before {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 180px;
    height: 180px;
    background: var(--primary-light);
    border-radius: 50%;
    opacity: 0.2;
    pointer-events: none;
}

.service-entry-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.service-entry-content h3 {
    font-size: clamp(1.3rem, 2.2vw, 1.7rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.25;
}

.service-entry-content h3 a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

.service-entry-content h3 a:hover { color: var(--primary-color); }

.service-entry-content p {
    font-size: 0.97rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.75rem;
}

/* Lista de beneficios breves */
.service-entry-bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
}

.service-entry-bullets li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.service-entry-bullets li::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    flex-shrink: 0;
}

/* Botón CTA del servicio */
.btn-service {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    align-self: flex-start;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.75rem 1.6rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(0, 184, 212, 0.28);
}

.btn-service:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 184, 212, 0.38);
    gap: 0.85rem;
}

.btn-service svg { transition: transform 0.3s; }
.btn-service:hover svg { transform: translateX(3px); }

/* Imagen del servicio */
.service-entry-image {
    position: relative;
    overflow: hidden;
    min-height: 320px;
}

.service-entry-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.service-entry:hover .service-entry-image img { transform: scale(1.06); }

.service-entry-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 172, 193, 0.1), transparent 60%);
    pointer-events: none;
}

/* Alternancia: impar → texto izq, imagen der */
.service-entry:nth-child(odd) .service-entry-content  { order: 1; }
.service-entry:nth-child(odd) .service-entry-image    { order: 2; }

/* Par → imagen izq, texto der */
.service-entry:nth-child(even) .service-entry-content { order: 2; }
.service-entry:nth-child(even) .service-entry-image   { order: 1; }

/* ----------------------------------------------------------
   4. WHY CHOOSE — tres columnas con iconos
   ---------------------------------------------------------- */
.category-why {
    padding: 80px 0;
    background: var(--white);
}

.category-why-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 3.5rem;
}

.category-why-header h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    color: var(--text-dark);
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 1rem;
}

.category-why-header h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.category-why-header p {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.8;
}

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

.why-card {
    background: var(--bg-light);
    border-radius: 16px;
    padding: 2.25rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.why-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.why-card:hover {
    background: var(--white);
    box-shadow: var(--shadow-md);
    transform: translateY(-6px);
}

.why-card:hover::before { transform: scaleX(1); }

.why-card-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.why-card-icon svg {
    width: 28px;
    height: 28px;
    color: var(--white);
}

.why-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.why-card p {
    font-size: 0.93rem;
    color: var(--text-light);
    line-height: 1.75;
}

/* ----------------------------------------------------------
   5. PROCESS — pasos numerados horizontal
   ---------------------------------------------------------- */
.category-process {
    padding: 80px 0;
    background: var(--bg-light);
}

.category-process h2 {
    text-align: center;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    color: var(--text-dark);
    margin-bottom: 3.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.category-process h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0;
    position: relative;
}

/* Línea conectora horizontal */
.process-grid::before {
    content: '';
    position: absolute;
    top: 32px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-light), var(--primary-color), var(--primary-light));
    z-index: 0;
}

.process-step {
    text-align: center;
    padding: 0 1.5rem 2rem;
    position: relative;
    z-index: 1;
}

.process-step-num {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 16px rgba(0, 184, 212, 0.35);
    transition: transform 0.3s;
}

.process-step:hover .process-step-num { transform: scale(1.1); }

.process-step h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.6rem;
}

.process-step p {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* ----------------------------------------------------------
   6. FAQ ACCORDION
   ---------------------------------------------------------- */
.category-faq {
    padding: 80px 0;
    background: var(--white);
}

.category-faq h2 {
    text-align: center;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    color: var(--text-dark);
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.category-faq h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.faq-list {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--bg-light);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid transparent;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.faq-item.open {
    border-color: rgba(0, 184, 212, 0.2);
    box-shadow: var(--shadow-sm);
}

.faq-q {
    width: 100%;
    background: none;
    border: none;
    padding: 1.35rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    text-align: left;
    gap: 1rem;
    transition: color 0.3s;
}

.faq-q:hover { color: var(--primary-color); }

.faq-q-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, transform 0.4s;
    font-size: 1.1rem;
    color: var(--primary-dark);
    font-weight: 700;
    line-height: 1;
}

.faq-item.open .faq-q-icon {
    background: var(--primary-color);
    color: var(--white);
    transform: rotate(45deg);
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 1.5rem;
}

.faq-item.open .faq-a {
    max-height: 400px;
    padding: 0 1.5rem 1.35rem;
}

.faq-a p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* ----------------------------------------------------------
   7. CTA BANNER
   ---------------------------------------------------------- */
.category-cta-banner {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--accent-color) 100%);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.category-cta-banner::before {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

.category-cta-banner::after {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    pointer-events: none;
}

.category-cta-banner-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.category-cta-banner h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.category-cta-banner p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2.25rem;
    line-height: 1.7;
    font-style: italic;
}

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

/* ----------------------------------------------------------
   8. RESPONSIVE
   ---------------------------------------------------------- */
@media (max-width: 900px) {
    .service-entry {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .service-entry-image {
        min-height: 240px;
        order: 1 !important;
    }

    .service-entry-content {
        order: 2 !important;
        padding: 2.25rem 2rem;
    }

    .process-grid::before { display: none; }

    .category-strip-item {
        border-right: none;
        border-bottom: 1px solid rgba(0, 184, 212, 0.1);
    }
}

@media (max-width: 768px) {
    .category-hero { padding: 90px 0 55px; }

    .category-hero h1 { font-size: 2rem; }

    .category-hero-description { font-size: 1rem; }

    .category-hero-cta { flex-direction: column; }

    .category-hero-cta .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .category-services-section,
    .category-why,
    .category-process,
    .category-faq,
    .category-cta-banner { padding: 60px 0; }

    .service-entry-content { padding: 2rem 1.5rem; }
}

@media (max-width: 480px) {
    .category-strip-grid { grid-template-columns: 1fr 1fr; }

    .category-strip-item { padding: 1.25rem; }

    .process-grid { grid-template-columns: 1fr 1fr; }

    .why-card { padding: 1.75rem 1.25rem; }
}