/* ============================================
   HOME PAGE STYLES
   ============================================ */

/* === HERO === */
.home-hero {
    position: relative; min-height: 100vh; display: flex; align-items: center;
    background: #0B1A28; overflow: hidden; padding: 140px 0 80px;
}
.home-hero-photo { position: absolute; top: 0; right: 0; bottom: 0; width: 46%; z-index: 1; }
.home-hero-photo img {
    width: 100%; height: 100%; object-fit: cover; object-position: center center;
}
.home-hero-photo::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg, #0B1A28 0%, rgba(11,26,40,0.45) 26%, rgba(11,26,40,0) 58%);
}
.home-hero .container { position: relative; z-index: 2; }
.home-hero-content { max-width: 560px; text-align: left; }
.home-hero-eyebrow {
    font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.85);
    letter-spacing: 2px; text-transform: uppercase; margin-bottom: 20px;
}
.home-hero h1 {
    font-family: var(--font-heading); font-size: clamp(38px, 5vw, 60px);
    color: var(--color-white); line-height: 1.08; margin-bottom: 18px; font-weight: 700;
    letter-spacing: 0.5px;
}
.home-hero-sub {
    font-size: 19px; color: rgba(255,255,255,0.82); line-height: 1.6;
    max-width: 470px; margin: 0 0 36px;
}
.home-hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; justify-content: flex-start; margin-bottom: 36px; }
.home-hero-stats {
    display: flex; flex-wrap: wrap; gap: 48px; list-style: none; justify-content: flex-start;
}
.home-hero-stats li { text-align: center; }
.home-hero-stats strong {
    display: block; font-family: var(--font-heading); font-size: 32px;
    color: #FFFFFF; font-weight: 700; line-height: 1;
}
.home-hero-stats span {
    display: block; font-size: 12px; color: rgba(255,255,255,0.65);
    text-transform: uppercase; letter-spacing: 1.5px; margin-top: 8px;
}
.home-hero-cert {
    margin-top: 22px; font-size: 12px; color: rgba(255,255,255,0.55);
    letter-spacing: 1.2px; text-transform: uppercase; font-weight: 500;
}

/* === CREDENCIALES === */
.credentials { background: var(--color-white); }
.credentials-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
    max-width: 1180px; margin: 0 auto;
}
.credentials-col h4 {
    font-family: var(--font-heading); font-size: 18px; color: var(--color-blue-dark);
    margin-bottom: 16px; font-weight: 700;
}
.credentials-col ul { list-style: none; padding: 0; }
.credentials-col li {
    font-size: 15px; color: var(--color-text-light); line-height: 1.7;
    padding: 10px 0; border-bottom: 1px solid var(--color-border);
}
.credentials-col li:last-child { border-bottom: 0; }

/* === CIRUGÍAS (sin emojis, cards consistentes) === */
.surgeries-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.surgery-card {
    display: flex; flex-direction: column; padding: 32px 28px;
    background: var(--color-white); border: 1px solid var(--color-border);
    border-radius: 8px; text-decoration: none; color: inherit;
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.surgery-card:hover {
    border-color: var(--color-teal); transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.06);
}
.surgery-card h3 {
    font-family: var(--font-heading); font-size: 22px; font-weight: 700;
    color: var(--color-blue-dark); margin-bottom: 10px; line-height: 1.25;
}
.surgery-card p {
    font-size: 14px; color: var(--color-text-light); line-height: 1.65;
    margin-bottom: 24px; min-height: 70px; flex: 1;
}
.surgery-meta {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 16px; border-top: 1px solid var(--color-border);
}
.surgery-price {
    font-size: 15px; font-weight: 700; color: var(--color-teal);
}
.surgery-link {
    font-size: 13px; color: var(--color-text-light); font-weight: 500;
    transition: color 0.3s;
}
.surgery-card:hover .surgery-link { color: var(--color-teal); }
.surgeries-note {
    text-align: center; font-size: 13px; color: var(--color-text-muted);
    margin: 32px auto 0; max-width: 720px; line-height: 1.6;
}

