/* ================= BASE ================= */
body {
margin: 0;
font-family: "Times New Roman", serif;
color: #333;
}

/* ================= HEADER ================= */
header {
background: #003366;
color: white;
padding: 12px 0;
position: fixed;
width: 100%;
top: 0;
z-index: 1000;
}

header .container {
display: flex;
justify-content: space-between;
align-items: center;
width: 90%;
margin: auto;
}

header h1 {
font-size: 36px;
margin: 0;
}

nav a {
color: white;
margin-left: 20px;
text-decoration: none;
font-weight: bold;
font-size: 20px;
}

/* ================= HERO ================= */
.hero {
position: relative;
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
color: white;
margin-top: 70px;
}

.hero video {
position: absolute;
width: 100%;
height: 100%;
object-fit: cover;
z-index: -1;
}

.overlay {
background: rgba(0,0,0,0.6);
padding: 40px;
}

/* ================= SECCIONES ================= */
.section {
padding: 80px 0;
}

.container {
width: 90%;
margin: auto;
}

.grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 40px;
align-items: start; /* 🔥 IMPORTANTE */
}

/* ================= IMAGEN ================= */
.foto {
width: 100%;
border-radius: 10px;
}

/* ================= BLOQUE DOCTOR (CORRECCIÓN REAL) ================= */
#medico-a-domicilio-cali .grid > div:nth-child(2){
position: relative;
top: -2px; /* 🔥 ESTO SOLUCIONA TODO */
}

#medico-a-domicilio-cali h2{
font-size: 32px;
margin-top: 0;
}

#medico-a-domicilio-cali p{
font-size: 22px;
line-height: 1.6;
margin: 5px 0;
}

/* ================= SERVICIOS ================= */
.bg-light {
background: #f4f9ff;
}

#servicios h2 {
font-size: 32px;
}

#servicios li {
font-size: 22px;
line-height: 1.6;
margin-bottom: 10px;
}

#servicios h3 {
font-size: 30px;
color: #003366;
margin-top: 70px;
}

#servicios p {
font-size: 22px;
}

/* ================= BOTONES ================= */
.btn {
display: inline-block;
padding: 18px 35px;
font-size: 22px;
font-weight: bold;
background-color: #e63946;
color: #fff;
border-radius: 8px;
text-decoration: none;
}

.btn:hover {
background-color: #c1121f;
}

/* ================= WHATSAPP ================= */
.whatsapp-float {
position: fixed;
bottom: 70px;
right: 20px;
background: #25D366;
color: white;
padding: 15px 20px;
border-radius: 50px;
text-decoration: none;
font-weight: bold;
font-size: 20px;
}

/* ================= PRECIOS ================= */
.titulo-precios {
font-size: 26px;
font-weight: bold;
color: #003366;
}

.lista-precios {
font-size: 20px;
line-height: 1.6;
padding-left: 20px;
}

.lista-precios li {
margin-bottom: 12px;
}

/* ================= CONTACTO ================= */
#contacto h2 {
font-size: 36px;
}

#contacto p {
font-size: 24px;
}

.titulo-contacto {
display: flex;
align-items: center;
gap: 8px;
}

.icono-contacto {
height: 24px;
}

/* ================= DISTINTIVO ================= */
.distintivo{
width: 110%;
max-width: 800px;
display: block;
margin: 10px auto;
border-radius: 8px;
box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* ================= FOOTER ================= */
footer {
background: #003366;
color: white;
text-align: center;
padding: 20px;
}

/* ================= BOTÓN FIJO ================= */
.btn-fixed {
position: fixed;
bottom: 0;
width: 100%;
background: #003366;
color: white;
text-align: center;
padding: 15px;
font-size: 28px;
z-index: 999;
}

/* ================= RESPONSIVE ================= */
@media(max-width:768px){

#contacto{
text-align: center;
}

#contacto .container{
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}

#contacto p{
text-align: center;
}

#contacto .btn{
display: inline-block;
margin: 15px auto;
}

.foto{
margin-top: -40px; /* ajusta entre -30px y -60px si quieres más subida */
}

header .container{
flex-direction: column;
align-items: center;
}

header h1{
font-size: 20px;
margin-bottom: 8px;
}

/* MENÚ EN 2 FILAS */
nav{
display: flex;
flex-wrap: wrap;
justify-content: center;
max-width: 340px;
}

nav a{
font-size: 16px;
padding: 4px 6px;
margin: 2px;
white-space: nowrap;
}

/* GRID A UNA COLUMNA */
.grid{
grid-template-columns: 1fr;
}

/* RESET POSICIÓN TEXTO */
#medico-a-domicilio-cali .grid > div:nth-child(2){
top: 0;
}

.hero video {
position: absolute;
width: 100%;
height: 100%;
object-fit: cover;
z-index: -1;
}

.whatsapp-float{
bottom: 70px;
}
}

@media(min-width:769px){

#contacto .container{
text-align: center;
}

#contacto .btn{
display: inline-block;
margin-top: 15px;
}

.titulo-contacto{
justify-content: center; /* centra icono + título */
}

}

.titulo-contacto{
display: flex;
flex-direction: column;
align-items: center;
gap: 10px;
}

.icono-contacto{
height: 49px;
}

@media(min-width:769px){

#contacto{
text-align: center;
}

#contacto .container{
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}

.icono-contacto{
height: 49px; 
}

.titulo-contacto{
display: flex;
flex-direction: column;
align-items: center;
gap: 20px;
}

#contacto p{
text-align: center;
}

#contacto .btn{
display: inline-block;
margin: 15px auto;
}

}

#contacto p:first-of-type{
font-size: 24px; 
font-weight: bold;
}


#contacto p:nth-of-type(2){
font-size: 15px;       /* reduce ~3 puntos */
font-weight: normal;   /* quita negrita */
line-height: 1.4;
}

#contacto p:last-child{
font-size: 15px !important;
font-weight: normal !important;
line-height: 1.4;
}