/* =========================================
   DR. CONSULTORIO - ESTILO CLÍNICO
   ========================================= */

:root {
    --primary: #007bff;
    /* Azul Médico */
    --secondary: #0056b3;
    /* Azul Oscuro */
    --accent: #00d2d3;
    /* Turquesa Salud */
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
}

h1,
h2,
h3,
h4 {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- TOP BAR --- */
.top-bar {
    background-color: var(--secondary);
    color: white;
    padding: 8px 0;
    font-size: 0.85rem;
}

.tb-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.socials a {
    color: white;
    margin-left: 15px;
    transition: 0.3s;
}

.socials a:hover {
    color: var(--accent);
}

/* --- NAVBAR --- */
.navbar {
    background: var(--white);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
}

.logo i {
    font-size: 2rem;
}

.clinic-name {
    display: block;
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.1;
}

.doc-name {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-links a {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.btn-nav {
    background: var(--primary);
    color: white !important;
    padding: 10px 25px;
    border-radius: 50px;
    transition: 0.3s;
}

.btn-nav:hover {
    background: var(--secondary);
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
}

/* --- HERO --- */
.hero {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.badge-blue {
    background: rgba(0, 123, 255, 0.1);
    color: var(--primary);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.8rem;
    display: inline-block;
    margin-bottom: 15px;
}

.hero-text h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

.hero-btns {
    display: flex;
    gap: 15px;
}

.btn-primary {
    background: var(--primary);
    color: white;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: bold;
    transition: 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--secondary);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: bold;
    transition: 0.3s;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.hero-img {
    position: relative;
}

.hero-img img {
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.exp-badge {
    position: absolute;
    bottom: 30px;
    left: -20px;
    background: white;
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.exp-badge .num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

.exp-badge .txt {
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.2;
}

/* --- SERVICIOS --- */
.section-services {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #eee;
    transition: 0.3s;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border-color: var(--primary);
}

.icon-box {
    width: 70px;
    height: 70px;
    background: rgba(0, 123, 255, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px auto;
}

.service-card h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* --- SEGUROS --- */
.section-insurances {
    background: var(--secondary);
    padding: 40px 0;
    text-align: center;
    color: white;
}

.section-insurances h3 {
    color: white;
    margin-bottom: 30px;
    font-weight: 400;
}

.logos-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.logo-item {
    font-size: 1.5rem;
    font-weight: 800;
    opacity: 0.7;
}

/* --- CONTACTO --- */
.section-contact {
    padding: 80px 0;
    background: var(--bg-light);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.contact-form h3 {
    margin-bottom: 20px;
    color: var(--primary);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Open Sans';
}

.full {
    width: 100%;
}

.info-box {
    margin-bottom: 30px;
}

.info-box h4 {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-box ul {
    list-style: none;
    padding-left: 30px;
}

.info-box li {
    margin-bottom: 5px;
    color: var(--text-light);
}

.info-box.highlight {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border-left: 5px solid var(--primary);
}

.info-box.highlight h4 {
    margin: 0;
    color: var(--primary);
}

.link-map {
    color: var(--primary);
    font-weight: bold;
    margin-left: 30px;
}

/* --- FOOTER --- */
.footer {
    background: #222;
    color: #aaa;
    text-align: center;
    padding: 20px;
    font-size: 0.8rem;
}

/* --- WHATSAPP --- */
.float-wa {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    z-index: 100;
    transition: 0.3s;
}

.float-wa:hover {
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-grid,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .hero-img {
        order: -1;
        margin-bottom: 30px;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }
}