/* === PROBLEM / MIEDOS === */
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.problem-card { text-align: center; }
.problem-icon {
    width: 52px; height: 52px; margin: 0 auto 20px;
    color: var(--color-teal);
}
.problem-icon svg { width: 100%; height: 100%; display: block; }
.problem-card h3 {
    font-family: var(--font-heading); font-size: 21px; color: var(--color-blue-dark);
    margin-bottom: 12px; line-height: 1.3;
}
.problem-card p { font-size: 15px; color: var(--color-text-light); line-height: 1.7; }

/* === SERVICES GRID === */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.service-card {
    background: var(--color-white); border-radius: 16px; overflow: hidden;
    border: 1px solid var(--color-border); transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none; color: inherit;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(0,0,0,0.1); }
.service-card-icon {
    height: 180px; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--color-teal-light), #EEF6FB);
    font-size: 56px;
}
.service-card-body { padding: 24px; }
.service-card-body h3 {
    font-family: var(--font-heading); font-size: 20px; color: var(--color-blue-dark);
    margin-bottom: 10px; line-height: 1.3;
}
.service-card-body p { font-size: 14px; color: var(--color-text-light); line-height: 1.6; margin-bottom: 16px; }
.service-card-link {
    font-size: 14px; font-weight: 600; color: var(--color-teal);
    display: inline-flex; align-items: center; gap: 6px;
}
.service-card-link::after { content: '→'; transition: transform 0.3s; }
.service-card:hover .service-card-link::after { transform: translateX(4px); }

/* === WHY CHOOSE === */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.why-card { text-align: center; padding: 40px 28px; }
.why-icon {
    width: 72px; height: 72px; border-radius: 16px;
    background: var(--color-teal-light); display: flex; align-items: center;
    justify-content: center; margin: 0 auto 20px; font-size: 32px;
}
.why-card h4 {
    font-size: 18px; font-weight: 700; color: var(--color-blue-dark);
    margin-bottom: 10px;
}
.why-card p { font-size: 15px; color: var(--color-text-light); line-height: 1.7; }

/* === DOCTOR PREVIEW === */
.doctor-preview-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.doctor-preview-image { border-radius: 20px; overflow: hidden; }
.doctor-preview-image img {
    width: 100%; height: 500px; object-fit: cover; object-position: center 20%;
    border-radius: 20px;
}
.doctor-preview-content .section-label { text-align: left; }
.doctor-preview-content .section-title { text-align: left; }
.doctor-preview-content p {
    color: var(--color-text-light); margin-bottom: 16px; line-height: 1.8;
}
.doctor-credentials-mini {
    display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0;
}
.doctor-credentials-mini span {
    background: rgba(46,107,156,0.08); color: var(--color-blue);
    padding: 8px 16px; border-radius: 100px; font-size: 13px; font-weight: 600;
}

/* === STATS BAR === */
.stats-bar {
    background: linear-gradient(135deg, var(--color-blue-deep), var(--color-blue-dark));
    padding: 60px 0;
}
.stats-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
    text-align: center;
}
.stat-item {}
.stat-number {
    font-family: var(--font-heading); font-size: 48px; font-weight: 700;
    color: #5EC4B6; display: block;
}
.stat-label {
    font-size: 14px; color: rgba(255,255,255,0.6); margin-top: 8px;
    text-transform: uppercase; letter-spacing: 1px;
}

