/* MIGS Landings — Shared styles (histerectomía y miomectomía laparoscópica) */

/* ==========================================================================
   HERO
   ========================================================================== */
.hero-migs {
    background: linear-gradient(315deg, rgba(30, 58, 95, 0.92) 0%, rgba(44, 82, 130, 0.85) 50%, rgba(74, 144, 164, 0.75) 100%);
    color: var(--pearl-white);
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 8rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.hero-migs .eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
    padding: 0.4rem 1rem;
    border: 1px solid rgba(232, 185, 70, 0.5);
    border-radius: 30px;
    background: rgba(232, 185, 70, 0.08);
}

.hero-migs h1 {
    color: var(--pearl-white) !important;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    text-shadow: 1px 2px 6px rgba(0, 0, 0, 0.35);
}

.hero-migs .lead {
    color: rgba(255, 255, 255, 0.92) !important;
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 36rem;
}

.hero-migs .trust-row {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
}

.hero-migs .trust-row li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.98rem;
    line-height: 1.5;
}

.hero-migs .trust-row li i {
    color: var(--primary-color);
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.hero-migs .hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-migs .hero-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
    border: 4px solid rgba(255, 255, 255, 0.15);
}

.hero-migs .hero-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* ==========================================================================
   CREDENTIALS STRIP
   ========================================================================== */
.credentials-strip {
    background: var(--medical-blue);
    color: var(--pearl-white);
    padding: 1.25rem 0;
    border-top: 3px solid var(--primary-color);
}

.credentials-strip .credentials-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.25rem 1.75rem;
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: center;
}

.credentials-strip .credentials-list li {
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    position: relative;
    color: rgba(255, 255, 255, 0.92);
}

.credentials-strip .credentials-list li:not(:last-child)::after {
    content: '·';
    position: absolute;
    right: -1rem;
    color: var(--primary-color);
    font-weight: 700;
}

/* ==========================================================================
   PROSE SECTION (¿Qué es...?)
   ========================================================================== */
.prose-section p {
    color: var(--warm-gray);
    line-height: 1.75;
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
}

/* ==========================================================================
   COMPARISON TABLE
   ========================================================================== */
.comparison-wrapper {
    background: var(--pearl-white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(44, 82, 130, 0.08);
    border: 1px solid var(--light-gray);
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 560px;
}

.comparison-table thead th {
    background: linear-gradient(135deg, var(--medical-blue), var(--medical-teal));
    color: var(--pearl-white);
    padding: 1rem 1.25rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.98rem;
    border: none;
}

.comparison-table thead th:first-child {
    border-top-left-radius: 12px;
}

.comparison-table thead th:last-child {
    border-top-right-radius: 12px;
}

.comparison-table thead th.col-laparoscopia {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--charcoal);
}

.comparison-table tbody td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--light-gray);
    color: var(--charcoal);
    font-size: 0.98rem;
    vertical-align: top;
    line-height: 1.5;
}

.comparison-table tbody tr:nth-child(even) td {
    background: var(--sand-whisper);
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.comparison-table tbody td:first-child {
    font-weight: 600;
    color: var(--medical-blue);
    width: 30%;
}

.comparison-table tbody td.cell-lap {
    color: var(--charcoal);
    font-weight: 500;
}

.aside-note {
    background: linear-gradient(135deg, rgba(232, 185, 70, 0.08), rgba(74, 144, 164, 0.05));
    border-left: 4px solid var(--primary-color);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-top: 1.5rem;
    color: var(--warm-gray);
    line-height: 1.7;
    font-size: 0.98rem;
}

.aside-note strong {
    color: var(--medical-blue);
}

/* ==========================================================================
   PROCESS (3 columns)
   ========================================================================== */
.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.process-card {
    background: var(--pearl-white);
    padding: 2rem 1.75rem;
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(44, 82, 130, 0.08);
    border: 1px solid var(--light-gray);
    transition: all 0.3s ease;
    position: relative;
}

.process-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--medical-teal));
    border-radius: 18px 18px 0 0;
}

