@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:wght@600;700&display=swap');

*{ box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
font-family: 'Inter', sans-serif;
background-color: #e2e2ec;
color: #18154a;
display: flex;
flex-direction: column;
align-items: center;
overflow-x: hidden;
width: 100%;
}

h1, h2, h3, h4 { font-family: 'Playfair Display', serif; }
a { text-decoration: none; color: inherit; }

@keyframes slideInDown {
from { opacity: 0; transform: translateY(-60px); }
to { opacity: 1; transform: translateY(0); }
}

/* ==================================
HEADER
================================== */
.site-header {
width: 100%;
background-color: #ffffff;
min-height: 82px;
display: flex;
justify-content: center;
align-items: center;
box-shadow: 0 2px 5px rgba(0,0,0,0.05);
position: sticky;
top: 0;
z-index: 1000;
animation: slideInDown 0.8s ease forwards;
}
.header-container { width: 100%; max-width: 1200px; display: flex; justify-content: space-between; align-items: center; padding: 0 20px; }

.logo { display: flex; align-items: center; gap: 12px; font-size: 28px; font-weight: 600; color: #18154a; transition: transform 0.3s ease; }
.logo img { height: 48px; }
.logo:hover { transform: scale(1.05); }

.dropdown{
position: relative;
display: inline-block;
}

.dropdown-menu{
position:absolute;
top:100%;
left:50%;
transform:translateX(-50%);
margin-top:15px;
min-width:190px;
background:#fff;
border-radius:12px;
box-shadow:0 10px 30px rgba(0,0,0,.15);
overflow:hidden;
opacity:0;
visibility:hidden;
transition:.25s;
z-index:999;
}

.dropdown:hover .dropdown-menu{
opacity:1;
visibility:visible;
margin-top:8px;
}

.dropdown-menu a{
display:block;
padding:14px 20px;
color:#1e2a78;
text-decoration:none;
font-weight:500;
transition:.2s;
}

.dropdown-menu a:hover{
background:#a9cef0;
color:#fff;
}

.nav-menu a:not(.btn-contact) {
font-size: 16px;
font-weight: 500;
color: #18154a;
position: relative;
transition: color 0.3s ease;
padding-bottom: 4px;
}

.nav-menu a:not(.btn-contact)::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 0;
height: 2px;
background-color: #c99700;
transition: width 0.3s ease;
}

.nav-menu a:not(.btn-contact):hover::after,
.nav-menu a.active::after {
width: 100%;
}

.nav-menu a.active {
color: #c99700;
font-weight: 600;
}
.nav-menu {
display: flex;
align-items: center;
gap: 30px;
margin: 0;
padding: 0;
list-style: none;
}

.nav-link {
font-size: 16px;
font-weight: 500;
color: #18154a;
position: relative;
transition: color 0.3s ease;
text-decoration: none;
display: inline-flex;
align-items: center;
}

.nav-link::after {
content: '';
position: absolute;
bottom: -2px;
left: 0;
width: 0;
height: 2px;
background-color: #c99700;
transition: width 0.3s ease;
}

.nav-link:hover::after {
width: 100%;
}

.nav-link.active::after {
width: 100%;
}
.nav-menu li {
display: flex;
align-items: center;
}
.btn-contact {
background-color: #c99700;
color: white !important;
padding: 10px 25px;
border-radius: 50px;
font-weight: 600;
font-size: 16px;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
position: relative;
overflow: hidden;
}
.btn-contact::before {
content: '';
position: absolute;
top: 0; left: -100%;
width: 100%; height: 100%;
background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
transition: left 0.5s ease;
}
.btn-contact:hover {
background-color: #aa7f00;
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(201, 151, 0, 0.3);
}
.btn-contact:hover::before { left: 100%; }

/* ==================================
HERO SEGUROS
================================== */
.hero-barrios {
width: 100%;
height: 350px;
position: relative;
overflow: hidden;
background-color: #cfd1e4;
}
.hero-barrios img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-overlay { position: absolute; inset: 0; background: rgba(30, 42, 120, 0.75); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 20px; }
.hero-overlay h1 { color: white; font-size: 64px; margin-bottom: 10px; }
.hero-overlay p { font-family: 'Inter', sans-serif; color: rgba(255,255,255,0.9); font-size: 20px; max-width: 800px; }

