/* ============================================
   DR. ARMANDO RAMÍREZ RODRÍGUEZ
   Portal Médico – Estilos Completos
   Color Principal: #045149
   Fuentes: Open Sans, Poppins
   ============================================ */

/* === RESET & GLOBAL === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 1.75;
    color: #333;
    background: #f5f5f5;
    -webkit-font-smoothing: antialiased;
}
a { color: #045149; text-decoration: none; transition: color .3s; }
a:hover { color: #067065; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.3;
    color: #1a1a1a;
}

/* === HEADER === */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 1px 0 rgba(0,0,0,0.08);
    transition: box-shadow .3s;
}
.header-top {
    background: linear-gradient(0deg, #f5f5f5, #fff);
    line-height: 36px;
    font-size: 15px;
}
.header-top-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.urgencias-link {
    color: #333;
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    transition: color .3s;
}
.urgencias-link:hover { color: #045149; }
.urgencias-link i { margin-right: 6px; }
.header-main {
    line-height: 95px;
    height: 95px;
}
.header-main-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}
.logo-link { display: flex; align-items: center; }
.logo-img { height: 85px; width: auto; }
.btn-cita-header {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    padding: 0.8em 1.6em;
    border-radius: 0.3em;
    background: #a4c502;
    color: #fff !important;
    transition: all .3s;
    line-height: 1.2;
}
.btn-cita-header:hover {
    background: #8aaa00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(164,197,2,.35);
}

/* === HERO === */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 116px;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 20%;
    background-repeat: no-repeat;
    animation: heroZoom 20s ease-in-out infinite alternate;
}
@keyframes heroZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.08); }
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}
.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 2rem;
    max-width: 800px;
}
.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    text-shadow: 0 2px 20px rgba(0,0,0,.3);
    color: #fff;
    animation: fadeInUp 1s ease-out;
}
.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: fadeInUp 1s ease-out .2s both;
}
.btn-hero {
    display: inline-block;
    padding: 1em 2.5em;
    background: #a4c502;
    color: #fff !important;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 0.3em;
    transition: all .3s;
    animation: fadeInUp 1s ease-out .4s both;
}
.btn-hero:hover {
    background: #8aaa00;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(164,197,2,.4);
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* === DOCTOR PROFILE === */
.doctor-profile-section {
    background: #fff;
    padding: 4rem 0;
}
.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.doctor-photo {
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}
.doctor-name-label {
    font-size: 20px;
    margin-bottom: .5rem;
}
.doctor-name-label strong { color: #000; }
.verified-icon { color: green; margin-left: 6px; font-size: 18px; }
.profile-title {
    font-size: 2rem;
    color: #1a1a1a;
    margin-bottom: 1rem;
}
.cedulas-text {
    font-size: 15px;
    color: #555;
    margin-bottom: 1.5rem;
}
.mini-review-box {
    border: 1px solid #969696;
    border-radius: 8px;
    padding: 1.2rem;
    margin-bottom: 1.5rem;
}
.review-text-mini { font-size: 16px; color: #555; margin-bottom: .5rem; }
.stars-row { color: #f5a623; font-size: 18px; margin-bottom: .5rem; }
.stars-row i { margin-right: 2px; }
.review-count-link { text-align: right; }
.review-count-link a { color: #045149; font-size: 14px; }
.review-count-link a:hover { text-decoration: underline; }

.btn-agenda-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 1em 2em;
    border: 2px solid #333;
    color: #333 !important;
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    border-radius: .3em;
    transition: all .3s;
}
.btn-agenda-outline:hover {
    background: #333;
    color: #fff !important;
    box-shadow: inset 0 0 0 35px #333;
}

/* === PRESS SECTION === */
.press-section {
    position: relative;
    padding: 4rem 0;
    overflow: hidden;
}
.press-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}
.press-overlay {
    position: absolute;
    inset: 0;
    background: rgba(4, 81, 73, 0.75);
}
.press-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.press-title {
    color: #fff;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
}
.press-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
.press-card {
    text-align: center;
    transition: transform .3s;
}
.press-card:hover { transform: translateY(-4px); }
.press-card img { width: 100%; border-radius: 4px; box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
.btn-press {
    display: inline-block;
    padding: 1em 2em;
    margin: 1.5rem 0 0 0;
    background: #a4c502;
    color: #fff !important;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    font-size: 16px;
    letter-spacing: 0.5px;
    transition: all .3s;
}
.btn-press:hover { background: #8aaa00; }
.btn-press i { margin-right: 6px; }

/* === SPECIALTIES === */
.specialties-section {
    background: #fff;
    padding: 4rem 0;
}
.section-title-center {
    text-align: center;
    font-size: 2.1rem;
    margin-bottom: 2rem;
    color: #1a1a1a;
}
.specialties-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}
.accordion-heading {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
}

/* Accordion */
.dr-accordion-wrapper { max-width: 800px; font-family: 'Segoe UI', sans-serif; }
.dr-item {
    margin-bottom: 12px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}
.dr-accordion-btn {
    background-color: #fff;
    color: #333;
    cursor: pointer;
    padding: 20px 25px;
    width: 100%;
    border: none;
    text-align: left;
    font-size: 18px;
    font-weight: 600;
    transition: all .3s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.dr-accordion-btn:hover { background-color: #f4fcfb; color: #045149; }
.dr-accordion-btn.dr-active { background-color: #045149; color: #fff; }
.dr-accordion-btn::after {
    content: '\002B';
    font-size: 24px;
    font-weight: bold;
    color: #045149;
    transition: transform .3s;
}
.dr-accordion-btn.dr-active::after { content: '\2212'; color: #fff; transform: rotate(180deg); }
.dr-panel {
    background: #fbfbfb;
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s ease-in-out;
}
.dr-panel ul {
    list-style: none;
    padding: 20px 30px;
    margin: 0;
    border-top: 3px solid #045149;
}
.dr-panel li {
    position: relative;
    padding-left: 35px;
    padding-bottom: 10px;
    margin-bottom: 6px;
    color: #555;
    font-size: 16px;
    line-height: 1.6;
    border-bottom: 1px dashed #e0e0e0;
}
.dr-panel li:last-child { border-bottom: none; }
.dr-panel li::before {
    content: '✔';
    position: absolute;
    left: 0; top: 2px;
    color: #045149;
    font-size: 14px;
    font-weight: bold;
    background: rgba(4,81,73,0.1);
    width: 24px; height: 24px;
    text-align: center;
    line-height: 24px;
    border-radius: 50%;
}

/* Gallery Metro */
.gallery-metro {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-flow: dense;
    gap: 2px;
}
.gallery-item {
    border-radius: 0;
    overflow: hidden;
    position: relative;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item.span-2x2 { grid-column: span 2; grid-row: span 2; }

/* === CONTACT SECTION === */
.contact-section {
    background: #000;
    color: #fff;
    padding: 4rem 0;
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
}
.info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}
.info-icon {
    font-size: 1.5rem;
    color: #fff;
    min-width: 30px;
    text-align: center;
    padding-top: 2px;
}
.info-text h4 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: .3rem;
}
.info-text p { color: #ccc; font-size: 15px; }
.phone-link { color: #fff !important; }
.phone-link:hover { color: #a4c502 !important; }
.contact-cta { margin-top: 2rem; }
.btn-agenda-green {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 1em 2em;
    background: #a4c502;
    color: #fff !important;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: .3em;
    font-size: 16px;
    transition: all .3s;
}
.btn-agenda-green:hover {
    background: #8aaa00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(164,197,2,.35);
}
.contact-doctor-img {
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,.5);
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

/* === BLOG === */
.blog-section {
    background: #fff;
    padding: 4rem 0;
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}
.blog-card {
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    transition: transform .3s, box-shadow .3s;
}
.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.blog-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.blog-card h3 {
    padding: .8rem 1rem;
    font-size: 1rem;
    line-height: 1.4;
    font-weight: 600;
}
.blog-card h3 a { color: #1a1a1a; }
.blog-card h3 a:hover { color: #045149; }

/* === TESTIMONIALS === */
.testimonials-section {
    background: #f9f9f9;
    padding: 4rem 0;
}
.verified-header {
    margin-bottom: 1rem;
}
.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: #333;
}
.verified-badge i { color: green; font-size: 18px; }
.testimonials-count {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: #1a1a1a;
}
.testimonials-count span { font-weight: 700; }
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
.testimonial-card {
    background: #fff;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
    position: relative;
    transition: transform .3s;
}
.testimonial-card:hover { transform: translateY(-3px); }
.testimonial-badge {
    position: absolute;
    top: 8px; right: 10px;
    background: #E7F7F4;
    color: #56C1A7;
    padding: 2px 10px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 9px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.testimonial-badge i { font-size: 14px; }
.testimonial-header {
    display: flex;
    align-items: center;
    gap: .8rem;
    margin-bottom: .8rem;
}
.testimonial-avatar {
    width: 45px; height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    position: relative;
    flex-shrink: 0;
}
.google-icon-small {
    position: absolute;
    right: -4px; bottom: -2px;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: #fff;
    padding: 2px;
}
.testimonial-name { font-weight: 600; color: #333; font-size: 15px; }
.testimonial-date { font-size: 12px; color: #999; }
.testimonial-text { font-size: 16px; color: #444; line-height: 1.6; margin-bottom: .8rem; }
.testimonial-stars { color: #f5a623; font-size: 14px; }
.testimonial-stars i { margin-right: 1px; }

.btn-load-more {
    display: block;
    margin: 2rem auto 1rem;
    padding: 12px 30px;
    background: #56C1A7;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background .3s;
}
.btn-load-more:hover { background: #3c9783; }
.btn-all-reviews {
    display: block;
    text-align: center;
    color: #045149;
    font-weight: 600;
    font-size: 15px;
}
.btn-all-reviews:hover { text-decoration: underline; }

/* === INSURANCE === */
.insurance-section {
    background: #fff;
    padding: 3rem 0;
}
.insurance-marquee-wrapper {
    overflow: hidden;
    width: 100%;
    margin-top: 3rem;
    position: relative;
}
.insurance-marquee-wrapper::before,
.insurance-marquee-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 80px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}
.insurance-marquee-wrapper::before {
    left: 0;
    background: linear-gradient(to right, #fff, transparent);
}
.insurance-marquee-wrapper::after {
    right: 0;
    background: linear-gradient(to left, #fff, transparent);
}
.insurance-marquee {
    display: flex;
    align-items: center;
    gap: 4rem;
    width: max-content;
    animation: scrollMarquee 35s linear infinite;
}
.insurance-marquee:hover {
    animation-play-state: paused;
}
@keyframes scrollMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.insurance-logo img {
    height: 85px;
    width: auto;
    filter: grayscale(20%);
    opacity: 0.9;
    transition: all .3s;
}
.insurance-logo img:hover {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.1);
}

/* === FOOTER === */
.site-footer {
    background: #1a1a1a;
    color: #bbb;
    text-align: center;
    padding: 2.5rem 1.5rem;
}
.footer-name { color: #ccc; font-size: 16px; font-weight: 600; margin-bottom: .3rem; }
.footer-cedulas { font-size: 13px; color: #999; margin-bottom: .5rem; }
.footer-copy { font-size: 13px; color: #888; }
.footer-copy a { color: #fff; }
.footer-copy a:hover { color: #a4c502; }

/* === FLOATING WHATSAPP === */
.whatsapp-float {
    position: fixed;
    bottom: 25px; right: 25px;
    width: 60px; height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    font-size: 32px;
    box-shadow: 0 4px 15px rgba(37,211,102,.4);
    z-index: 9999;
    transition: all .3s;
    animation: whatsappPulse 2s infinite;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37,211,102,.6);
}
@keyframes whatsappPulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(37,211,102,.4); }
    50% { box-shadow: 0 4px 25px rgba(37,211,102,.7); }
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .profile-grid { grid-template-columns: 1fr; }
    .profile-photo-col { text-align: center; }
    .doctor-photo { max-width: 350px; }
    .specialties-grid { grid-template-columns: 1fr; }
    .gallery-metro { grid-template-columns: repeat(3, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .press-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .hero-section { margin-top: 60px; }
    .header-top { display: none; }
    .header-main { height: 60px; line-height: 60px; }
    .logo-img { height: 45px; }
    .btn-cita-header { font-size: 14px; padding: .6em 1em; }
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1rem; }
    .profile-title { font-size: 1.6rem; }
    .section-title-center { font-size: 1.6rem; }
    .press-grid { grid-template-columns: 1fr; }
    .blog-grid { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .gallery-metro { grid-template-columns: repeat(2, 1fr); }
    .gallery-item:nth-child(1) { grid-column: span 2; }
    .gallery-item:nth-child(3) { grid-column: span 1; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 1.8rem; }
    .btn-hero { font-size: .9rem; padding: .8em 1.5em; }
    .profile-title { font-size: 1.3rem; }
    .gallery-metro { grid-template-columns: 1fr 1fr; }
    .gallery-item:nth-child(1) { grid-column: span 1; grid-row: span 1; }
}
