.hero-section {
    display: flex;
    align-items: center;
    min-height: 100vh;
    padding: 60px 20px;
    background: linear-gradient(135deg, #f5f5f5 0%, #fff 100%);
}

.hero-container {
    width: 100%;
    max-width: 940px;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    margin: 0.5rem 0 1rem;
    color: #1e4070;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.3;
}

.hero-subtitle {
    margin-bottom: 20px;
    color: #666;
    font-size: 20px;
    font-weight: 300;
}

.search-context { overflow-wrap: anywhere; }

.cta-primary-btn {
    display: inline-block;
    padding: 1rem 2rem;
    margin: 1rem 0;
    background: linear-gradient(135deg, #1b7e34 0%, #147d3a 100%);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(27, 126, 52, 0.3);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(27, 126, 52, 0.4);
}

.response-time {
    margin-top: -0.1rem;
    margin-bottom: 1.8rem;
    color: #666;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
}

.quick-problems-title {
    margin: 2rem 0;
    color: #666;
    font-weight: 600;
    text-align: center;
}

.quick-problems {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 600px;
    margin: 1.5rem auto;
}

.quick-problem-btn {
    display: block;
    padding: 1rem;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    color: #1e4070;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.quick-problem-btn:hover {
    background: #f0f7ff;
    border-color: #1e4070;
    box-shadow: 0 3px 10px rgba(30, 64, 112, 0.15);
    transform: translateY(-2px);
}

.hero-secondary-cta {
    margin: 1.5rem 0;
    text-align: center;
}

.hero-video {
    max-width: 420px;
    padding: 0 1rem;
    margin: 1.5rem auto 0;
}

.shorts-frame {
    position: relative;
    width: 100%;
    max-width: 420px;
    overflow: hidden;
    aspect-ratio: 9 / 16;
    background: #000;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.shorts-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.hero-video figcaption {
    margin-top: 0.5rem;
    color: #444;
    font-size: 0.95rem;
    text-align: center;
}

.shorts-poster {
    all: unset;
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.shorts-poster img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-icon {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.35));
    color: #fff;
    font-size: 2.4rem;
}

.hidden { display: none !important; }

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.hero-button {
    display: inline-block;
    padding: 0.75rem 1.25rem;
    background: #1e4070;
    border-radius: 8px;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.hero-button:hover {
    box-shadow: 0 5px 15px rgba(30, 64, 112, 0.3);
    transform: translateY(-2px);
}

.hero-button.secondary {
    background: transparent;
    border: 2px solid #1e4070;
    color: #1e4070;
}

.professionals-section {
    padding-top: 90px;
    margin-top: -50px;
}

.professionals-title {
    margin: 2rem 0 1.5rem;
    color: #1e4070;
    font-size: 2rem;
    text-align: center;
}

.professionals-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-items: center;
    gap: 30px;
    width: 100%;
    margin-top: 30px;
}

.professionals-grid-doctors {
    grid-template-columns: repeat(2, minmax(0, 290px));
    justify-content: center;
}

.professional-card {
    width: 100%;
    min-width: 0;
    max-width: 290px;
    overflow: hidden;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.professional-card:hover,
.professional-card:focus-within {
    box-shadow: 0 8px 24px rgba(44, 90, 160, 0.2);
    transform: translateY(-8px);
}

.professional-card-link {
    display: flex;
    height: 100%;
    color: inherit;
    text-decoration: none;
    flex-direction: column;
}

.card-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    background-color: #f0f0f0;
}

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

.card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 12px;
    padding: 15px;
}

.card-title {
    margin: 0;
    color: #2c5aa0;
    font-size: 22px;
    text-align: center;
}

.card-specialty {
    margin: -8px 0 0;
    color: #2c5aa0;
    font-size: 14px;
    text-align: center;
}

.card-info {
    padding: 0;
    margin: 8px 0;
    color: #666;
    font-size: 14px;
    list-style: none;
}

.card-info li {
    position: relative;
    padding-left: 16px;
    margin: 6px 0;
}

.card-info li::before {
    position: absolute;
    left: 0;
    color: #2c5aa0;
    content: "•";
    font-weight: 700;
}

.btn-card {
    align-self: center;
    padding: 10px 20px;
    margin-top: auto;
    background-color: #2c5aa0;
    border-radius: 4px;
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
}

.home-final-cta {
    padding: 3rem 1.5rem;
    margin-top: 3rem;
    background: linear-gradient(135deg, #1e4070 0%, #2d5fa3 100%);
    color: #fff;
    text-align: center;
}

.home-final-cta > div { max-width: 600px; margin: 0 auto; }
.home-final-cta h2 { margin-bottom: 1rem; font-size: 1.8rem; }
.home-final-cta p { margin-bottom: 1.5rem; font-size: 1.1rem; line-height: 1.6; }
.home-final-cta a { display: inline-block; padding: 1rem 2rem; background: #1b7e34; border-radius: 8px; color: #fff; font-size: 1.1rem; font-weight: 700; text-decoration: none; }

.whatsapp-popup {
    position: fixed;
    z-index: 1000;
    right: 20px;
    bottom: 20px;
    width: min(300px, calc(100vw - 40px));
    padding: 1rem;
    border-radius: 8px;
    background: #1b7e34;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .2);
    color: #fff;
}

.whatsapp-popup[hidden] { display: none; }
.whatsapp-popup.is-visible { animation: whatsapp-popup-slide-up .4s ease; }

.whatsapp-popup-close {
    position: absolute;
    top: 8px;
    right: 8px;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: rgba(255, 255, 255, .2);
    color: #fff;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
}

.whatsapp-popup-close:focus-visible,
.whatsapp-popup-action:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 2px;
}

.whatsapp-popup-title {
    padding-right: 28px;
    margin: 0 0 .75rem;
    font-weight: 700;
}

.whatsapp-popup-description {
    margin: 0 0 1rem;
    font-size: .9rem;
    line-height: 1.4;
}

.whatsapp-popup-action {
    display: block;
    padding: .75rem;
    border-radius: 6px;
    background: #fff;
    color: #1b7e34;
    font-size: .95rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

@keyframes whatsapp-popup-slide-up {
    from { opacity: 0; transform: translateY(100px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .hero-section { min-height: auto; padding: 20px 15px; }
    .hero-title { font-size: 26px; }
    .hero-subtitle { margin-bottom: 25px; font-size: 16px; }
    .quick-problems { grid-template-columns: 1fr; }
    .cta-primary-btn { padding: 0.85rem 1.5rem; font-size: 1rem; }
    .professionals-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
    .professionals-grid-doctors { grid-template-columns: repeat(2, minmax(0, 290px)); }
    .whatsapp-popup { right: 12px; bottom: 12px; width: min(300px, calc(100vw - 24px)); }
}

@media (max-width: 600px) {
    .professionals-grid,
    .professionals-grid-doctors { grid-template-columns: 1fr; }
}
