﻿/* ================================================
   PAGES LAYOUT CSS - Dra. Angelina
   Estilos para páginas de contenido (no index)
   Usa la misma paleta y componentes de style.css
   ================================================ */

/* ---- Page Hero Banner ---- */
.page-hero {
    background: linear-gradient(135deg, #a67a91 0%, #202647 100%);
    padding: 60px 0 50px;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
}

.page-hero h1 {
    color: #ffffff;
    font-size: 36px;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

.page-hero .breadcrumb-nav {
    margin-top: 15px;
    position: relative;
    z-index: 1;
}

.page-hero .breadcrumb-nav a {
    color: rgba(255,255,255,0.75);
    font-size: 15px;
    transition: 0.3s;
}

.page-hero .breadcrumb-nav a:hover {
    color: #ffffff;
}

.page-hero .breadcrumb-nav span {
    color: rgba(255,255,255,0.5);
    font-size: 15px;
    margin: 0 8px;
}

.page-hero .breadcrumb-nav .current {
    color: #ffffff;
    font-size: 15px;
}

/* ---- Content Sections ---- */
.content-section {
    padding-top: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #f0f0f0;
}

.content-section:last-of-type {
    border-bottom: none;
}

.content-section h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #202647;
    position: relative;
    padding-bottom: 15px;
}

.content-section h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background: #a67a91;
    border-radius: 3px;
}

.content-section.text-center h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.content-section h3 {
    font-size: 22px;
    margin-bottom: 15px;
    margin-top: 10px;
}

/* ---- Doctor Photo Container ---- */
.doctor-photo-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
}

.doctor-photo-container img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}
.doctor-photo-container.photo-portrait img {
    object-fit: contain;
}

.doctor-photo-container.photo-portrait {
    max-height: none;
}

.doctor-photo-container.photo-landscape {
    max-height: none;
}

/* ---- Hub Cards Grid ---- */
.hub-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
    align-items: stretch;
}

.hub-cards-grid .single-services {
    margin-bottom: 0;
}

.hub-cards-grid .single-services .services-image {
    height: 200px;
    overflow: hidden;
}

.hub-cards-grid .single-services .services-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hub-cards-grid .single-services .services-content {
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.hub-cards-grid .single-services .services-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.hub-cards-grid .single-services .services-content h3 a {
    color: #202647;
    transition: 0.3s;
}

.hub-cards-grid .single-services .services-content p {
    font-size: 14px;
    line-height: 1.6;
    flex-grow: 1;
}

.hub-cards-grid .single-services .services-content .card-link {
    display: inline-block;
    color: #a67a91;
    font-weight: 500;
    font-size: 14px;
    margin-top: auto;
    transition: 0.3s;
}

.hub-cards-grid .single-services .services-content .card-link i {
    margin-left: 5px;
    transition: 0.3s;
}

.hub-cards-grid .single-services:hover .services-content .card-link {
    color: #ffffff;
}

.hub-cards-grid .single-services:hover .services-content .card-link i {
    margin-left: 10px;
}

/* Cards sin imagen (icon card) */
.hub-cards-grid .single-services.icon-card .services-content {
    border-radius: 5px;
    min-height: 200px;
}

.hub-cards-grid .single-services.icon-card .card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #a67a91, #c49aae);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: #ffffff;
    font-size: 24px;
}

.hub-cards-grid .single-services.icon-card:hover .card-icon {
    background: rgba(255,255,255,0.2);
}

/* ---- Section Category Header ---- */
.section-category {
    margin-top: 50px;
    margin-bottom: 10px;
}

.section-category h2 {
    font-size: 28px;
    margin-bottom: 10px;
    position: relative;
    padding-bottom: 15px;
}

.section-category h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background: #a67a91;
    border-radius: 3px;
}

.section-category p {
    max-width: 700px;
}

