/* ================================================================
   UMQ - Urologia Medica y Quirurgica
   Hoja de estilos UNICA para las 5 paginas del sitio.
   Antes este bloque estaba copiado dentro de cada HTML: 5 copias de
   ~47 KB que habia que editar a mano una por una. Por eso un
   comentario mal cerrado sobrevivio en las 5.
   ================================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ==================== HEADER & NAVBAR ==================== */
header {
    background-color: #001f3f;
    padding: 12px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #fff;
}

.header-left, .header-right {
    display: flex;
    gap: 30px;
    align-items: center;
}

.header-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-item::before {
    content: '';
    width: 8px;
    height: 8px;
    background-color: #2ec4b6;
    border-radius: 50%;
}

nav {
    background-color: #e8f2f7;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: #001f3f;
}

.logo-text {
    font-weight: 700;
    font-size: 16px;
    color: #001f3f;
}

.logo-subtext {
    font-size: 11px;
    color: #666;
    font-weight: 500;
}

.nav-menu {
    display: flex;
    gap: 35px;
    align-items: center;
    list-style: none;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 16px;
    position: relative;
    transition: color 0.3s ease;
    padding: 10px 15px;
}

.nav-menu a:hover {
    color: #2ec4b6;
}

.nav-menu a.active {
    color: #2ec4b6;
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #2ec4b6;
}

.cta-button {
    background-color: #001f3f;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #003366;
}

/* Botones de accion que son enlaces reales (WhatsApp): mantienen el
   mismo aspecto que los <button> originales. */
a.cta-button,
a.cta-button-primary,
a.chat-button {
    display: inline-flex;
    text-decoration: none;
}

