/* === New Hero Section Styles === */

.masthead-new {
    font-family: 'Poppins', sans-serif;
}

/* === H2 Styling === */

h2 {
    color: #0a0000;
}

.hero-container {
    background: radial-gradient(at center center, #02525E 0%, #044651 100%);
    position: relative;
    overflow: hidden;
}

.hero-row {
    min-height: 60vh;
    padding: 80px 20px 40px;
}

.hero-text-inner {
    text-align: center;
    color: #fff;
}

.hero-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
}

.hero-subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    opacity: 0.95;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

/* "Solicita una reunión" button: white on mobile, secondary on desktop */
.hero-buttons .btn-hero-meeting {
    background: #fff;
    color: #EB6C70;
    border: 2px solid #fff;
}

.hero-buttons .btn-hero-meeting:hover {
    background: transparent;
    color: #fff;
}

.hero-buttons .btn {
    min-width: 200px;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 10px;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

/* Override btn-primary inside hero: white bg to contrast against teal hero */
.hero-buttons .btn-primary {
    background: #fff;
    color: #02525E;
    border: 2px solid #fff;
}

.hero-buttons .btn-primary:hover {
    background: transparent;
    color: #fff;
    border-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.hero-social {
    position: absolute;
    bottom: 30px;
    left: 30px;
    z-index: 100;
}

@media (min-width: 992px) {
    .hero-row {
        min-height: 100vh;
        padding: 0;
    }

    .hero-text-inner {
        text-align: left;
        padding: 0 3rem;
    }

    .hero-title {
        font-size: 3rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .hero-buttons .btn-hero-meeting {
        background: #f16064;
        color: #fff;
        border: 2px solid #f16064;
    }

    .hero-buttons .btn-hero-meeting:hover {
        opacity: 0.9;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    }

    .hero-buttons .btn-hero-meeting + .btn {
        margin-left: 1rem;
    }
}

.hero-doctor-image {
    max-width: 500px;
    height: auto;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-doctor-image {
        animation: none;
    }
}

.hero-text-section {
    z-index: 10;
}

/* Stabilize mobile navbar dropdown: prevent teal→coral color flash on open */
#mainNav .dropdown .btn-primary,
#mainNav .dropdown .btn-primary:hover,
#mainNav .dropdown .btn-primary:active,
#mainNav .show > .btn-primary.dropdown-toggle,
#mainNav .show > .btn-primary.dropdown-toggle:focus {
    background-color: #02525E;
    border-color: #02525E;
    color: #fff;
    box-shadow: none;
}

/* hero-title responsive handled via min-width: 992px above */

/* === Video Button Styles === */

.btn-video {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 12px 25px;
    font-weight: 400;
}

.btn-video:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: translateY(-2px);
}

.play-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.6);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-video:hover .play-icon {
    background: rgba(255, 255, 255, 0.3);
    border-color: #fff;
    transform: scale(1.1);
}

.play-icon i {
    font-size: 1rem;
    margin-left: 2px;
}

/* === Video Modal Styles === */

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#videoModal .modal-content {
    background: transparent;
    border: none;
}

#videoModal .modal-header {
    position: absolute;
    top: -40px;
    right: 0;
    z-index: 1051;
}

#videoModal .close {
    color: #fff;
    opacity: 1;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    font-size: 2rem;
    font-weight: 300;
}

#videoModal .close:hover {
    color: #fff;
    opacity: 0.8;
}

@media (max-width: 767px) {
    .btn-video {
        padding: 10px 20px;
        font-size: 0.85rem;
    }

    .play-icon {
        width: 35px;
        height: 35px;
    }

    .play-icon i {
        font-size: 0.9rem;
    }
}

/* === Value Cards === */

.value-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.value-card .icon-wrapper {
    transition: transform 0.3s ease;
}

.value-card:hover .icon-wrapper {
    transform: scale(1.1);
}

/* === Workflow Timeline Section === */

.workflow-section {
    background: #fff;
}