/* === ACERCA DE MÍ (estilo Baley: navy + foto + bio) === */
.about-section {
    position: relative; min-height: 80vh; display: flex; align-items: center;
    background: #0B1A28; overflow: hidden; padding: 90px 0;
}
.about-photo { position: absolute; top: 0; right: 0; bottom: 0; width: 46%; z-index: 1; }
.about-photo img {
    width: 100%; height: 100%; object-fit: cover; object-position: center 22%;
}
.about-photo::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg, #0B1A28 0%, rgba(11,26,40,0.42) 26%, rgba(11,26,40,0) 58%);
}
.about-section .container { position: relative; z-index: 2; }
.about-content { max-width: 560px; color: #FFFFFF; }
.about-label {
    font-size: 13px; color: #5EC4B6; letter-spacing: 2px;
    text-transform: uppercase; font-weight: 600; margin-bottom: 18px;
}
.about-name {
    font-family: var(--font-heading); font-size: clamp(34px, 4.5vw, 52px);
    color: #FFFFFF; line-height: 1.1; margin-bottom: 24px; font-weight: 700;
    letter-spacing: 0.5px;
}
.about-bio {
    font-size: 17px; color: rgba(255,255,255,0.82); line-height: 1.75;
    margin-bottom: 16px;
}
.about-stats {
    display: flex; flex-wrap: wrap; gap: 40px; list-style: none;
    margin: 32px 0; padding: 0;
}
.about-stats strong {
    display: block; font-family: var(--font-heading); font-size: 28px;
    color: #FFFFFF; font-weight: 700; line-height: 1;
}
.about-stats span {
    display: block; font-size: 12px; color: rgba(255,255,255,0.65);
    text-transform: uppercase; letter-spacing: 1.5px; margin-top: 6px;
}
.btn-outline-light {
    display: inline-flex; align-items: center; gap: 8px;
    background: transparent; color: #FFFFFF;
    padding: 13px 26px; text-decoration: none; font-weight: 600; font-size: 14px;
    border: 2px solid rgba(255,255,255,0.45); border-radius: 6px;
    transition: border-color 0.3s, color 0.3s;
}
.btn-outline-light:hover { border-color: #5EC4B6; color: #5EC4B6; }
.about-credentials {
    list-style: none; padding: 0; margin: 28px 0 16px;
}
.about-credentials li {
    padding: 10px 0; font-size: 14px; color: rgba(255,255,255,0.78);
    border-bottom: 1px solid rgba(255,255,255,0.08); line-height: 1.55;
}
.about-credentials li:last-child { border-bottom: none; }
.about-hospitals {
    font-size: 13px; color: rgba(255,255,255,0.6); margin-top: 8px;
    font-style: italic; line-height: 1.6;
}

/* === MI FORMA DE ATENDERTE (approach) === */
.approach-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px 56px;
    max-width: 1000px; margin: 0 auto;
}
.approach-card { display: flex; gap: 20px; align-items: flex-start; }
.approach-icon {
    width: 40px; height: 40px; flex-shrink: 0;
    color: var(--color-teal);
}
.approach-icon svg { width: 100%; height: 100%; display: block; }
.approach-text h3 {
    font-family: var(--font-heading); font-size: 20px; font-weight: 700;
    color: var(--color-blue-dark); margin-bottom: 8px; line-height: 1.3;
}
.approach-text p {
    font-size: 15px; color: var(--color-text-light); line-height: 1.7;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .home-hero { min-height: 0; padding: 0 0 52px; flex-direction: column; }
    .home-hero-photo { position: relative; width: 100%; height: 440px; order: -1; }
    .home-hero-photo img { object-position: center 22%; }
    .home-hero-photo::after { background: linear-gradient(0deg, #0B1A28 0%, rgba(11,26,40,0) 62%); }
    .home-hero .container { width: 100%; }
    .home-hero-content { text-align: center; max-width: 100%; margin-top: 28px; }
    .home-hero-ctas { justify-content: center; }
    .home-hero-stats { gap: 28px; justify-content: center; }
    .credentials-grid { grid-template-columns: 1fr 1fr; gap: 28px; max-width: 100%; }
    .surgeries-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
    .surgery-card p { min-height: auto; }
    .problem-grid { grid-template-columns: 1fr; gap: 28px; }
    .approach-grid { grid-template-columns: 1fr; gap: 28px; }
    .about-section { min-height: 0; flex-direction: column; padding: 60px 0; }
    .about-photo { position: relative; width: 100%; height: 380px; }
    .about-photo::after { background: linear-gradient(0deg, #0B1A28 0%, rgba(11,26,40,0) 60%); }
    .about-content { max-width: 100%; margin-top: 32px; }
    .about-stats { gap: 28px; }
    .services-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
    .why-grid { grid-template-columns: 1fr; }
    .doctor-preview-grid { grid-template-columns: 1fr; gap: 32px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .stat-number { font-size: 36px; }
}

@media (max-width: 600px) {
    .services-grid { grid-template-columns: 1fr; }
    .surgeries-grid { grid-template-columns: 1fr; }
    .credentials-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* === HERO: línea de rol (v3) === */
.home-hero-role {
    font-size: 17px; font-weight: 600; color: var(--color-gold);
    line-height: 1.4; margin: 0 0 14px; letter-spacing: 0.2px;
}

/* === CIERRE DE SECCIÓN DE CIRUGÍAS (v3) === */
.surgeries-closing {
    text-align: center; max-width: 720px; margin: 28px auto 0;
    font-size: 18px; line-height: 1.7; color: var(--color-text-light);
    font-family: var(--font-heading); font-style: italic;
}

/* === QUÉ INCLUYE TU CIRUGÍA (v3) === */
.includes-list {
    list-style: none; display: grid; grid-template-columns: 1fr;
    gap: 14px; max-width: 620px; margin: 0 auto;
}
.includes-list li {
    position: relative; padding-left: 30px; font-size: 16px;
    color: var(--color-text); line-height: 1.6;
}
.includes-list li::before {
    content: ""; position: absolute; left: 0; top: 9px;
    width: 16px; height: 9px; border-left: 2px solid var(--color-gold);
    border-bottom: 2px solid var(--color-gold); transform: rotate(-45deg);
}

/* === MI OBJETIVO ES QUE TE OPERES SOLO SI LO NECESITAS (v3) === */
.no-operar { background: var(--color-bg-section); }
.no-operar-inner { max-width: 780px; margin: 0 auto; text-align: left; }
.no-operar-inner .section-title { text-align: center; margin-bottom: 36px; }
.no-operar-inner p {
    font-size: 17px; line-height: 1.8; color: var(--color-text-light);
    margin-bottom: 20px;
}
.no-operar-quote {
    margin-top: 40px; padding: 28px 32px; background: var(--color-white);
    border-left: 4px solid var(--color-teal); border-radius: 4px;
}
.no-operar-quote p {
    font-family: 'Varela Round', var(--font-body), sans-serif;
    font-size: clamp(22px, 2.2vw, 26px); line-height: 1.45;
    color: var(--color-teal); margin-bottom: 12px; font-style: normal; font-weight: 700;
}
.no-operar-quote cite {
    font-size: 14px; color: var(--color-text-muted); font-style: normal;
}

/* La tira y el carrusel de hospitales viven en global.css
   porque tambien se usan en la pagina Sobre Mi. */

/* === CIERRE DE MI FORMA DE ATENDERTE (v3) === */
.approach-closing {
    text-align: center; max-width: 700px; margin: 48px auto 0;
    font-family: var(--font-heading); font-size: 22px; line-height: 1.55;
    color: var(--color-text);
}

@media (max-width: 860px) {
    .includes-list { grid-template-columns: 1fr; gap: 12px; }
    .hospitals-logos { gap: 16px 28px; }
    .hospitals-logos li { font-size: 16px; }
    .approach-closing { font-size: 19px; }
    .no-operar-quote { padding: 22px 24px; }
    .no-operar-quote p { font-size: 21px; }
}

/* === BADGES DE CONFIANZA tipo medalla en "Tu cirujano" (v14) === */
.about-badges {
    list-style: none; margin: 36px 0; padding: 0;
    display: flex; flex-wrap: wrap; gap: 28px;
}
.about-badge {
    flex: 1 1 0; min-width: 120px; max-width: 160px;
    display: flex; flex-direction: column; align-items: center; text-align: center;
}
.medal {
    width: 62px; height: 84px; display: block;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.35));
}
.medal svg { width: 100%; height: 100%; display: block; }
.about-badge-text {
    margin-top: 12px;
    font-size: 14px; font-weight: 600; line-height: 1.35;
    color: #FFFFFF; letter-spacing: 0.2px;
}

@media (max-width: 640px) {
    .about-badges { gap: 16px; justify-content: center; }
    .about-badge { min-width: 100px; }
    .medal { width: 54px; height: 74px; }
    .about-badge-text { font-size: 13px; }
}
