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

body{
font-family:Arial,sans-serif;
background:#f7f8fa;
color:#1d1d1d;
line-height:1.6;
}

.container{
width:90%;
max-width:1200px;
margin:auto;
}

/* HEADER */

.header-principal{
background:#fff;
padding:8px 0;
text-align:center;
}

.header-logo{
width:100%;
max-width:760px;
height:auto;
}

/* NAVBAR */

.navbar-nueva{
background:#fff;
padding:15px 0;
position:sticky;
top:0;
z-index:1000;
box-shadow:0 2px 10px rgba(0,0,0,.08);
}

.nav-content{
display:flex;
justify-content:center;
align-items:center;
gap:30px;
flex-wrap:wrap;
}

.nav-content a{
text-decoration:none;
color:#102542;
font-weight:600;
}

/* HERO */

.hero{
height:75vh;
background-image:linear-gradient(rgba(3,16,35,.72),rgba(3,16,35,.72)),url('/img/farela-hero.jpg');
background-size:cover;
background-position:center;
display:flex;
align-items:center;
justify-content:center;
}

.hero-content{
color:#fff;
max-width:850px;
text-align:center;
margin:auto;
padding:0 20px;
}

.hero h1{
font-size:62px;
font-weight:800;
line-height:1.1;
margin-bottom:25px;
text-shadow:0 4px 18px rgba(0,0,0,.45);
}

.hero p{
font-size:22px;
line-height:1.7;
margin-bottom:35px;
text-shadow:0 3px 12px rgba(0,0,0,.4);
}

.hero-buttons{
display:flex;
justify-content:center;
align-items:center;
}