.workflow-label {
    color: #EB6C70;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    margin-bottom: 0.4rem;
}

.workflow-main-image {
    max-width: 420px;
    width: 100%;
}

.workflow-timeline {
    padding-left: 4px;
}

.workflow-timeline-step {
    display: flex;
    gap: 20px;
}

.timeline-icon-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.timeline-icon {
    width: 52px;
    height: 52px;
    background: #02525E;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.timeline-connector {
    width: 2px;
    flex: 1;
    border-left: 2px dashed rgba(2, 82, 94, 0.35);
    margin: 6px 0;
    min-height: 24px;
}

.timeline-content {
    padding-bottom: 28px;
    flex: 1;
}

.step-label {
    font-size: 0.78rem;
    color: #adb5bd;
    font-weight: 500;
    display: block;
    margin-bottom: 4px;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.timeline-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 6px;
}

.timeline-desc {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.65;
    margin-bottom: 0;
}

.workflow-timeline-step--last .timeline-content {
    padding-bottom: 0;
}

@media (max-width: 991px) {
    .workflow-main-image {
        max-width: 300px;
    }
}

@media (max-width: 575px) {
    .timeline-icon {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
        border-radius: 10px;
    }

    .workflow-timeline-step {
        gap: 14px;
    }
}

/* === CTA Section === */

.cta-section {
    background: linear-gradient(135deg, #02525E 0%, #eb777d 50%, #eb8386 100%);
    padding: 80px 0;
}

.cta-section .btn-light {
    min-width: 250px;
    font-weight: 700;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    background: #fff;
    color: #02525E;
    border: 3px solid #fff;
    transition: all 0.3s ease;
}

.cta-section .btn-light:hover {
    background: transparent;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* === Plan Type Toggle (Segmented Control) === */

.plan-toggle {
    display: inline-flex;
    background: #f0f0f5;
    border-radius: 12px;
    padding: 4px;
}

.plan-toggle-btn {
    border: none;
    background: transparent;
    color: #02525E;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 10px 24px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.plan-toggle-btn:hover {
    color: #02525E;
}

.plan-toggle-btn.active {
    background: #fff;
    color: #02525E;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-weight: 600;
}

.plan-toggle-btn:focus {
    outline: 2px solid #02525E;
    outline-offset: 2px;
}

.plan-toggle-btn i {
    font-size: 0.9rem;
}

@media (max-width: 575px) {
    .plan-toggle-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}

/* === New Pricing Section === */

.pricing-section {
    background-color: #fff;
}

.benefit-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.benefit-icon:hover {
    transform: scale(1.1);
}

.pricing-card {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

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

/* Highlighted plan (Crece) */
.pricing-card-highlighted {
    border: 3px solid #EB6C70;
    box-shadow: 0 5px 25px rgba(235, 108, 112, 0.25);
}

.pricing-card-highlighted:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(235, 108, 112, 0.3);
}


.pricing-header {
    text-align: center;
}

.plan-title {
    font-size: 1.3rem;
    font-weight: 700;
}

.plan-type {
    font-size: 0.9rem;
    font-weight: 400;
    color: #6c757d;
}

.plan-price {
    margin-top: 15px;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: #EB6C70;
}

.price-period {
    font-size: 0.9rem;
    font-weight: 400;
    color: #6c757d;
    display: block;
    margin-top: 5px;
}

.pricing-features {
    flex-grow: 1;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-item {
    padding: 10px 0;
    color: #333;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    padding-left: 25px;
}

.feature-item:last-child {
    border-bottom: none;
}

.feature-item:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #EB6C70;
    font-weight: bold;
    font-size: 1.2rem;
}

.pricing-card .btn-outline-primary {
    border: 2px solid #02525E;
    color: #02525E;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.pricing-card .btn-outline-primary:hover {
    background: #02525E;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(234, 107, 111, 0.3);
}

/* Ribbon for popular plan */
.pricing-card .ribbon {
    position: absolute;
    top: 20px;
    right: -5px;
    background: #EB6C70;
    color: #fff;
    padding: 5px 15px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments for pricing */
@media (max-width: 991px) {
    .pricing-card {
        margin-bottom: 20px;
    }

    .price-amount {
        font-size: 2rem;
    }
}

@media (max-width: 767px) {
    .benefit-icon {
        width: 60px;
        height: 60px;
    }

    .benefit-icon i {
        font-size: 1.5rem !important;
    }
}

/* === Responsive Adjustments === */

@media (max-width: 767px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .display-4 {
        font-size: 2rem;
    }

    .lead {
        font-size: 1rem;
    }
}

/* === Hover Effects and Transitions === */

.hover-shadow {
    transition: all 0.3s ease;
}

.hover-shadow:hover {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
}

/* === Fase 4: Conversión === */

/* --- Navbar: botones separados --- */

/* Clase propia para el botón Registrarse en el navbar — evita conflictos con
   Bootstrap 5 CSS vars y la regla `a:hover { color: ... }` de new-age.css */
.btn-nav-register {
    --bs-btn-color: #fff;
    --bs-btn-bg: #EB6C70;
    --bs-btn-border-color: #EB6C70;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #d4565a;
    --bs-btn-hover-border-color: #d4565a;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #c04044;
    --bs-btn-active-border-color: #c04044;
    --bs-btn-focus-shadow-rgb: 235, 108, 112;
    color: #fff;
    background-color: #EB6C70;
    border-color: #EB6C70;
    text-decoration: none;
}

.btn-nav-register:hover,
.btn-nav-register:focus,
#mainNav .navbar-nav > li > a.btn-nav-register:hover,
#mainNav .navbar-nav > li > a.btn-nav-register:focus,
#mainNav.navbar-shrink .navbar-nav > li > a.btn-nav-register:hover,
#mainNav.navbar-shrink .navbar-nav > li > a.btn-nav-register:focus {
    color: #fff;
    background-color: #d4565a;
    border-color: #d4565a;
    text-decoration: none;
}

.btn-nav-register:active {
    color: #fff;
    background-color: #c04044;
    border-color: #c04044;
}

#mainNav .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
}

#mainNav .btn-outline-light:hover,
#mainNav .btn-outline-light:focus {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: #fff;
    color: #fff;
}