/* ==================== HERO SECTION ==================== */
.hero {
    background: linear-gradient(135deg, #e8f2f7 0%, #d4e9f2 100%);
    padding: 60px 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.service-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: white;
    padding: 10px 20px;
    border-radius: 30px;
    width: fit-content;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.service-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background-color: #2ec4b6;
    border-radius: 50%;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    color: #001f3f;
    margin: 0;
}

.hero-title .highlight {
    color: #2ec4b6;
}

.hero-description {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin: 0;
}

.hero-description strong {
    color: #001f3f;
    font-weight: 700;
}

.location-card {
    background-color: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.location-icon {
    color: #2ec4b6;
    font-size: 20px;
    flex-shrink: 0;
}

.location-text {
    font-size: 13px;
    color: #666;
}

.location-text strong {
    display: block;
    color: #001f3f;
    font-weight: 700;
    margin-bottom: 3px;
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.doctor-image {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.doctor-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    object-fit: cover;
}

.info-card {
    position: absolute;
    background-color: white;
    border-radius: 12px;
    padding: 15px 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    font-size: 13px;
    max-width: 200px;
}

.rating-card {
    top: 20%;
    right: -30px;
    text-align: center;
}

.rating-value {
    font-size: 32px;
    font-weight: 800;
    color: #001f3f;
    line-height: 1;
}

.rating-label {
    font-size: 11px;
    color: #999;
    font-weight: 600;
    margin-top: 5px;
    text-transform: uppercase;
}

.star {
    font-size: 20px;
    color: #ffc107;
    margin-top: 8px;
}

.experience-badge {
    bottom: 40px;
    left: -20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.experience-icon {
    width: 40px;
    height: 40px;
    background-color: #001f3f;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.experience-text {
    display: flex;
    flex-direction: column;
}

.experience-text strong {
    display: block;
    color: #001f3f;
    font-weight: 700;
}

.experience-text span {
    color: #999;
    font-size: 11px;
    text-transform: uppercase;
}

.doctor-badge {
    top: 30px;
    right: 20px;
    background-color: #001f3f;
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.doctor-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.doctor-info h4 {
    font-size: 13px;
    margin: 0;
    font-weight: 700;
}

.doctor-info p {
    font-size: 11px;
    margin: 2px 0 0 0;
    opacity: 0.8;
}

.location-badge {
    position: absolute;
    bottom: 80px;
    right: 20px;
    background-color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #001f3f;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.side-cards {
    position: absolute;
    right: -30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 280px;
}

.satisfaction-card {
    background-color: #001f3f;
    color: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.satisfaction-value {
    font-size: 42px;
    font-weight: 800;
    line-height: 1;
}

.satisfaction-label {
    font-size: 11px;
    color: #aaa;
    font-weight: 600;
    margin-top: 10px;
    text-transform: uppercase;
}

.specialist-label {
    font-size: 11px;
    color: #2ec4b6;
    font-weight: 700;
    margin-top: 15px;
    text-transform: uppercase;
}


.faq-card {
    background-color: #001f3f;
    color: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    position: relative;
}

.faq-card p {
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}


/* ==================== CALL TO ACTION SECTION ==================== */
.cta-section {
    background: linear-gradient(135deg, #e8f2f7 0%, #d4e9f2 100%);
    padding: 40px;
    border-radius: 16px;
    margin: 60px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.cta-left {
    display: flex;
    gap: 20px;
}

.cta-button-primary {
    background-color: #2ec4b6;
    color: #001f3f;
    padding: 16px 24px;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.cta-button-primary:hover {
    background-color: #27b5a6;
    transform: translateY(-2px);
}

.rating-group {
    display: flex;
    gap: 15px;
    align-items: center;
}

.rating-text {
    font-size: 12px;
}

.rating-text strong {
    display: block;
    color: #001f3f;
    font-weight: 700;
}

.stars-display {
    color: #ffc107;
    font-size: 14px;
}

/* ==================== FACILITIES SECTION ==================== */
.facilities {
    padding: 80px 40px;
    background-color: #f8f9fb;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-label {
    color: #2ec4b6;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: block;
}

.section-title {
    font-size: 42px;
    font-weight: 800;
    color: #001f3f;
    margin-bottom: 15px;
}

.section-description {
    font-size: 16px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.facilities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.facility-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.facility-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.facility-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #e8f2f7 0%, #d4e9f2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #999;
    overflow: hidden;
}

.facility-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.facility-card:hover .facility-image img {
    transform: scale(1.05);
}

.facility-content {
    padding: 20px;
}

.facility-title {
    font-size: 16px;
    font-weight: 700;
    color: #001f3f;
    margin-bottom: 10px;
}

.facility-description {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.visit-button {
    background-color: #001f3f;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    align-self: flex-end;
}

.visit-button:hover {
    background-color: #003366;
}

/* ==================== ABOUT SECTION ==================== */
.about {
    padding: 80px 40px;
    background-color: white;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    width: 100%;
    height: 450px;
    background: linear-gradient(135deg, #d4e9f2 0%, #e8f2f7 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    overflow: hidden;
}

.about-image img {
    border-radius: 16px;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.about-title {
    font-size: 42px;
    font-weight: 800;
    color: #001f3f;
    line-height: 1.2;
}

.about-description {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.feature-icon {
    width: 24px;
    height: 24px;
    background-color: #2ec4b6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    flex-shrink: 0;
}

.feature-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.feature-title {
    font-weight: 700;
    color: #001f3f;
    font-size: 14px;
}

.feature-desc {
    font-size: 13px;
    color: #666;
}

.button-group {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.btn-primary {
    background-color: #001f3f;
    color: white;
    padding: 14px 28px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    background-color: #003366;
}

.btn-secondary {
    background-color: transparent;
    color: #001f3f;
    padding: 14px 28px;
    border: 2px solid #001f3f;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: #001f3f;
    color: white;
}

/* ==================== PROCEDURES SECTION ==================== */
.procedures {
    padding: 80px 40px;
    background-color: #f8f9fb;
}

.procedures-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.procedure-card {
    background-color: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.procedure-card:hover {
    transform: translateY(-8px);
}

.procedure-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #d4e9f2 0%, #e8f2f7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    position: relative;
    overflow: hidden;
}

.procedure-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.procedure-card:hover .procedure-image img {
    transform: scale(1.05);
}

.procedure-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: #e74c3c;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
}

.procedure-badge.green {
    background-color: #2ec4b6;
}

.procedure-badge.dark {
    background-color: #001f3f;
}

.procedure-arrow {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    background-color: #2ec4b6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.procedure-content {
    padding: 30px;
}

.procedure-title {
    font-size: 18px;
    font-weight: 700;
    color: #001f3f;
    margin-bottom: 10px;
}

.procedure-description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.procedure-link {
    color: #001f3f;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 15px;
    display: block;
}

.procedure-link:hover {
    color: #2ec4b6;
}

.procedure-footer {
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* ==================== ASSESSMENT SECTION ==================== */
.assessment {
    padding: 80px 40px;
    background: linear-gradient(135deg, #001f3f 0%, #003366 100%);
    color: white;
    border-radius: 16px;
    margin: 60px 40px;
}

.assessment-header {
    text-align: center;
    margin-bottom: 50px;
}

.assessment-label {
    color: #2ec4b6;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: block;
}

.assessment-title {
    font-size: 42px;
    font-weight: 800;
    color: white;
    margin-bottom: 15px;
}

.assessment-description {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
}

.assessment-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.assessment-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.assessment-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #2ec4b6;
}

.assessment-item-title {
    font-size: 16px;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}

.assessment-item-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.assessment-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.assessment-footer-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ==================== WHY CHOOSE US SECTION ==================== */
.why-choose {
    padding: 80px 40px;
    background-color: white;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: flex-start;
}

.why-choose-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.why-choose-title {
    font-size: 42px;
    font-weight: 800;
    color: #001f3f;
    line-height: 1.2;
}

.why-choose-description {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
}

.why-item {
    background-color: #f8f9fb;
    padding: 25px;
    border-radius: 12px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.why-number {
    font-size: 28px;
    font-weight: 800;
    color: #e8f2f7;
}

.why-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.why-text strong {
    color: #001f3f;
    font-weight: 700;
    font-size: 15px;
}

.why-text p {
    font-size: 13px;
    color: #666;
    margin: 0;
}

.contact-card {
    background: linear-gradient(135deg, #001f3f 0%, #003366 100%);
    color: white;
    padding: 40px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.contact-badge {
    color: #2ec4b6;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-title {
    font-size: 24px;
    font-weight: 800;
    color: white;
}

.contact-location {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.contact-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.contact-info strong {
    font-weight: 700;
    font-size: 14px;
}

.contact-info p {
    font-size: 13px;
    opacity: 0.8;
    margin: 0;
}

.contact-info-link {
    color: #2ec4b6;
    text-decoration: none;
    font-weight: 600;
}

.contact-info-link:hover {
    text-decoration: underline;
}

.schedule-button {
    background-color: #2ec4b6;
    color: #001f3f;
    padding: 16px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.schedule-button:hover {
    background-color: #27b5a6;
}

/* ==================== STATS SECTION ==================== */
.stats {
    background: linear-gradient(135deg, #001f3f 0%, #003366 100%);
    padding: 60px 40px;
    color: white;
}

.stats-header {
    text-align: center;
    margin-bottom: 50px;
}

.stats-label {
    color: #2ec4b6;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.stats-title {
    font-size: 42px;
    font-weight: 800;
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-item {
    text-align: center;
    padding: 30px 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

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

.stat-value {
    font-size: 48px;
    font-weight: 800;
    color: white;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* ==================== QUIÉNES SOMOS SECTION ==================== */
.quienes-somos {
    padding: 100px 40px;
    background-color: #fafbfc;
}

.quienes-somos-content {
    max-width: 950px;
    margin: 0 auto;
}

.quienes-somos-text {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.quienes-somos-body {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.quienes-somos-body p {
    font-size: 16px;
    line-height: 1.8;
    color: #4a5568;
    margin: 0;
}

.subsection-title {
    font-size: 18px;
    font-weight: 700;
    color: #001f3f;
    margin-top: 5px;
    margin-bottom: 15px;
    letter-spacing: -0.3px;
}

.values-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0;
    padding: 0;
}

.values-list li {
    font-size: 15px;
    line-height: 1.7;
    color: #4a5568;
    padding-left: 32px;
    position: relative;
}

.values-list li::before {
    content: '•';
    position: absolute;
    left: 8px;
    color: #2ec4b6;
    font-weight: 700;
    font-size: 20px;
    line-height: 1;
}

.values-list strong {
    color: #001f3f;
    font-weight: 700;
}

.section-label {
    font-size: 12px;
    font-weight: 700;
    color: #2ec4b6;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 12px;
    display: block;
}

/* ==================== DOCTORS SECTION ==================== */
.doctors {
    padding: 80px 40px;
    background-color: #f8f9fb;
}

.doctors-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.doctor-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 30px;
    padding: 30px;
    align-items: center;
}

.doctor-photo {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #d4e9f2 0%, #e8f2f7 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    overflow: hidden;
}

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

/* Hero Doctor Carousel */
.hero-doctor-carousel {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 600px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.hero-doctor-image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: fadeInOut 8s infinite both;
    background-color: #e8f2f7;
}

.hero-doctor-image:nth-child(2) {
    animation-delay: 4s;
}

@keyframes fadeInOut {
    0% { opacity: 0; }
    1% { opacity: 1; }
    49% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 0; }
}




.doctor-bio {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.doctor-specialty {
    color: #2ec4b6;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.doctor-name {
    font-size: 24px;
    font-weight: 800;
    color: #001f3f;
}

.doctor-education {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666;
}

.doctor-description {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}

.doctor-specialties {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.specialty-tag {
    background-color: #e8f2f7;
    color: #001f3f;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* ==================== TESTIMONIALS SECTION ==================== */
.testimonials {
    padding: 80px 40px;
    background-color: white;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background-color: #f8f9fb;
    padding: 30px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.testimonial-stars {
    color: #ffc107;
    font-size: 14px;
    letter-spacing: 2px;
}

.testimonial-source {
    font-size: 11px;
    color: #2ec4b6;
    font-weight: 600;
    text-transform: uppercase;
}

.testimonial-text {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2ec4b6, #001f3f);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 14px;
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.author-name {
    font-weight: 700;
    color: #001f3f;
    font-size: 13px;
}

.author-location {
    font-size: 11px;
    color: #999;
}

/* ==================== FAQ SECTION ==================== */
.faq {
    padding: 80px 40px;
    background-color: #f8f9fb;
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    width: 100%;
    border: none;
    text-align: left;
    font-weight: 600;
    font-size: 15px;
    color: #001f3f;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background-color: #f8f9fb;
}

.faq-question.active {
    background-color: #f8f9fb;
}

.faq-toggle {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.faq-question.active .faq-toggle {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer.open {
    max-height: 400px;
}

.faq-answer-content {
    padding: 20px;
    background-color: #f8f9fb;
    color: #555;
    line-height: 1.6;
    font-size: 14px;
}

/* ==================== APPOINTMENT FORM SECTION ==================== */
.appointment {
    padding: 80px 40px;
    background-color: white;
}

.appointment-container {
    max-width: 900px;
    margin: 0 auto;
    background-color: #f8f9fb;
    padding: 50px;
    border-radius: 16px;
}

.form-label {
    color: #2ec4b6;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 15px;
}

.appointment-title {
    font-size: 36px;
    font-weight: 800;
    color: #001f3f;
    margin-bottom: 15px;
}

.appointment-description {
    font-size: 15px;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.6;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

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

.form-group.full {
    grid-column: 1 / -1;
}

.form-label-small {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
}

.form-input, .form-select, .form-textarea {
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: #2ec4b6;
    box-shadow: 0 0 0 3px rgba(46, 196, 182, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-option {
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background-color: white;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    color: #333;
    transition: all 0.3s ease;
}

.form-option.selected {
    background-color: #001f3f;
    color: white;
    border-color: #001f3f;
}

.form-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background-color: rgba(46, 196, 182, 0.1);
    border-radius: 8px;
    font-size: 13px;
    color: #2ec4b6;
    margin-bottom: 20px;
}

.submit-button {
    width: 100%;
    background-color: #001f3f;
    color: white;
    padding: 16px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background-color: #003366;
}

/* ==================== FOOTER ==================== */
footer {
    background: linear-gradient(135deg, #001f3f 0%, #003366 100%);
    color: white;
    padding: 60px 40px 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 50px;
    margin-bottom: 50px;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 10px;
    width: 100%;
    max-width: 400px;
    overflow: hidden;
}

.footer-logo-text {
    font-size: 18px;
    font-weight: 700;
}

.footer-description {
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
}

.footer-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.footer-tag {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
}

.footer-title {
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #2ec4b6;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

/* ==================== CHAT BUTTON ==================== */
.chat-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 28px;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 100;
}

.chat-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.6);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ff4444;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    header, nav {
        padding: 15px 30px;
    }

    .hero, .about, .why-choose {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px 30px;
    }

    .procedures-grid, .doctors-grid {
        grid-template-columns: 1fr;
    }

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

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

    .side-cards {
        position: static;
        right: auto;
        top: auto;
        transform: none;
        width: 100%;
    }

    .contact-card {
        position: static;
        top: auto;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    header, nav, .cta-section {
        padding: 15px 20px;
    }

    .nav-menu {
        display: none;
    }

    .hero-title {
        font-size: 32px;
    }

    .section-title, .about-title, .why-choose-title {
        font-size: 28px;
    }

    .procedures-grid, .doctors-grid, .testimonials-grid, .facilities-grid {
        grid-template-columns: 1fr;
    }

    .doctor-card {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .doctor-photo {
        width: 100%;
        height: 250px;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
    }

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

/* ================================================================
   CAPA DE DISENO v5
   Se anade al final a proposito: no reescribe las reglas de arriba
   (que comparten las otras 4 paginas), solo las afina. Cuando
   unifiquemos todo en un styles.css compartido, esto se consolida.
   ================================================================ */

:root {
    --navy: #001f3f;
    --navy-soft: #0b3054;
    --teal: #2ec4b6;
    --teal-dark: #1b9c90;
    /* Teal legible: el #2ec4b6 sobre fondo claro da 2,1:1 y el minimo
       accesible es 4,5:1. Este da 5,5:1 sobre blanco. Se usa solo en
       texto pequeno; sobre azul marino se sigue usando el teal de marca,
       que ahi contrasta 7,6:1. */
    --teal-text: #12766d;
    --teal-large: #15857b;
    --ink: #1b2a3a;
    --muted: #5c6b7c;
    --line: #e2e9f0;
    --surface: #ffffff;
    --surface-soft: #f5f8fa;
    --shadow-sm: 0 1px 2px rgba(12, 30, 52, .05), 0 2px 8px rgba(12, 30, 52, .05);
    --shadow-md: 0 6px 18px rgba(12, 30, 52, .09);
    --shadow-lg: 0 18px 44px rgba(12, 30, 52, .16);
    --ease: cubic-bezier(.2, .7, .3, 1);
}

/* ---------- Tipografia ---------- */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3,
.hero-title, .section-title, .about-title, .why-choose-title,
.stats-title, .assessment-title, .appointment-title,
.doctor-name, .contact-title, .rating-summary-score {
    font-family: 'Source Serif 4', 'Iowan Old Style', Georgia, serif;
    font-weight: 600;
    letter-spacing: -.015em;
}

.hero-title {
    font-size: clamp(34px, 4.4vw, 54px);
    font-weight: 600;
    line-height: 1.08;
}

.section-title, .about-title, .why-choose-title, .stats-title, .assessment-title {
    font-size: clamp(28px, 3.2vw, 40px);
    font-weight: 600;
}

.section-label, .stats-label, .contact-badge, .form-label, .assessment-label {
    letter-spacing: .14em;
    font-size: 11.5px;
    font-weight: 600;
}

/* Rotulos y textos pequenos en teal, sobre fondo claro */
.section-label,
.doctor-specialty,
.form-label,
.procedure-link {
    color: var(--teal-text);
}

.hero-title .highlight { color: var(--teal-large); }

.author-location { color: #6b7785; }

/* El rotulo de los numeros es un <span>: sin display:block su margen
   inferior se ignoraba y quedaba pegado al titulo. */
.stats-label {
    display: block;
    margin-bottom: 14px;
}

.hero-description, .section-description, .about-description, .why-choose-description {
    color: var(--muted);
    max-width: 62ch;
}

/* ---------- Iconos ---------- */
.ico {
    width: 1.15em;
    height: 1.15em;
    flex-shrink: 0;
    vertical-align: -.18em;
}

.header-phone {
    color: inherit;
    text-decoration: none;
    gap: 8px;
    transition: color .25s var(--ease);
}

.header-phone:hover { color: var(--teal); }

/* ---------- Enfoque visible por teclado ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 3px;
    border-radius: 6px;
}

/* ---------- Navegacion ---------- */
nav {
    position: sticky;
    top: 0;
    z-index: 60;
    background-color: rgba(232, 242, 247, .94);
    backdrop-filter: saturate(150%) blur(10px);
    -webkit-backdrop-filter: saturate(150%) blur(10px);
    border-bottom: 1px solid rgba(0, 31, 63, .07);
}

@media (min-width: 1025px) {
    nav { padding: 10px 40px; }
}

.nav-menu a {
    font-size: 15px;
    padding: 8px 2px;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 100%;
    background-color: var(--teal);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s var(--ease);
}

.nav-menu a:hover::after { transform: scaleX(1); }

/* El teal de marca sobre el fondo claro de la barra daba 1,9:1.
   El subrayado se queda en teal de marca (es un elemento grafico). */
.nav-menu a:hover,
.nav-menu a.active { color: var(--teal-text); }

.nav-menu a.active::after {
    bottom: 0;
    height: 2px;
    transform: scaleX(1);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(0, 31, 63, .15);
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: background-color .25s var(--ease);
}

.nav-toggle:hover { background-color: rgba(0, 31, 63, .06); }

.nav-toggle-bar {
    width: 20px;
    height: 2px;
    background-color: var(--navy);
    border-radius: 2px;
    transition: transform .3s var(--ease), opacity .2s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Botones ---------- */
.cta-button, .cta-button-primary, .schedule-button, .submit-button {
    gap: 9px;
    letter-spacing: .01em;
    transition: background-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}

.cta-button:hover, .schedule-button:hover, .submit-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.cta-button-primary:hover { box-shadow: 0 10px 24px rgba(46, 196, 182, .32); }

a.schedule-button {
    text-decoration: none;
    display: flex;
}

/* ---------- Hero ---------- */
.hero {
    background: radial-gradient(120% 90% at 12% 0%, #f2f8fb 0%, #e3eff5 55%, #d8e9f1 100%);
}

@media (min-width: 1025px) {
    .hero { padding: 72px 40px 84px; }
}

.service-badge {
    border: 1px solid rgba(0, 31, 63, .08);
    box-shadow: none;
    letter-spacing: .02em;
}

.location-card {
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 31, 63, .06);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

.location-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.hero-doctor-carousel { box-shadow: var(--shadow-lg); }

.satisfaction-card, .faq-card {
    background: var(--navy);
    box-shadow: var(--shadow-lg);
}

/* ---------- Bloque de valoracion ---------- */
.cta-section {
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

/* ---------- Carrusel del consultorio ---------- */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, .9);
    color: var(--navy);
    cursor: pointer;
    z-index: 10;
    box-shadow: var(--shadow-sm);
    transition: background-color .25s var(--ease), transform .25s var(--ease);
}

.carousel-nav .ico { width: 20px; height: 20px; }
.carousel-prev { left: 14px; }
.carousel-next { right: 14px; }

.carousel-nav:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.08);
}

.carousel-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, .65);
    cursor: pointer;
    transition: background-color .25s var(--ease), width .25s var(--ease);
}

.carousel-dot.is-active {
    background: var(--teal);
    width: 22px;
    border-radius: 5px;
}

/* Los tres puntos del consultorio: linea vertical de marca en vez
   de un icono de chulo. Mas sobrio para una pagina corporativa. */
.feature-row {
    border-left: 2px solid var(--teal);
    padding-left: 18px;
}

/* ---------- Tarjetas: un solo lenguaje de elevacion ---------- */
.facility-card, .procedure-card, .testimonial-card, .doctor-card, .faq-item {
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}

.facility-card:hover, .procedure-card:hover, .doctor-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(46, 196, 182, .45);
}

.procedure-image img, .facility-image img, .doctor-photo img {
    transition: transform .6s var(--ease);
}

.procedure-card:hover .procedure-image img,
.facility-card:hover .facility-image img,
.doctor-card:hover .doctor-photo img {
    transform: scale(1.06);
}

.procedure-title { transition: color .25s var(--ease); }
.procedure-card:hover .procedure-title { color: var(--teal-dark); }

.why-item {
    border: 1px solid transparent;
    transition: background-color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}

.why-item:hover {
    background-color: #fff;
    border-color: var(--line);
    transform: translateX(4px);
}

/* Sin opacidad: al 60% el numero quedaba en 1,9:1 de contraste.
   En solido da 3,2:1, que es el minimo para texto grande, y al pasar
   el mouse se oscurece un paso mas. */
.why-number {
    color: var(--teal-dark);
    font-variant-numeric: tabular-nums;
    transition: color .3s var(--ease);
}

.why-item:hover .why-number { color: var(--teal-text); }

.specialty-tag { transition: background-color .25s var(--ease), color .25s var(--ease); }

.doctor-card:hover .specialty-tag {
    background-color: var(--navy);
    color: #fff;
}

/* ---------- Valoracion consolidada ---------- */
.rating-summary {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    margin-top: 26px;
    padding: 14px 26px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
}

.rating-summary-score {
    font-size: 34px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1;
}

.rating-summary-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    text-align: left;
}

.rating-summary-max {
    font-size: 17px;
    color: var(--muted);
    font-weight: 400;
}

.rating-summary-count {
    font-size: 12.5px;
    color: var(--muted);
}

/* ---------- Testimonios ---------- */
.testimonial-card {
    background-color: var(--surface);
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/* Sin comilla decorativa: la cita se distingue por una linea
   vertical, como en un periodico. */
.testimonial-text {
    border-left: 2px solid rgba(46, 196, 182, .45);
    padding-left: 16px;
}

.testimonial-text {
    font-style: normal;
    font-size: 15px;
    color: #3d4c5c;
}

.author-avatar {
    background: var(--navy);
    font-family: 'Inter', sans-serif;
}

/* ---------- Numeros ---------- */
.stats {
    background: var(--navy);
    background-image: radial-gradient(90% 120% at 85% 0%, rgba(46, 196, 182, .16) 0%, transparent 60%);
}

.stat-item {
    border-right: 1px solid rgba(255, 255, 255, .09);
    transition: transform .3s var(--ease);
}

.stat-item:hover { transform: translateY(-4px); }

.stat-value {
    font-variant-numeric: tabular-nums;
    letter-spacing: -.02em;
}

/* ---------- FAQ ---------- */
.faq-item { margin-bottom: 12px; }
.faq-item:hover { border-color: rgba(46, 196, 182, .45); }

.faq-question {
    font-size: 15.5px;
    gap: 20px;
}

.faq-toggle {
    display: inline-flex;
    color: var(--teal);
}

.faq-toggle .ico { width: 18px; height: 18px; }

.faq-answer.open { max-height: 500px; }

/* ---------- Formulario ---------- */
.form-label-small {
    letter-spacing: .06em;
    font-size: 11.5px;
    color: var(--muted);
}

.form-input, .form-select, .form-textarea {
    border-color: var(--line);
    background-color: #fff;
}

.form-option { transition: all .25s var(--ease); }
.form-option:hover { border-color: var(--teal); }

.form-info {
    text-transform: none;
    gap: 10px;
    color: #0d5f58;
    background-color: rgba(18, 118, 109, .06);
}

/* ---------- Contacto y pie ---------- */
.contact-card, footer {
    background: var(--navy);
    background-image: radial-gradient(80% 100% at 100% 0%, rgba(46, 196, 182, .14) 0%, transparent 55%);
}

.footer-link {
    width: fit-content;
    transition: color .25s var(--ease), transform .25s var(--ease);
}

.footer-link:hover { transform: translateX(3px); }

.footer-tag { transition: background-color .25s var(--ease); }
.footer-tag:hover { background-color: rgba(46, 196, 182, .25); }

a.chat-button { color: #fff; }

.chat-button:hover { transform: scale(1.06); }

/* ---------- Aparicion al hacer scroll ---------- */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .75s var(--ease), transform .75s var(--ease);
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    nav {
        flex-wrap: wrap;
        gap: 12px;
        padding: 10px 24px;
    }

    .logo { flex: 1 1 auto; }
    .logo img { height: 56px !important; }

    .nav-toggle { display: flex; order: 2; }

    /* El boton de agendar baja al menu desplegado en vez de
       apretujarse contra el logo */
    nav .cta-button { display: none; order: 4; }

    .nav-menu.is-open ~ .cta-button {
        display: flex;
        width: 100%;
        justify-content: center;
        padding: 15px 24px;
    }

    .nav-menu {
        display: none;
        order: 3;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 0 12px;
        border-top: 1px solid rgba(0, 31, 63, .1);
    }

    .nav-menu.is-open { display: flex; }

    .nav-menu li { width: 100%; }

    .nav-menu a {
        display: block;
        padding: 13px 4px;
        font-size: 16px;
    }

    .nav-menu a::after { display: none; }

    .nav-menu a.active { font-weight: 700; }
}

@media (max-width: 768px) {
    .hero { padding: 44px 22px 56px; }
    .rating-summary { padding: 12px 18px; gap: 14px; }
    .rating-summary-score { font-size: 28px; }

    .cta-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .stat-item { border-right: none; border-bottom: 1px solid rgba(255, 255, 255, .09); }
    .stats-grid > .stat-item:last-child { border-bottom: none; }
}

/* ---------- Seccion del consultorio ---------- */
.facilities-split {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.facilities-carousel {
    position: relative;
    background: var(--surface-soft);
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 1;
    box-shadow: var(--shadow-md);
}

.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
}

/* Las tarjetas flotantes del hero tapaban demasiado la foto.
   Va dentro de min-width para no anular al @media (max-width:1024px),
   que las pone en flujo normal. */
@media (min-width: 1025px) {
    .side-cards {
        width: 230px;
        right: -30px;
    }
}

/* ---------- Correcciones de desborde en pantallas pequenas ---------- */
@media (max-width: 860px) {
    .facilities-split {
        grid-template-columns: 1fr;
        gap: 36px;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .stat-item {
        border-right: none;
        border-bottom: none;
        padding: 22px 8px;
        min-width: 0;
    }

    .stat-value { font-size: 34px; }
    .stat-label { font-size: 11px; letter-spacing: .04em; }

    .form-grid,
    .form-options {
        grid-template-columns: 1fr;
    }

    .form-group { min-width: 0; }

    .form-input, .form-select, .form-textarea {
        width: 100%;
        max-width: 100%;
    }

    .appointment { padding: 56px 20px; }
    .appointment-container { padding: 28px 20px; }

    .facilities { padding: 56px 20px; }
    .procedures, .doctors, .testimonials, .faq { padding: 56px 20px; }
    .why-choose { padding: 56px 20px; }
    .contact-card { padding: 28px 22px; }

    .section-header { margin-bottom: 36px; }

    .footer-content { gap: 32px; }

    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        font-size: 12px;
    }
}

/* Pantallas muy angostas (320px): el footer a dos columnas desbordaba
   por palabras largas como "Andrología & Salud Sexual". */
@media (max-width: 520px) {
    .footer-content { grid-template-columns: 1fr; }
}

.footer-section, .footer-links, .footer-link {
    min-width: 0;
    overflow-wrap: break-word;
}

/* Respeta a quien pidio menos animacion en su sistema */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }

    .reveal { opacity: 1; transform: none; }

    /* Sin animacion, el carrusel del hero se queda en la primera foto
       en vez de dejar las dos invisibles. */
    .hero-doctor-image { animation: none; opacity: 0; }
    .hero-doctor-image:first-of-type { opacity: 1; }
}

/* ================================================================
   PAGINAS INTERIORES
   Patrones que las 4 paginas interiores repetian con estilos en
   linea, ahora unificados para que se vean iguales entre si y
   coherentes con la portada.
   ================================================================ */

/* ---------- Miga de pan ----------
   Es un <nav> por semantica, asi que hay que anular las reglas de la barra
   de navegacion principal (flex con space-between, sticky, desenfoque):
   sin esto el separador queda flotando en el centro de la fila. */
nav.breadcrumb {
    display: block;
    position: static;
    z-index: auto;
    background-color: var(--surface-soft);
    background-image: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    border-bottom: 1px solid var(--line);
    padding: 13px 40px;
    font-size: 13px;
    color: var(--muted);
    flex-wrap: nowrap;
    gap: 0;
}

nav.breadcrumb a {
    color: var(--teal-text);
    text-decoration: none;
    font-weight: 500;
    transition: color .25s var(--ease);
}

nav.breadcrumb a:hover {
    color: var(--navy);
    text-decoration: underline;
}

.breadcrumb-sep {
    margin: 0 9px;
    color: var(--muted);
}

.breadcrumb strong {
    color: var(--navy);
    font-weight: 600;
}

/* ---------- Cabecera de pagina interior ---------- */
.page-hero {
    background: radial-gradient(120% 90% at 12% 0%, #f2f8fb 0%, #e3eff5 55%, #d8e9f1 100%);
    padding: 72px 40px 76px;
    text-align: center;
}

.page-hero-inner {
    max-width: 900px;
    margin: 0 auto;
}

.page-hero h1 {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 600;
    color: var(--navy);
    line-height: 1.1;
    margin-bottom: 22px;
    letter-spacing: -.015em;
}

.page-hero p {
    font-size: 16.5px;
    color: var(--muted);
    line-height: 1.75;
    max-width: 66ch;
    margin: 0 auto;
}

/* Variante a dos columnas (Quiénes Somos) */
.page-hero--split {
    text-align: left;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 56px;
    align-items: center;
}

.page-hero--split p {
    margin: 0;
}

@media (max-width: 900px) {
    .page-hero--split {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding: 44px 22px 52px;
    }

    nav.breadcrumb {
        padding: 12px 22px;
    }
}

/* ---------- Bloque de dos columnas con foto ---------- */
.split {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.split-media {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    aspect-ratio: 4 / 3;
    background: var(--surface-soft);
}

.split-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .7s var(--ease);
}

.split-media:hover img {
    transform: scale(1.04);
}

@media (max-width: 900px) {
    .split {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    /* En movil la foto siempre va despues del texto, sin importar
       el orden que tenga en escritorio. */
    .split > .split-media {
        order: 2;
    }

    .split > .split-text {
        order: 1;
    }
}

/* ---------- Lista de sintomas ---------- */
.sym-block {
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-left: 3px solid var(--teal);
    border-radius: 12px;
    padding: 22px 26px;
    margin-bottom: 20px;
}

.sym-block:last-child { margin-bottom: 0; }

.sym-block > p {
    font-size: 14.5px;
    color: var(--muted);
    line-height: 1.75;
    margin: 0;
}

.sym-title {
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--teal-text);
    margin-bottom: 14px;
}

.sym-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sym-list li {
    font-size: 14.5px;
    line-height: 1.6;
    color: #3d4c5c;
    padding: 9px 10px 9px 26px;
    border-radius: 8px;
    position: relative;
    transition: background-color .25s var(--ease), padding-left .25s var(--ease);
}

.sym-list li::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 17px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--teal);
}

.sym-list li:hover {
    background-color: rgba(46, 196, 182, .09);
    padding-left: 32px;
}

/* ---------- Nota "En la consulta" ---------- */
.note-block {
    border-left: 3px solid var(--teal);
    padding: 4px 0 4px 20px;
}

.note-block p {
    font-size: 14.5px;
    color: var(--muted);
    line-height: 1.75;
    margin: 0;
}

/* ---------- Rejilla de tarjetas de valor / condiciones ---------- */
.value-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

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

.value-card {
    padding: 32px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-top: 3px solid var(--teal);
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}

.value-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.value-card h4 {
    font-size: 16.5px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 11px;
}

.value-card p {
    font-size: 14.5px;
    color: var(--muted);
    line-height: 1.7;
    margin: 0;
}

@media (max-width: 980px) {
    .value-grid,
    .value-grid--2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .value-grid,
    .value-grid--2 {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .value-card {
        padding: 24px;
    }
}

/* ---------- Banda final de llamado a la accion ---------- */
.cta-band {
    background: var(--navy);
    background-image: radial-gradient(80% 130% at 85% 0%, rgba(46, 196, 182, .16) 0%, transparent 60%);
    padding: 76px 40px;
    text-align: center;
    color: #fff;
}

.cta-band-inner {
    max-width: 760px;
    margin: 0 auto;
}

.cta-band-label {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 16px;
}

.cta-band h2 {
    font-size: clamp(27px, 3.2vw, 38px);
    font-weight: 600;
    color: #fff;
    margin-bottom: 16px;
}

.cta-band p {
    font-size: 16px;
    color: rgba(255, 255, 255, .78);
    line-height: 1.75;
    margin-bottom: 32px;
}

.cta-band .cta-button {
    background-color: var(--teal);
    color: var(--navy);
    margin: 0 auto;
    padding: 16px 30px;
    font-size: 14.5px;
}

.cta-band .cta-button:hover {
    background-color: #27b5a6;
}

@media (max-width: 768px) {
    .cta-band {
        padding: 56px 22px;
    }
}

/* ---------- Galeria del consultorio ---------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.gallery-item {
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 1;
    background: var(--surface-soft);
    box-shadow: var(--shadow-sm);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s var(--ease);
}

.gallery-item:hover img {
    transform: scale(1.06);
}

@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ---------- Ficha extendida de medico ---------- */
.doctor-sheet {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 56px;
    align-items: start;
}

.doctor-sheet-photo {
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: var(--surface-soft);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 110px;
}

.doctor-sheet-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 980px) {
    .doctor-sheet {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .doctor-sheet-photo {
        position: static;
        max-width: 320px;
    }
}

/* ---------- Utilidades compartidas ---------- */
.section-pad {
    padding: 84px 40px;
}

.section-pad--soft {
    background-color: var(--surface-soft);
}

@media (max-width: 768px) {
    .section-pad {
        padding: 56px 22px;
    }
}

.lead {
    font-size: 16.5px;
    line-height: 1.8;
    color: var(--muted);
}

.wrap-narrow {
    max-width: 950px;
    margin: 0 auto;
}

.wrap-med {
    max-width: 1100px;
    margin: 0 auto;
}

/* ---------- Listas cortas dentro de tarjetas ---------- */
.mini-list {
    list-style: none;
    margin: 12px 0 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.mini-list li {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
    padding-left: 16px;
    position: relative;
}

.mini-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--teal);
}

/* ---------- Rejillas: antes iban en el atributo style y por eso no
     tenian version movil. Ahora son clases y se adaptan solas. ---------- */
.g2, .g3, .g4, .g211 { display: grid; }

.g2   { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3   { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4   { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g211 { grid-template-columns: 2fr 1fr 1fr; }

@media (max-width: 980px) {
    .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .g211    { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    .g2, .g3, .g4, .g211 { grid-template-columns: 1fr; }
}

/* ---------- Teal segun el fondo ----------
   El teal de marca (#2ec4b6) contrasta 7,6:1 sobre azul marino pero solo
   2,1:1 sobre fondo claro. Por eso hay dos: --teal para fondos oscuros y
   --teal-text para claros. Como las variables CSS se heredan, basta
   redefinirla dentro de los bloques oscuros y cualquier texto que use
   var(--teal-text) ahi adentro se aclara solo. */
.cta-band,
.contact-card,
.faq-card,
.satisfaction-card,
.stats,
footer,
[style*="var(--navy)"] {
    --teal-text: var(--teal);
}

/* Circulos numerados del proceso de consulta: texto blanco sobre teal daba
   2,2:1. En azul marino sobre teal da 7,4:1. */
[style*="background:#2ec4b6"][style*="border-radius:50%"] {
    color: var(--navy) !important;
}

/* ---------- Rejilla de especialidades de la portada ----------
   Son cuatro areas (las mismas que especialidades.html), no tres. */
.procedures-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 1180px) {
    .procedures-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
    .procedures-grid { grid-template-columns: 1fr; }
}

/* La foto y el titulo de cada tarjeta llevan a su seccion en Especialidades */
.procedure-media { display: block; }

.procedure-title a {
    color: inherit;
    text-decoration: none;
}

.procedure-card:hover .procedure-title a { color: var(--teal-text); }

/* Los botones de las tarjetas quedaban a distinta altura porque las
   descripciones tienen largos distintos. Con esto se alinean abajo. */
.procedure-card,
.facility-card {
    display: flex;
    flex-direction: column;
}

.procedure-content,
.facility-content {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.procedure-footer {
    margin-top: auto;
}
