/* =========================================
   1. VARIABLES Y RESET
   ========================================= */
:root {
    --primary: #5D4E75;      /* Morado Institucional */
    --primary-dark: #423656; 
    --secondary: #B8A7C9;    /* Lila suave */
    --accent: #D4C6A8;       /* Dorado mate */
    --text-main: #2C2C2C;
    --text-light: #555555;
    --bg-offwhite: #FBFCFD;
    --white: #FFFFFF;
}

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

body {
    font-family: 'Lato', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-offwhite);
    line-height: 1.7;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    color: var(--primary);
    line-height: 1.25;
}

a { text-decoration: none; }

/* =========================================
   2. HEADER Y NAVEGACIÓN
   ========================================= */
header {
    background: var(--white);
    box-shadow: 0 4px 25px rgba(93, 78, 117, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.8rem 0;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Playfair Display', serif;
}

.nav-links { display: flex; align-items: center; gap: 40px; }

.nav-links a.link {
    color: var(--text-main);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
    position: relative;
}

.nav-links a.link:hover, .nav-links a.active { color: var(--primary); }
.nav-links a.link:hover::after, .nav-links a.active::after {
    content: ''; position: absolute; width: 100%; height: 2px; bottom: -5px; left: 0; background-color: var(--secondary);
}

.btn-nav {
    background-color: var(--primary);
    color: var(--white);
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(93, 78, 117, 0.2);
}
.btn-nav:hover { background-color: var(--primary-dark); transform: translateY(-2px); }

/* =========================================
   3. SECCIONES GENERALES & UTILS
   ========================================= */
.container { max-width: 1100px; margin: 0 auto; padding: 0 25px; }
.section { padding: 120px 0; }

/* Hero Principal (Home) */
.hero {
    background: linear-gradient(rgba(40, 35, 50, 0.75), rgba(40, 35, 50, 0.6)), 
                url('https://images.pexels.com/photos/5699456/pexels-photo-5699456.jpeg?auto=compress&cs=tinysrgb&w=1920');
    background-size: cover;
    background-position: center;
    height: 90vh; 
    display: flex; align-items: center; justify-content: center;
    text-align: center; color: var(--white); padding: 0 20px;
}
.hero-content { max-width: 900px; }
.hero h1 { font-size: 3rem; margin-bottom: 1rem; color: var(--white); text-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.hero p { color: rgba(255,255,255,0.95); font-size: 1.4rem; font-weight: 300; margin-bottom: 2.5rem; }

.btn-hero {
    display: inline-block;
    background-color: var(--white);
    color: var(--primary);
    padding: 18px 40px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
}
.btn-hero:hover { transform: scale(1.05); box-shadow: 0 10px 25px rgba(0,0,0,0.2); }

/* Page Header (Sobre Mi / Otras) */
.page-header {
    background-color: var(--primary);
    color: var(--white);
    padding: 100px 0 80px;
    text-align: center;
}
.page-header h1 { color: var(--white); font-size: 3rem; margin-bottom: 20px; }
.page-header p { color: rgba(255,255,255,0.8); font-size: 1.3rem; max-width: 700px; margin: 0 auto; }

/* Grids y Layouts */
.split-section { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: center; }
.bio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: flex-start; }

.img-frame img, .img-elegant, .portrait-img {
    width: 100%; border-radius: 4px; box-shadow: 20px 20px 0px var(--secondary);
}
.portrait-img { box-shadow: 20px 20px 0px var(--accent); }

.highlight-box {
    border-left: 4px solid var(--primary);
    padding-left: 25px;
    margin: 30px 0;
    font-style: italic;
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
}

/* =========================================
   4. SERVICIOS & CARDS
   ========================================= */
.services-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 40px; margin-top: 60px;
}
.service-card {
    background: var(--white); border-radius: 8px; overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    transition: transform 0.3s;
    border: 1px solid rgba(0,0,0,0.03);
    display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-8px); border-color: var(--secondary); }