/* ---- FAQ Accordion ---- */
.faq-section .card {
    border: none !important;
    border-radius: 8px !important;
    margin-bottom: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.faq-section .card-header {
    background: #ffffff;
    border-bottom: none;
    padding: 0;
    cursor: pointer;
}

.faq-section .card-header .btn-link {
    width: 100%;
    text-align: left;
    padding: 18px 25px;
    color: #202647;
    font-weight: 600;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: none;
    white-space: normal;
}

.faq-section .card-header .btn-link:hover {
    color: #a67a91;
    text-decoration: none;
}

.faq-section .card-header .btn-link::after {
    content: '\ea4a';
    font-family: 'boxicons' !important;
    font-size: 20px;
    transition: transform 0.3s;
    flex-shrink: 0;
    margin-left: 15px;
}

.faq-section .card-header .btn-link.collapsed::after {
    content: '\ea6e';
}

.faq-section .card-body {
    padding: 0 25px 20px;
    color: #6b6b84;
    line-height: 1.7;
}

/* ---- CTA Block ---- */
.cta-block {
    background: linear-gradient(135deg, #f8f0f4 0%, #f0e8ec 100%);
    border-radius: 15px;
    padding: 50px 40px;
    text-align: center;
    margin-top: 50px;
    margin-bottom: 20px;
}

.cta-block h3 {
    color: #202647;
    margin-bottom: 15px;
    font-size: 26px;
}

.cta-block p {
    max-width: 550px;
    margin: 0 auto 25px;
}

.cta-block .default-btn {
    padding: 16px 40px;
    font-size: 16px;
}

/* ---- About Page ---- */
.about-intro-section {
    padding-top: 50px;
    padding-bottom: 30px;
}

.about-intro-section .doctor-photo-container {
    max-height: 500px;
}

.about-credentials {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 30px;
    margin-top: 20px;
}

.about-credentials .credential-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.about-credentials .credential-item:last-child {
    margin-bottom: 0;
}

.about-credentials .credential-item i {
    color: #a67a91;
    font-size: 22px;
    margin-right: 15px;
    margin-top: 3px;
    flex-shrink: 0;
}

.about-credentials .credential-item h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

/* ---- Checklist Style ---- */
.styled-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
}

.styled-checklist li {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: flex-start;
    color: #6b6b84;
    font-size: 16px;
    line-height: 1.6;
}

.styled-checklist li:last-child {
    border-bottom: none;
}

.styled-checklist li i {
    color: #a67a91;
    font-size: 20px;
    margin-right: 12px;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Warning list variant */
.styled-checklist.warning-list li i {
    color: #e8a838;
}

/* ---- Contact Cards ---- */
.contact-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
    text-align: center;
    height: 100%;
    transition: 0.3s;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.contact-card .contact-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #a67a91, #c49aae);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #ffffff;
    font-size: 28px;
}

.contact-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.contact-card p {
    font-size: 15px;
    margin-bottom: 0;
}

.contact-card a {
    color: #a67a91;
    font-weight: 500;
}

/* ---- Quick Reference Table ---- */
.styled-table {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
}

.styled-table thead th {
    background: #a67a91;
    color: #ffffff;
    border: none;
    padding: 15px 20px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
}

.styled-table tbody td {
    padding: 14px 20px;
    border-color: #f0f0f0;
    color: #6b6b84;
}

.styled-table tbody tr:hover {
    background: #fdf8fa;
}

/* ---- Map Container ---- */
.styled-map {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.styled-map iframe {
    border: 0;
    display: block;
}

/* ---- Subpage intro with image ---- */
.subpage-intro {
    padding-top: 40px;
}

.subpage-intro .doctor-photo-container {
    max-height: none;
}

/* ================================================
   RESPONSIVE
   ================================================ */

/* Tablet */
@media only screen and (min-width: 768px) and (max-width: 991px) {
    .page-hero {
        padding: 50px 0 40px;
    }
    .page-hero h1 {
        font-size: 30px;
    }
    .hub-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .content-section h2 {
        font-size: 26px;
    }
    .cta-block {
        padding: 40px 30px;
    }
    .cta-block h3 {
        font-size: 24px;
    }
    .section-category {
        margin-top: 40px;
    }
}

/* Móvil */
@media only screen and (max-width: 767px) {
    .page-hero {
        padding: 40px 0 30px;
    }
    .page-hero h1 {
        font-size: 24px;
    }
    .page-hero .breadcrumb-nav a,
    .page-hero .breadcrumb-nav span,
    .page-hero .breadcrumb-nav .current {
        font-size: 13px;
    }
    .hub-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .hub-cards-grid .single-services .services-image {
        height: 180px;
    }
    .hub-cards-grid .single-services .services-content {
        min-height: auto;
    }
    .content-section {
        padding-top: 30px;
        padding-bottom: 30px;
    }
    .content-section h2 {
        font-size: 22px;
    }
    .content-section h3 {
        font-size: 19px;
    }
    .cta-block {
        padding: 35px 20px;
        margin-top: 30px;
    }
    .cta-block h3 {
        font-size: 22px;
    }
    .doctor-photo-container.photo-portrait {
        max-height: none;
    }
    .doctor-photo-container.photo-landscape {
        max-height: 250px;
    }
    .about-intro-section .doctor-photo-container {
        max-height: none;
        margin-top: 30px;
    }
    .about-credentials {
        padding: 20px;
    }
    .faq-section .card-header .btn-link {
        padding: 15px 18px;
        font-size: 15px;
    }
    .faq-section .card-body {
        padding: 0 18px 15px;
    }
    .contact-card {
        padding: 25px 20px;
    }
    .section-category {
        margin-top: 30px;
    }
    .styled-table thead th {
        padding: 12px 15px;
        font-size: 14px;
    }
    .styled-table tbody td {
        padding: 12px 15px;
        font-size: 14px;
    }
    .subpage-intro .doctor-photo-container {
        margin-top: 25px;
        max-height: 280px;
    }
}

/* Ensure cards are self-contained and equal height */
.hub-cards-grid .single-services {
    height: 100%;
    display: flex;
    flex-direction: column;
}
.hub-cards-grid .single-services.icon-card .services-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 40px 30px;
}
.hub-cards-grid .single-services.icon-card .services-content p {
    flex-grow: 1;
}
.hub-cards-grid .single-services.icon-card .card-link {
    margin-top: 15px;
}
/* FIX: Override Bootstrap col-* classes when inside the CSS Grid */
.hub-cards-grid > div[class*="col-"] {
    max-width: 100% !important;
    flex: none !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.hub-cards-grid .single-services {
    width: 100%;
}

/* Fotos reales de la doctora (dra-angelina1 a 5): mostrar completas, sin recortar */
img[src*="dra-angelina"] {
  width: 100%;
  height: auto !important;          /* respeta su proporción natural */
  max-height: none !important;      /* quita cualquier tope que la recorte */
  object-fit: contain !important;   /* se ve la imagen entera, sin cortar */
  display: block;
}

/* Ensure the wrapper doesn't restrict it */
.doctor-photo-container {
    max-height: none !important;
}