/* ==================================
INTRODUCCIÓN
================================== */
.intro-section { width: 100%; max-width: 1200px; padding: 60px 20px; }
.intro-container { display: grid; grid-template-columns: 1.6fr 0.9fr; gap: 50px; align-items: center; }
.intro-container p { font-size: 18px; line-height: 1.6; color: #333; font-weight: 300; text-align: justify; }

.intro-image {
display: flex;
justify-content: center;
align-items: center;
}
.intro-image img {
width: 100%;
max-width: 450px;
border-radius: 20px;
box-shadow: 0 10px 30px rgba(30, 42, 120, 0.1);
object-fit: cover;
}

/* ==================================
COBERTURAS
================================== */
.coverage-section { width: 100%; max-width: 1200px; padding: 0 20px 80px; }
.coverage-section h2 {
font-size: 40px; color: #1e2a78; text-align: center; margin-bottom: 45px;
}
.services-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 24px;
}
.service-card {
background: #ffffff;
border-radius: 20px;
padding: 28px 24px;
display: flex;
align-items: center;
gap: 18px;
box-shadow: 0 5px 20px rgba(0,0,0,0.05);
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
transform: translateY(-5px);
box-shadow: 0 12px 30px rgba(30,42,120,0.12);
}
.service-icon {
width: 52px; height: 52px; border-radius: 50%;
background: rgba(201, 151, 0, 0.12);
display: flex; align-items: center; justify-content: center;
flex-shrink: 0;
overflow: hidden;
font-size: 24px;
}
.service-icon img { width: 26px; height: 26px; object-fit: contain; }
.service-card span { font-weight: 600; font-size: 16px; color: #18154a; }

/* ==================================
NUEVOS REFERENTES
================================== */
.team-section { width: 100%; max-width: 1200px; padding: 20px 20px 80px; text-align: center; }
.team-section h2 { font-size: 40px; color: #1e2a78; margin-bottom: 20px; }
.team-intro {
font-size: 18px;
line-height: 1.6;
color: #333;
font-weight: 300;
max-width: 800px;
margin: 0 auto 50px;
}
.team-grid {
display: flex;
justify-content: center;
gap: 80px;
flex-wrap: wrap;
}
.team-card {
display: flex;
flex-direction: column;
align-items: center;
width: 280px;
}
.team-photo {
width: 220px;
height: 220px;
border-radius: 50%;
background-color: #cfd1e4; /* Fondo gris/azulado si no hay foto */
margin-bottom: 20px;
overflow: hidden;
box-shadow: 0 8px 25px rgba(30,42,120,0.15);
}
.team-photo img {
width: 100%;
height: 100%;
object-fit: cover;
}
.team-card h3 {
font-size: 26px;
color: #18154a;
margin-bottom: 8px;
}
.team-card .team-role {
font-size: 16px;
color: #c99700;
font-weight: 600;
font-family: 'Inter', sans-serif;
}

/* ==================================
CTA
================================== */
.cta-section { width: 100%; max-width: 1200px; padding: 0 20px 80px; }
.cta-container {
background: #1e2a78;
border-radius: 20px;
padding: 60px 40px;
text-align: center;
color: #fff;
}
.cta-container h2 { font-size: 38px; margin-bottom: 14px; color: #fff; }
.cta-container p { font-family: 'Inter', sans-serif; font-size: 15px; color: rgba(255,255,255,0.85); max-width: 650px; margin: 0 auto 15px; line-height: 1.6; font-weight: 300; }
.cta-btn {
background-color: #c99700;
color: #18154a;
border: none;
padding: 14px 36px;
border-radius: 50px;
font-weight: 600;
font-size: 16px;
cursor: pointer;
transition: all 0.3s ease;
}
.cta-btn:hover { background-color: #aa7f00; color: #fff; transform: translateY(-2px); }

/* ==================================
FOOTER
================================== */
.site-footer { width: 100%; background-color: #ffffff; padding: 25px 0; margin-top: auto; }
.footer-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; }
.footer-left { display: flex; align-items: center; gap: 40px; }
.footer-brand { font-size: 32px; font-weight: 700; color: #18154a; letter-spacing: 1px; }
.footer-address { font-size: 14px; color: #666; line-height: 1.5; }
.footer-address strong { color: #18154a; font-weight: 600; display: block; margin-bottom: 2px; }
.footer-right { display: flex; align-items: center; gap: 30px; }
.footer-contact-link { display: flex; flex-direction: column; align-items: center; gap: 6px; color: #18154a; font-size: 13px; font-weight: 500; transition: all 0.3s ease; }
.footer-contact-link:hover { color: #c99700; transform: translateY(-3px); }
.footer-wp-icon { width: 28px; height: 28px; object-fit: contain; }
.footer-logo { height: 60px; width: 60px; object-fit: contain; }

/* ==================================
ESTILOS EXTRA PARA LA HISTORIA
================================== */
.historia-quote {
background: #fff;
border-left: 4px solid #c99700;
padding: 20px 25px;
margin-top: 20px;
border-radius: 0 12px 12px 0;
font-style: italic;
color: #1e2a78;
font-weight: 500;
box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

/* ==================================
RESPONSIVE
================================== */
@media (min-width: 1440px) {
.header-container, .hero-container, .about-container, .services-section,
.contact-section, .footer-container { max-width: 1320px; }
}

@media (max-width: 992px) {
.nav-menu { gap: 15px; }
.intro-container { grid-template-columns: 1fr; text-align: center; }
.historia-quote { text-align: left; }
.team-grid { gap: 40px; }
.footer-container { flex-direction: column; gap: 30px; text-align: center; }
.footer-left, .footer-right { flex-direction: column; gap: 15px; }
}

@media (max-width: 768px) {
.services-grid {
grid-template-columns: 1fr;
flex-wrap: nowrap !important;
overflow-x: auto;
overflow-y: hidden;
display: flex;
padding-bottom: 15px;
scroll-snap-type: x mandatory;
-webkit-overflow-scrolling: touch;
justify-content: flex-start;
}
.service-card {
flex: 0 0 auto;
width: 260px;
scroll-snap-align: center;
}
}

@media (max-width: 480px) {
.logo { font-size: 24px; }
.nav-link { font-size: 14px; }
.btn-contact { padding: 8px 20px; font-size: 14px; }
.hero-overlay h1 { font-size: 34px; }
.hero-overlay p { font-size: 15px; }
.coverage-section h2 { font-size: 26px; }
.team-section h2 { font-size: 26px; }
.cta-container h2 { font-size: 26px; }
.cta-container { padding: 40px 24px; }
.footer-brand { font-size: 26px; }
}