.process-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(44, 82, 130, 0.13);
}

.process-card .step-tag {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-dark);
    background: rgba(232, 185, 70, 0.15);
    padding: 0.3rem 0.85rem;
    border-radius: 30px;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.process-card h4 {
    color: var(--medical-blue);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.process-card p {
    color: var(--warm-gray);
    line-height: 1.65;
    margin: 0;
    font-size: 0.98rem;
}

/* ==========================================================================
   CTA BANNER (intermediate)
   ========================================================================== */
.cta-banner {
    background: linear-gradient(135deg, var(--medical-blue) 0%, var(--medical-teal) 100%);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    text-align: center;
    color: var(--pearl-white);
    box-shadow: 0 20px 50px rgba(44, 82, 130, 0.18);
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(232, 185, 70, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.cta-banner h2 {
    color: var(--pearl-white);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
}

.cta-banner p {
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 38rem;
    margin: 0 auto 1.75rem;
    position: relative;
}

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

/* ==========================================================================
   ABOUT DOCTOR
   ========================================================================== */
.about-doctor {
    background: var(--cream-base);
}

.about-doctor .portrait-wrap {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(44, 82, 130, 0.18);
    border: 4px solid var(--pearl-white);
}

.about-doctor .portrait-wrap img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.about-doctor h2 {
    color: var(--medical-blue);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.about-doctor p {
    color: var(--warm-gray);
    line-height: 1.75;
    font-size: 1.02rem;
    margin-bottom: 1.1rem;
}

.about-doctor .credentials-block {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--light-gray);
    font-size: 0.9rem;
    color: var(--warm-gray);
    line-height: 1.7;
}

.about-doctor .credentials-block strong {
    color: var(--medical-blue);
}

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */
.faq-list {
    max-width: 820px;
    margin: 0 auto;
}

.faq-item {
    background: var(--pearl-white);
    border: 1px solid var(--light-gray);
    border-radius: 14px;
    margin-bottom: 0.85rem;
    overflow: hidden;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(44, 82, 130, 0.04);
}

.faq-item.is-open {
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(44, 82, 130, 0.1);
}

.faq-question {
    width: 100%;
    background: transparent;
    border: none;
    padding: 1.25rem 1.5rem;
    text-align: left;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--medical-blue);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.faq-question:hover {
    background: var(--sand-whisper);
}

.faq-question .faq-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    background: rgba(232, 185, 70, 0.15);
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background 0.3s ease;
    font-size: 0.85rem;
}

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

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

.faq-answer-inner {
    padding: 0 1.5rem 1.5rem;
    color: var(--warm-gray);
    line-height: 1.7;
    font-size: 0.98rem;
}

.faq-item.is-open .faq-answer {
    max-height: 600px;
}

/* ==========================================================================
   LOCATION (text + map)
   ========================================================================== */
.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: stretch;
}

.location-info {
    background: var(--pearl-white);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--light-gray);
    box-shadow: 0 10px 30px rgba(44, 82, 130, 0.06);
}