/* --- Pricing: UF price --- */

.price-uf {
    font-size: 0.8rem;
    color: #6c757d;
}

/* --- Features grid section --- */

.features-grid-section {
    background-color: #f8f9fa;
}

.feature-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

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

.feature-card-highlight {
    border-color: #EB6C70;
    border-width: 2px;
}

.feature-badge {
    position: absolute;
    top: -10px;
    right: 16px;
    background: #EB6C70;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 10px;
    border-radius: 20px;
}

.feature-icon {
    color: #02525E;
}

.feature-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #02525E;
    margin-bottom: 0.5rem;
}

/* --- Trust section --- */

.trust-section {
    background-color: #fff;
}

.trust-badge-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    border: 1px solid rgba(2, 82, 94, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.trust-badge-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(2, 82, 94, 0.15);
    border-color: rgba(2, 82, 94, 0.25);
}

.trust-icon {
    color: #02525E;
}

.trust-title {
    font-size: 1rem;
    font-weight: 700;
    color: #02525E;
    margin-bottom: 0.5rem;
}

/* --- Testimonials section --- */

.testimonials-section {
    background-color: #f8f9fa;
}

.testimonial-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.testimonial-stars {
    color: #f59e0b;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.testimonial-text {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.7;
    font-style: italic;
    flex-grow: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(2, 82, 94, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #02525E;
    flex-shrink: 0;
}

.testimonial-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: #02525E;
}

.testimonial-specialty {
    font-size: 0.8rem;
}

@media (prefers-reduced-motion: reduce) {
    .feature-card,
    .trust-badge-card,
    .testimonial-card {
        transition: none;
    }
}
