/* RhSalud Modern Theme 2026 
   Concept: Bento Grid & Glassmorphism | Ultra-Responsive Premium
*/

:root {
    --primary: #0A2540;
    --accent: #00D4FF;
    --bg-white: #ffffff;
    --bg-soft: #F4F7FA;
    --text-main: #1F2937;
    --text-muted: #677489;
    --radius: 24px;
    --radius-sm: 12px;
    --shadow: 0 10px 40px rgba(10, 37, 64, 0.05);
    --shadow-hover: 0 20px 50px rgba(10, 37, 64, 0.1);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Reglas Estrictas Anti-Desbordamiento */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; width: 100%; overflow-x: hidden; }

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--bg-soft);
    color: var(--primary);
    line-height: 1.6;
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

img, iframe { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, p, span, a { overflow-wrap: break-word; word-break: break-word; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.fade-up.is-visible { opacity: 1; transform: translateY(0); }

/* --- Navegación --- */
.top-announcement { background: var(--primary); color: white; font-size: 13px; padding: 10px 0; font-weight: 500; }
.flex-between { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.top-announcement span { display: flex; align-items: center; gap: 6px; }
.top-announcement span i { color: var(--accent); font-size: 1.1rem; }
.top-announcement a { color: var(--accent); text-decoration: none; }

.glass-nav { position: sticky; top: 0; background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); z-index: 1000; border-bottom: 1px solid rgba(0, 0, 0, 0.05); }
.nav-container { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; }
.brand img { height: 50px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 25px; }
.nav-links a { text-decoration: none; color: var(--primary); font-weight: 600; transition: var(--transition); }
.nav-links a:hover { color: var(--accent); }

/* --- Hero Base --- */
.hero { padding: 160px 0 80px; text-align: center; }
.hero-content { max-width: 900px; margin: 0 auto; width: 100%; }
h1 { font-size: clamp(2rem, 6vw, 4rem); letter-spacing: -1.5px; line-height: 1.1; margin-bottom: 24px; }
.hero p { font-size: 1.2rem; margin-bottom: 40px; padding: 0 20px; }

.badge { background: #e1f8ff; color: #0096b8; padding: 8px 16px; border-radius: 50px; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; display: inline-block; margin-bottom: 20px; line-height: 1.4; }

/* Hero Home vs Internas */
.hero-home { background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../img/Personal-33.jpg'); background-size: cover; background-position: center 30%; background-repeat: no-repeat; }
.hero-home h1, .hero-home p { color: white; }
.hero-home p { opacity: 0.9; }
.hero-home .text-gradient { background: linear-gradient(90deg, #ffffff, var(--accent)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.hero-internal { background: radial-gradient(circle at top right, #eef9ff, #ffffff); }
.hero-internal h1 { color: var(--primary); }
.hero-internal p { color: var(--text-muted); }
.hero-internal .text-gradient { background: linear-gradient(90deg, #0A2540, #00D4FF); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* Botones y Redes */
.hero-btns { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.btn-primary { padding: 16px 36px; border-radius: 50px; text-decoration: none; font-weight: 700; transition: var(--transition); background: var(--primary); color: white; box-shadow: 0 10px 25px rgba(10, 37, 64, 0.2); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); background: var(--accent); }

.hero-socials { display: flex; justify-content: center; gap: 15px; margin-top: 20px; flex-wrap: wrap; }
.social-pill { width: 50px; height: 50px; background: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: var(--primary); box-shadow: var(--shadow); transition: var(--transition); border: 1px solid rgba(0,0,0,0.03); }
.social-pill:hover { transform: translateY(-5px); background: var(--primary); color: white; box-shadow: var(--shadow-hover); }

/* --- Novedades (Grid de 2 Columnas) --- */
.section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 50px; }
h2 { font-size: 2.5rem; margin-bottom: 15px; }

.novedades-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; width: 100%; margin-bottom: 40px; }
.featured-news { background: white; border-radius: var(--radius); box-shadow: var(--shadow); transition: var(--transition); display: flex; flex-direction: column; border: 1px solid rgba(0,0,0,0.02); overflow: hidden; padding: 0; min-width: 0; }
.featured-news:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: rgba(0, 212, 255, 0.3); }
.featured-news .bento-img img { width: 100%; height: 280px; object-fit: cover; display: block; }

/* DISEÑO DE IMAGEN DOBLE PARA NOVEDADES */
.bento-img.split-img { display: flex; flex-direction: row; width: 100%; background: white; }
.bento-img.split-img img { width: 50%; height: 280px; object-fit: cover; }
.bento-img.split-img img.product-img { object-fit: contain; background-color: #ffffff; padding: 15px; border-left: 2px solid var(--bg-soft); }
.featured-news .bento-info { padding: 32px; display: flex; flex-direction: column; flex-grow: 1; }

/* --- Bento Grid General --- */
.bento-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; width: 100%; }
.bento-item { background: white; padding: 32px; border-radius: var(--radius); box-shadow: var(--shadow); transition: var(--transition); display: flex; flex-direction: column; border: 1px solid rgba(0,0,0,0.02); min-width: 0; overflow: hidden; }
.bento-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: rgba(0, 212, 255, 0.3); }
.featured { grid-column: span 2; grid-row: span 2; padding: 0; }
.bento-img img { width: 100%; height: 300px; object-fit: cover; display: block; }
.bento-info { padding: 32px; }
.icon-box { font-size: 2.5rem; color: var(--accent); margin-bottom: 16px; display: inline-block; }
.link-arrow { margin-top: auto; color: var(--accent); text-decoration: none; font-weight: 600; display: inline-block; padding-top: 15px; }

.service-list { list-style: none; padding: 0; margin-top: 15px; }
.service-list li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; color: var(--text-muted); font-size: 0.95rem; }
.service-list li i { color: var(--accent); font-weight: bold; margin-top: 4px; flex-shrink: 0; }
.service-list-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; width: 100%; }

/* --- Equipo --- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 30px; width: 100%; }
.team-card { background: white; padding: 30px 20px; border-radius: var(--radius); text-align: center; box-shadow: var(--shadow); transition: var(--transition); border: 1px solid transparent; min-width: 0; }
.team-card:hover { transform: translateY(-10px); border-color: rgba(0, 212, 255, 0.2); }
.team-card img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin: 0 auto 20px; border: 4px solid var(--bg-soft); }
.team-card h4 { font-size: 1.1rem; margin-bottom: 5px; }
.team-card span { color: #0096b8; font-weight: 700; font-size: 0.85rem; }

/* --- Ubicación y Pagos --- */
.location-card { background: white; border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow); border: 1px solid rgba(0,0,0,0.03); margin-bottom: 24px; width: 100%; overflow: hidden; }
.location-header h3 { font-size: 1.8rem; margin-bottom: 5px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.location-header h3 i { color: var(--accent); }
.location-header p { color: var(--text-muted); }
.map-modern { margin-top: 25px; border-radius: var(--radius-sm); overflow: hidden; height: 350px; border: 1px solid rgba(0,0,0,0.05); width: 100%; }
.map-modern iframe { display: block; width: 100%; height: 100%; filter: grayscale(0.8) contrast(1.1); transition: filter 0.6s ease; }
.map-modern:hover iframe { filter: grayscale(0) contrast(1); }

.payments-card { background: white; border-radius: var(--radius); padding: 30px 40px; box-shadow: var(--shadow); border: 1px solid rgba(0,0,0,0.03); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; width: 100%; overflow: hidden; }
.payments-card h3 { font-size: 1.4rem; display: flex; align-items: center; gap: 8px;}
.payments-card h3 i { color: var(--accent); }
.payments-card p { color: var(--text-muted); font-size: 0.95rem; margin-top: 0; }
.payment-icons { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.payment-icons img { height: 35px; width: auto; object-fit: contain; filter: grayscale(100%) opacity(0.6); transition: var(--transition); }
.payment-icons img:hover { filter: grayscale(0%) opacity(1); transform: scale(1.05); }

/* --- Footer --- */
.footer { background: white; padding: 60px 0 120px; border-top: 1px solid rgba(0,0,0,0.05); width: 100%; overflow: hidden; }
.footer-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 30px; }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; max-width: 100%; }
.footer-brand .footer-logo { height: 50px; margin-bottom: 8px; }
.footer-brand p { color: var(--text-muted); font-size: 0.95rem; margin: 0; }
.footer-socials { display: flex; gap: 25px; flex-wrap: wrap; }
.footer-socials a { text-decoration: none; color: var(--primary); font-weight: 600; display: flex; align-items: center; gap: 8px; transition: var(--transition); }
.footer-socials a i { font-size: 1.4rem; color: var(--accent); }
.footer-socials a:hover { color: var(--accent); }

/* --- Menu FAB Desplegable --- */
.fab-container { position: fixed; bottom: 30px; right: 30px; z-index: 2000; display: flex; flex-direction: column; align-items: flex-end; gap: 15px; }
.fab-options { display: flex; flex-direction: column; gap: 10px; opacity: 0; visibility: hidden; transform: translateY(20px) scale(0.9); transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1); transform-origin: bottom right; }
.fab-container:hover .fab-options { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.fab-option { background: white; color: var(--primary); padding: 12px 20px; border-radius: 50px; text-decoration: none; font-weight: 600; box-shadow: 0 5px 15px rgba(0,0,0,0.1); display: flex; align-items: center; gap: 10px; transition: var(--transition); border: 1px solid rgba(0,0,0,0.05); }
.fab-option i { font-size: 1.2rem; color: var(--accent); }
.fab-option:hover { background: var(--bg-soft); color: var(--accent); transform: translateX(-5px); }
.fab-modern { background: var(--primary); color: white; padding: 18px 32px; border-radius: 100px; font-weight: 700; font-size: 1rem; border: none; cursor: pointer; box-shadow: 0 15px 35px rgba(10, 37, 64, 0.3); display: flex; align-items: center; gap: 10px; transition: var(--transition); font-family: inherit; }
.fab-modern i { font-size: 1.4rem; }
.fab-container:hover .fab-modern { background: var(--accent); transform: scale(1.05); }

/* ========================================================
   DISEÑO ULTRA-RESPONSIVO ESTRICTO (MÓVILES)
   ======================================================== */
@media (max-width: 1024px) {
    .bento-grid, .novedades-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .top-announcement .flex-between { flex-direction: column; text-align: center; gap: 5px; }
    .top-announcement { padding: 8px 10px; font-size: 11px; }
    .glass-nav { padding: 10px 0; }
    .nav-container { flex-direction: column; gap: 12px; padding: 5px 0; }
    .brand img { height: 45px; }
    .nav-links { display: flex; width: 100%; justify-content: center; gap: 15px; flex-wrap: wrap; }
    .nav-links a { font-size: 0.9rem; }

    .hero { padding: 120px 0 40px; }
    h1 { font-size: 2.2rem; margin-bottom: 15px; }
    .hero p { font-size: 1.05rem; margin-bottom: 25px; padding: 0 10px; }
    
    /* Forzar apilamiento total en Novedades y Bento Grid */
    .bento-grid, .novedades-grid { display: flex; flex-direction: column; gap: 16px; }
    .bento-item, .bento-info { padding: 24px; } 
    .bento-img img, .featured-news .bento-img img, .bento-img.split-img img { height: 200px; } 
    
    .service-list-grid { display: flex; flex-direction: column; gap: 10px; }
    
    .team-grid { grid-template-columns: 1fr; gap: 16px; }
    .team-card img { width: 100px; height: 100px; }
    
    .location-card, .payments-card { padding: 25px 20px; text-align: center; }
    .location-header h3, .payments-card h3 { font-size: 1.4rem; justify-content: center; }
    .map-modern { height: 250px; }
    .payments-card { flex-direction: column; align-items: center; }
    .payment-icons { justify-content: center; gap: 12px; }
    .payment-icons img { height: 28px; }

    .footer { padding: 50px 0 100px; }
    .footer-content { flex-direction: column; justify-content: center; text-align: center; gap: 25px; }
    .footer-brand { align-items: center; }
    .footer-socials { justify-content: center; width: 100%; gap: 15px;}

    .fab-container { bottom: 15px; right: 15px; transform: scale(0.9); transform-origin: bottom right; }
    .fab-modern { padding: 14px 24px; font-size: 0.95rem; }
}