.location-info h3 {
    color: var(--medical-blue);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.location-info .address-block {
    color: var(--charcoal);
    line-height: 1.8;
    font-size: 1rem;
    margin-bottom: 1.25rem;
}

.location-info .address-block strong {
    color: var(--medical-blue);
}

.location-info .surgery-note {
    color: var(--warm-gray);
    font-size: 0.95rem;
    line-height: 1.6;
    padding-top: 1rem;
    border-top: 1px solid var(--light-gray);
}

.map-frame {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(44, 82, 130, 0.1);
    min-height: 320px;
}

.map-frame iframe {
    width: 100%;
    height: 100%;
    min-height: 320px;
    border: 0;
    display: block;
}

/* ==========================================================================
   CTA FINAL
   ========================================================================== */
.cta-final {
    background: var(--cream-base);
    text-align: center;
}

.cta-final h2 {
    color: var(--medical-blue);
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-final p {
    color: var(--warm-gray);
    font-size: 1.1rem;
    line-height: 1.65;
    max-width: 38rem;
    margin: 0 auto 1.75rem;
}

.cta-final .cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.fees-note {
    font-size: 0.9rem;
    color: var(--warm-gray);
    letter-spacing: 0.3px;
}

.fees-note strong {
    color: var(--medical-blue);
}

/* ==========================================================================
   BUTTONS (variants used across landings)
   ========================================================================== */
.btn-coral {
    background: linear-gradient(135deg, var(--warm-coral), #C95A3F);
    color: var(--pearl-white);
    border: none;
    font-weight: 600;
    padding: 0.85rem 1.75rem;
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 18px rgba(224, 122, 95, 0.3);
}

.btn-coral:hover {
    background: linear-gradient(135deg, #C95A3F, var(--warm-coral));
    color: var(--pearl-white);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(224, 122, 95, 0.4);
}

.btn-outline-on-dark {
    background: transparent;
    color: var(--pearl-white);
    border: 2px solid rgba(255, 255, 255, 0.6);
    font-weight: 600;
    padding: 0.75rem 1.65rem;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.btn-outline-on-dark:hover {
    background: rgba(255, 255, 255, 0.95);
    color: var(--medical-blue);
    border-color: transparent;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 991px) {
    .hero-migs {
        min-height: auto;
        padding: 7rem 0 3.5rem;
    }

    .hero-migs h1 {
        font-size: 2.4rem;
    }

    .hero-migs .hero-image {
        margin-top: 2.5rem;
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
    }

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

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

@media (max-width: 768px) {
    .hero-migs {
        text-align: center;
        padding: 6.5rem 0 3rem;
    }

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

    .hero-migs .lead {
        font-size: 1.05rem;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-migs .trust-row li {
        justify-content: flex-start;
        text-align: left;
    }

    .hero-migs .hero-ctas {
        justify-content: center;
    }

    .credentials-strip .credentials-list {
        gap: 0.75rem 1.25rem;
    }

    .credentials-strip .credentials-list li {
        font-size: 0.88rem;
    }

    .credentials-strip .credentials-list li:not(:last-child)::after {
        right: -0.85rem;
    }

    .comparison-wrapper {
        padding: 1.25rem;
    }

    .cta-banner {
        padding: 2.25rem 1.5rem;
    }

    .cta-banner h2 {
        font-size: 1.6rem;
    }

    .about-doctor h2 {
        font-size: 1.75rem;
        text-align: center;
    }

    .about-doctor .portrait-wrap {
        margin-bottom: 1.75rem;
        max-width: 360px;
        margin-left: auto;
        margin-right: auto;
    }

    .location-info {
        padding: 1.75rem;
    }

    .cta-final h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .hero-migs h1 {
        font-size: 1.7rem;
    }

    .hero-migs .eyebrow {
        font-size: 0.75rem;
    }

    .faq-question {
        font-size: 0.98rem;
        padding: 1rem 1.15rem;
    }

    .faq-answer-inner {
        padding: 0 1.15rem 1.25rem;
        font-size: 0.94rem;
    }

    .process-card {
        padding: 1.65rem 1.4rem;
    }
}

/* ==========================================================================
   USA MEDICAL TOURISM SECTION (sección modular, hidden by default)
   Se muestra vía JS solo cuando utm_campaign=C5-USA-MIOMAS
   ========================================================================== */
.usa-section {
    background: linear-gradient(135deg, var(--cream-base) 0%, var(--sand-whisper) 100%);
    border-top: 4px solid var(--primary-color);
    border-bottom: 1px solid var(--light-gray);
}

.usa-section .eyebrow-usa {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    padding: 0.4rem 1rem;
    border: 1px solid rgba(232, 185, 70, 0.5);
    border-radius: 30px;
    background: rgba(232, 185, 70, 0.12);
}

.usa-section .eyebrow-usa::before {
    content: '🇺🇸';
    font-size: 1.1rem;
}

.usa-section h2 {
    color: var(--medical-blue);
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.usa-section .lead-paragraphs p {
    color: var(--charcoal);
    line-height: 1.75;
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
}

.usa-section .usa-benefits {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.usa-section .usa-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(44, 82, 130, 0.08);
    color: var(--charcoal);
    line-height: 1.55;
    font-size: 1rem;
}

.usa-section .usa-benefits li:last-child {
    border-bottom: none;
}

.usa-section .usa-benefits li i {
    color: var(--medical-teal);
    font-size: 1.15rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.usa-section .usa-cta {
    margin-top: 1.5rem;
}

.usa-section [data-lang] {
    /* default visible; JS hide one of them by setting hidden attr */
}

@media (max-width: 768px) {
    .usa-section h2 {
        font-size: 1.85rem;
    }
}

@media (max-width: 576px) {
    .usa-section h2 {
        font-size: 1.6rem;
    }
    .usa-section .lead-paragraphs p {
        font-size: 0.98rem;
    }
}

/* ============== AUTOTEST styles (clonados de endometriosis.css para reuse en miomectomia) ============== */
.self-test-container {
    background: var(--pearl-white, #fff);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(44, 82, 130, 0.08);
    border: 1px solid var(--light-gray, #e0e0e0);
}

@media (max-width: 768px) {
    .self-test-container { padding: 1.5rem 1rem; }
}

.test-form {
    background: var(--sand-whisper, #fafaf7);
    padding: 2rem 1.5rem;
    border-radius: 15px;
}

.question-group {
    background: var(--pearl-white, #fff);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(44, 82, 130, 0.05);
    border-left: 4px solid var(--medical-blue, #1E3A5F);
    margin-bottom: 1.5rem;
}

.question-group h5 {
    color: var(--medical-blue, #1E3A5F);
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 1.05rem;
}

.test-form .form-check {
    margin-bottom: 0.5rem;
    padding: 0.6rem 0.85rem;
    background: var(--sand-whisper, #fafaf7);
    border-radius: 8px;
    transition: background 0.2s ease;
}

.test-form .form-check:hover { background: rgba(30, 58, 95, 0.08); }
.test-form .form-check-input:checked {
    background-color: var(--medical-blue, #1E3A5F);
    border-color: var(--medical-blue, #1E3A5F);
}
.test-form .form-check-label { font-weight: 500; cursor: pointer; }

.test-results {
    background: #fff;
    padding: 2rem 1.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--medical-teal, #5A9EA8);
}

.result-title {
    color: var(--medical-blue, #1E3A5F);
    text-align: center;
    margin-bottom: 1.2rem;
}

.result-score {
    text-align: center;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--medical-teal, #5A9EA8);
}

.result-interpretation {
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.2rem;
}

.result-interpretation.low-risk {
    background: rgba(40, 167, 69, 0.08);
    border-left: 4px solid #28a745;
    color: #155724;
}

.result-interpretation.moderate-risk {
    background: rgba(255, 193, 7, 0.1);
    border-left: 4px solid #ffc107;
    color: #856404;
}

.result-interpretation.high-risk {
    background: rgba(220, 53, 69, 0.08);
    border-left: 4px solid #dc3545;
    color: #721c24;
}

.result-interpretation h5 { margin-top: 0; margin-bottom: 0.7rem; }
.result-interpretation h6 { margin-top: 1rem; font-weight: 600; }
.result-interpretation ul { padding-left: 1.3rem; margin-bottom: 0; }
.result-interpretation ul li { margin-bottom: 0.35rem; line-height: 1.55; }

/* Recovery cards (sección recuperación postoperatoria) */
.recovery-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.recovery-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(44, 82, 130, 0.12);
}

/* Testimonial cards (sección testimonios) */
.testimonial-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border-left: 3px solid var(--medical-teal, #5A9EA8);
}
.testimonial-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(44, 82, 130, 0.10);
}