.card-img { height: 220px; width: 100%; object-fit: cover; }
.card-body { padding: 35px; flex-grow: 1; display: flex; flex-direction: column; }
.badge {
    display: inline-block; padding: 6px 12px; font-size: 0.75rem; font-weight: 700;
    text-transform: uppercase; border-radius: 4px; margin-bottom: 15px; letter-spacing: 0.5px;
}
.badge-mariana { background-color: rgba(93, 78, 117, 0.1); color: var(--primary); }
.badge-equipo { background-color: rgba(184, 167, 201, 0.2); color: #666; }

/* =========================================
   5. ACUERDOS & LEGALES
   ========================================= */
.policy-section { padding: 80px 0; }
.policy-card { background: #fff; padding: 40px; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.03); margin-bottom: 30px; }
.policy-card h3 { font-size: 1.5rem; margin-bottom: 20px; color: var(--primary); }
.policy-card ul { list-style: none; }
.policy-card li { margin-bottom: 15px; display: flex; align-items: start; }

/* Manifiesto */
.manifesto-box {
    border: 2px solid var(--primary); padding: 60px; text-align: center;
    margin: 80px auto 0; max-width: 800px; position: relative;
}
.manifesto-box::before {
    content: 'VISIÓN CLÍNICA'; position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
    background: var(--bg-offwhite); padding: 0 20px; color: var(--primary); font-weight: 700; letter-spacing: 2px;
}

/* CV Grid */
.cv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; margin-top: 40px; }
.cv-item { background: var(--white); padding: 30px; border-left: 3px solid var(--secondary); box-shadow: 0 5px 15px rgba(0,0,0,0.05); }

/* =========================================
   6. FOOTER (CORREGIDO FINAL)
   ========================================= */
footer { 
    background-color: var(--primary) !important; 
    color: var(--white) !important; 
    padding: 80px 0 40px; 
    text-align: center; 
    position: relative;
    margin-top: 0;
}

.footer-slogan {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-style: italic;
    max-width: 800px;
    margin: 0 auto 30px;
    line-height: 1.5;
    color: #ffffff !important;
}

.footer-divider {
    width: 60px; height: 1px; background: var(--secondary); margin: 30px auto; opacity: 0.5;
}

.footer-info, .footer-info p {
    font-size: 0.95rem; color: #ffffff !important; opacity: 0.9; margin-bottom: 10px; line-height: 1.8; font-weight: 300;
}

.footer-info a {
     color: var(--white) !important; text-decoration: none; border-bottom: 1px dotted rgba(255,255,255,0.5);
}

.credits {
    font-size: 0.8rem; color: rgba(255, 255, 255, 0.6) !important; margin-top: 30px; font-weight: 400;
}
.credits a { color: var(--accent) !important; text-decoration: none; font-weight: 700; }

/* =========================================
   7. RESPONSIVE
   ========================================= */
@media (max-width: 850px) {
    .nav-links { display: none; } 
    .hero h1, .page-header h1 { font-size: 2.2rem; }
    .split-section, .bio-grid { grid-template-columns: 1fr; gap: 50px; }
    .hero { height: auto; padding: 180px 20px 120px; }
    .manifesto-box { padding: 30px; }
}

/* =========================================
   8. REDES SOCIALES (ICONOS)
   ========================================= */
.social-box {
    margin: 30px 0;
    display: flex;
    justify-content: center;
    gap: 25px; /* Espacio entre iconos */
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.social-link svg {
    width: 20px;
    height: 20px;
    fill: var(--white); /* Iconos blancos */
    transition: fill 0.3s ease;
}

/* Efecto Hover (al pasar el mouse) */
.social-link:hover {
    background-color: var(--white);
    border-color: var(--white);
    transform: translateY(-3px);
}

.social-link:hover svg {
    fill: var(--primary); /* El icono se vuelve morado */
}

/* Contenedor de Testimonios */
.reviews-section {
    padding: 80px 20px;
    background-color: #fcfaff; /* Un tono lila muy tenue para separar secciones */
}

/* Distribución en 3 columnas */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto;
}

/* Estilo de cada tarjeta */
.review-card {
    background: #ffffff;
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05); /* Sombra suave */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid #f0edf5;
    transition: transform 0.3s ease;
}

.review-card:hover {
    transform: translateY(-8px); /* Efecto interactivo */
}

.stars {
    color: #FFD700;
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: block;
}

.review-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 25px;
    font-style: italic;
}

.review-footer {
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.author-name {
    font-weight: 700;
    color: var(--primary);
    display: block;
    font-size: 0.95rem;
}

.service-tag {
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Botón de Doctoralia */
.btn-doctoralia {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 35px;
    border: 2px solid #3d86c6;
    border-radius: 50px;
    color: #3d86c6;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-doctoralia:hover {
    background-color: #3d86c6;
    color: #fff;
}