.btn-secondary-custom{
background:linear-gradient(135deg,#25D366,#16c85c);
color:#fff;
padding:16px 30px;
font-size:17px;
font-weight:700;
border-radius:50px;
text-decoration:none;
box-shadow:0 12px 30px rgba(37,211,102,.35);
transition:.3s;
}

.btn-secondary-custom:hover{
transform:translateY(-3px);
box-shadow:0 18px 35px rgba(37,211,102,.45);
color:#fff;
text-decoration:none;
}

/* SECCIONES */

.section{
padding:90px 0;
}

.light-section{
background:#fff;
}

.section-header{
text-align:center;
max-width:760px;
margin:0 auto 50px;
}

.section-header h1,
.section-header h2{
font-size:42px;
color:#102542;
margin-bottom:15px;
}

.section-header p{
font-size:18px;
color:#555;
}

/* WHATSAPP */

.whatsapp-float{
position:fixed;
bottom:20px;
right:20px;
width:65px;
height:65px;
background:#25D366;
border-radius:50%;
display:flex;
align-items:center;
justify-content:center;
font-size:32px;
color:#fff;
text-decoration:none;
z-index:999;
box-shadow:0 8px 25px rgba(0,0,0,.25);
}

/* ACCESOS RÁPIDOS */

.quick-access{
position:relative;
z-index:100;
margin-top:0;
padding:35px 0 65px;
background:#f7f8fa;
}

.quick-grid{
display:grid;
grid-template-columns:repeat(2,220px);
justify-content:center;
gap:28px;
}

.quick-card{
background:#fff;
width:220px;
height:220px;
padding:22px;
border-radius:24px;
text-align:center;
box-shadow:0 10px 25px rgba(0,0,0,.08);
display:flex;
flex-direction:column;
justify-content:center;
align-items:center;
transition:.3s;
text-decoration:none;
color:#102542;
}

.quick-card:hover{
transform:translateY(-8px);
text-decoration:none;
color:#102542;
}

.quick-card:visited,
.quick-card:focus{
text-decoration:none;
color:#102542;
}

.quick-card img{
width:50px;
height:50px;
object-fit:contain;
margin-bottom:14px;
}

.quick-card h3{
font-size:20px;
line-height:1.15;
margin-bottom:9px;
color:#102542;
}

.quick-card p{
font-size:14px;
line-height:1.35;
color:#666;
max-width:170px;
}

/* SERVICIOS HOME */

.servicios-section{
background:#f7f8fa;
}

.servicios-grid{
display:grid;
grid-template-columns:repeat(4,1fr);
gap:25px;
align-items:stretch;
}

.servicio-card{
background:#fff;
height:260px;
padding:28px 22px;
border-radius:22px;
text-align:center;
box-shadow:0 12px 28px rgba(0,0,0,.07);
transition:.3s;
display:flex;
flex-direction:column;
justify-content:center;
align-items:center;
text-decoration:none;
color:#102542;
}

.servicio-card:hover{
transform:translateY(-7px);
text-decoration:none;
color:#102542;
}

.servicio-card img{
width:54px;
height:54px;
object-fit:contain;
margin-bottom:16px;
}

.servicio-card h3{
font-size:21px;
line-height:1.2;
margin-bottom:10px;
color:#102542;
}

.servicio-card p{
font-size:15px;
line-height:1.5;
color:#666;
max-width:230px;
}

.servicio-link-card a{
width:100%;
height:100%;
display:flex;
flex-direction:column;
justify-content:center;
align-items:center;
text-align:center;
text-decoration:none;
color:inherit;
}

.servicio-link-card a h3,
.servicio-link-card a p{
text-decoration:none;
color:#102542;
}

.servicio-link-card a:hover{
text-decoration:none;
}

/* CONTADORES */

.counter-grid{
display:grid;
grid-template-columns:repeat(4,1fr);
gap:25px;
margin-top:50px;
}

.counter-card{
background:#fff;
height:220px;
padding:28px;
border-radius:22px;
text-align:center;
box-shadow:0 10px 30px rgba(0,0,0,.08);
display:flex;
flex-direction:column;
justify-content:center;
align-items:center;
}

.counter-card h3{
font-size:52px;
font-weight:800;
color:#0B6EBD;
margin-bottom:10px;
}

.counter-card p{
font-size:16px;
color:#666;
}

/* ESPECIALIDADES HOME */

.especialidades-section{
background:#f7f8fa;
}

.especialidades-grid{
display:grid;
grid-template-columns:repeat(4,1fr);
gap:25px;
}

.especialidad-card{
background:#fff;
height:260px;
padding:28px 22px;
border-radius:22px;
text-align:center;
box-shadow:0 12px 28px rgba(0,0,0,.07);
transition:.3s;
text-decoration:none;
color:#102542;
display:flex;
flex-direction:column;
justify-content:center;
align-items:center;
}

.especialidad-card:hover{
transform:translateY(-7px);
text-decoration:none;
color:#102542;
}

.especialidad-card img{
width:54px;
height:54px;
object-fit:contain;
margin-bottom:16px;
}

.especialidad-card h3{
font-size:21px;
line-height:1.2;
margin-bottom:10px;
color:#102542;
}

.especialidad-card p{
font-size:15px;
line-height:1.5;
color:#666;
max-width:230px;
}

/* CONTACTO */

.contacto-section{
background:#fff;
}

.contacto-grid{
display:grid;
grid-template-columns:repeat(4,1fr);
gap:25px;
}

.contacto-card{
background:#f7f8fa;
height:230px;
padding:26px 20px;
border-radius:22px;
text-align:center;
box-shadow:0 10px 25px rgba(0,0,0,.07);
display:flex;
flex-direction:column;
justify-content:center;
align-items:center;
text-decoration:none;
color:#102542;
transition:.3s;
}

.contacto-card:hover{
transform:translateY(-7px);
text-decoration:none;
color:#102542;
}

.contacto-card img{
width:52px;
height:52px;
object-fit:contain;
margin-bottom:16px;
}

.contacto-card h3{
font-size:21px;
margin-bottom:10px;
}

.contacto-card p{
font-size:15px;
color:#666;
line-height:1.4;
}

/* INSTAGRAM */

.instagram-widget{
margin-top:60px;
text-align:center;
}

.instagram-widget h3{
font-size:32px;
color:#102542;
margin-bottom:10px;
}

.instagram-widget p{
color:#666;
margin-bottom:30px;
}

/* MAPA */

.mapa-section{
margin-top:60px;
}

.mapa-section h3{
font-size:32px;
color:#102542;
text-align:center;
margin-bottom:30px;
}

.mapa-container{
position:relative;
overflow:hidden;
border-radius:25px;
box-shadow:0 15px 35px rgba(0,0,0,.12);
}

.mapa-container iframe{
width:100%;
height:450px;
border:0;
}

/* PÁGINA DOCTOR SV */

.pagina-doctor-sv{
padding:80px 0;
overflow-x:hidden;
}

.pagina-doctor-sv .container{
max-width:1100px;
}

.pagina-doctor-sv .section-header{
margin-bottom:45px;
}

.pagina-doctor-sv .aseguradoras-content{
display:grid;
grid-template-columns:1.1fr .9fr;
gap:45px;
align-items:center;
}

.pagina-doctor-sv .aseguradoras-content img{
width:100%;
height:auto;
display:block;
border-radius:24px;
box-shadow:0 12px 28px rgba(0,0,0,.10);
}

.pagina-doctor-sv .aseguradoras-texto h3{
font-size:32px;
color:#102542;
margin-bottom:18px;
}

.pagina-doctor-sv .aseguradoras-texto p{
font-size:17px;
line-height:1.7;
color:#555;
margin-bottom:15px;
}

.pagina-doctor-sv .btn-secondary-custom{
display:inline-flex;
margin-top:12px;
}

/* PÁGINA ASEGURADORAS */

.pagina-aseguradoras{
padding:80px 0;
overflow-x:hidden;
}

.pagina-aseguradoras .container{
max-width:1100px;
}

.pagina-aseguradoras .section-header{
margin-bottom:45px;
}

.pagina-aseguradoras .aseguradoras-content{
display:grid;
grid-template-columns:1.1fr .9fr;
gap:45px;
align-items:center;
}

.pagina-aseguradoras .aseguradoras-content img{
width:100%;
height:auto;
display:block;
border-radius:24px;
box-shadow:0 12px 28px rgba(0,0,0,.10);
}

.pagina-aseguradoras .aseguradoras-texto{
display:flex;
flex-direction:column;
align-items:flex-start;
}

.pagina-aseguradoras .aseguradoras-texto h3{
font-size:32px;
color:#102542;
margin-bottom:18px;
}

.pagina-aseguradoras .aseguradoras-texto p{
font-size:17px;
line-height:1.7;
color:#555;
margin-bottom:18px;
}

.pagina-aseguradoras .btn-secondary-custom{
display:inline-flex;
justify-content:center;
align-items:center;
margin-top:10px;
}

/* PÁGINA SERVICIOS SEO - CLASES AISLADAS */

.pagina-servicios-seo{
padding:80px 0;
background:#fff;
overflow-x:hidden;
}

.pagina-servicios-seo .container{
max-width:1150px;
}

.servicios-seo-grid{
display:grid;
grid-template-columns:repeat(2,1fr);
gap:65px 50px;
}

.servicio-seo-item{
display:grid;
grid-template-columns:1fr;
gap:22px;
}

.servicio-seo-item img{
width:100%;
height:auto;
display:block;
border-radius:22px;
box-shadow:0 14px 35px rgba(0,0,0,.12);
}

.servicio-seo-item h2{
font-size:30px;
line-height:1.2;
color:#102542;
margin-bottom:12px;
}

.servicio-seo-item p{
font-size:17px;
line-height:1.7;
color:#555;
}

/* TABLET */

@media(max-width:992px){

.servicios-grid,
.counter-grid,
.especialidades-grid,
.contacto-grid{
grid-template-columns:repeat(2,1fr);
}

.quick-grid{
grid-template-columns:repeat(2,1fr);
max-width:520px;
margin:auto;
}

}

/* MÓVIL */

@media(max-width:768px){

.header-principal{
padding:10px 0;
}

.header-logo{
max-width:92%;
}

.navbar-nueva{
padding:12px 0;
}

.nav-content{
gap:18px;
font-size:15px;
line-height:1.2;
}

.hero{
height:auto;
min-height:520px;
padding:55px 0 115px;
background-position:center top;
}

.hero-content{
max-width:100%;
padding:0 28px;
}

.hero h1{
font-size:36px;
line-height:1.12;
margin-bottom:22px;
}

.hero p{
font-size:17px;
line-height:1.55;
margin-bottom:28px;
}

.btn-secondary-custom{
font-size:17px;
padding:16px 30px;
}

.quick-access{
margin-top:-55px;
padding-bottom:55px;
}

.quick-grid{
grid-template-columns:repeat(2,1fr);
gap:14px;
width:100%;
max-width:360px;
margin:auto;
}

.quick-card{
width:100%;
height:170px;
padding:14px 10px;
border-radius:20px;
}

.quick-card img{
width:38px;
height:38px;
margin-bottom:10px;
}

.quick-card h3{
font-size:16px;
line-height:1.1;
margin-bottom:7px;
}

.quick-card p{
font-size:11.5px;
line-height:1.25;
max-width:120px;
}

.servicios-grid,
.counter-grid,
.especialidades-grid,
.contacto-grid{
grid-template-columns:repeat(2,1fr);
gap:16px;
}

.servicio-card,
.especialidad-card{
height:215px;
padding:18px 12px;
}

.counter-card{
height:190px;
padding:18px 12px;
}

.contacto-card{
height:190px;
padding:18px 12px;
}

.servicio-card img,
.especialidad-card img{
width:44px;
height:44px;
margin-bottom:12px;
}

.contacto-card img{
width:42px;
height:42px;
}

.servicio-card h3,
.especialidad-card h3,
.contacto-card h3{
font-size:17px;
line-height:1.15;
margin-bottom:8px;
}

.servicio-card p,
.especialidad-card p,
.contacto-card p{
font-size:12.5px;
line-height:1.35;
max-width:145px;
}

.counter-card h3{
font-size:38px;
line-height:1.1;
}

.counter-card p{
font-size:14px;
line-height:1.35;
}

.section{
padding:70px 0;
}

.section-header{
margin-bottom:35px;
}

.section-header h1,
.section-header h2{
font-size:31px;
line-height:1.15;
}

.section-header p{
font-size:16px;
line-height:1.5;
}

.whatsapp-float{
width:58px;
height:58px;
font-size:28px;
right:18px;
bottom:18px;
}

.mapa-section h3{
font-size:24px;
}

.mapa-container iframe{
height:300px;
}

/* Doctor SV móvil */

.pagina-doctor-sv,
.pagina-aseguradoras{
padding:45px 0 60px;
}

.pagina-doctor-sv .container,
.pagina-aseguradoras .container{
width:90%;
max-width:100%;
}

.pagina-doctor-sv .section-header,
.pagina-aseguradoras .section-header{
margin-bottom:30px;
}

.pagina-doctor-sv .aseguradoras-content,
.pagina-aseguradoras .aseguradoras-content{
display:grid;
grid-template-columns:1fr;
gap:28px;
}

.pagina-doctor-sv .aseguradoras-content img,
.pagina-aseguradoras .aseguradoras-content img{
width:100%;
max-width:100%;
border-radius:18px;
}

.pagina-doctor-sv .aseguradoras-texto,
.pagina-aseguradoras .aseguradoras-texto{
text-align:center;
align-items:center;
}

.pagina-doctor-sv .aseguradoras-texto h3,
.pagina-aseguradoras .aseguradoras-texto h3{
font-size:24px;
line-height:1.2;
}

.pagina-doctor-sv .aseguradoras-texto p,
.pagina-aseguradoras .aseguradoras-texto p{
font-size:15px;
line-height:1.55;
max-width:330px;
}

/* Servicios SEO móvil */

.pagina-servicios-seo{
padding:45px 0 60px;
}

.servicios-seo-grid{
grid-template-columns:1fr;
gap:50px;
}

.servicio-seo-item{
text-align:left;
}

.servicio-seo-item img{
border-radius:18px;
}

.servicio-seo-item h2{
font-size:26px;
}

.servicio-seo-item p{
font-size:15px;
line-height:1.65;
}

}

/* MÓVIL PEQUEÑO */

@media(max-width:420px){

.nav-content{
gap:14px;
font-size:14px;
}

.hero h1{
font-size:33px;
}

.hero p{
font-size:16px;
}

.quick-grid{
max-width:340px;
gap:12px;
}

.quick-card{
height:165px;
padding:12px 8px;
}

.quick-card img{
width:36px;
height:36px;
}

.quick-card h3{
font-size:15.5px;
}

.quick-card p{
font-size:11px;
}

.servicio-card,
.especialidad-card{
height:205px;
padding:16px 10px;
}

.servicio-card h3,
.especialidad-card h3{
font-size:16px;
}

.servicio-card p,
.especialidad-card p{
font-size:12px;
}

.counter-card{
height:180px;
}

.counter-card h3{
font-size:35px;
}

.contacto-card{
height:180px;
}

}
/* SERVICIOS SEO */

.pagina-servicios-seo{

padding:80px 0;
background:#fff;

}

.servicios-seo-grid{

display:grid;
grid-template-columns:repeat(2,1fr);
gap:70px 50px;

}

.servicio-seo-item{

display:flex;
flex-direction:column;

}

.servicio-seo-item img{

width:100%;
height:320px;
object-fit:cover;
border-radius:22px;

box-shadow:
0 15px 35px rgba(0,0,0,.10);

margin-bottom:25px;

}

.servicio-seo-texto h2{

font-size:30px;
color:#102542;
margin-bottom:15px;

}

.servicio-seo-texto p{

font-size:17px;
line-height:1.7;
color:#555;

}

@media(max-width:768px){

.servicios-seo-grid{

grid-template-columns:1fr;
gap:55px;

}

.servicio-seo-item img{

height:240px;

}

.servicio-seo-texto h2{

font-size:25px;

}

.servicio-seo-texto p{

font-size:15px;

}

}
/* ESPECIALIDADES SEO */

.pagina-especialidades-seo{

padding:80px 0;
background:#fff;

}

.especialidades-seo-grid{

display:grid;
grid-template-columns:repeat(2,1fr);
gap:70px 50px;

}

.especialidad-seo-item{

display:flex;
flex-direction:column;

}

.especialidad-seo-item img{

width:100%;
height:320px;
object-fit:cover;
border-radius:22px;

box-shadow:
0 15px 35px rgba(0,0,0,.10);

margin-bottom:25px;

}

.especialidad-seo-texto h2{

font-size:30px;
color:#102542;
margin-bottom:15px;

}

.especialidad-seo-texto p{

font-size:17px;
line-height:1.7;
color:#555;

}

@media(max-width:768px){

.especialidades-seo-grid{

grid-template-columns:1fr;
gap:55px;

}

.especialidad-seo-item img{

height:240px;

}

.especialidad-seo-texto h2{

font-size:25px;

}

.especialidad-seo-texto p{

font-size:15px;

}

}
/* FOOTER */

.footer-farela{

background:#ffffff;
padding:35px 0;
border-top:1px solid rgba(0,0,0,.08);

}

.footer-content{

display:flex;
justify-content:space-between;
align-items:center;
gap:35px;
text-align:center;

}

.footer-logo{

max-width:170px;
height:auto;
object-fit:contain;

}

.footer-content p{

font-size:14px;
color:#666;
font-weight:500;
margin:0;
flex:1;

}

/* móvil */

@media(max-width:768px){

.footer-content{

flex-direction:column;
gap:20px;

}

.footer-logo{

max-width:150px;

}

.footer-content p{

font-size:13px;
line-height:1.5;

}

}