/* ===== A&I ASESORÍA EN AHORRO E INVERSIÓN ===== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Open+Sans:wght@300;400;600&display=swap');

:root {
  --brown:        #5c3317;
  --brown-dark:   #3a1f0b;
  --brown-mid:    #7a4520;
  --orange:       #e8940a;
  --orange-light: #f5a623;
  --cream:        #faf6f0;
  --white:        #ffffff;
  --text:         #2a1a0a;
  --text-muted:   #6b5a4a;
  --border:       #ddd0c0;
  --sidebar-bg:   #f7f0e8;
  --radius:       4px;
  --transition:   0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Open Sans', Arial, sans-serif; color: var(--text); background: var(--cream); font-size: 14px; line-height: 1.7; }
img { max-width: 100%; display: block; }
a { color: var(--orange); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--brown); text-decoration: underline; }
p { margin-bottom: 0.85rem; }
h1,h2,h3,h4 { font-family: 'Playfair Display', Georgia, serif; line-height: 1.3; }

/* ===== TOP BAR ===== */
.topbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  text-align: center;
  padding: 6px 1rem;
  font-size: 1.2rem;
  font-family: 'Playfair Display', serif;
  color: var(--orange);
  letter-spacing: 0.1em;
}

/* ===== NAVBAR ===== */
.navbar {
  background: var(--white);
  border-bottom: 2px solid var(--border);
}
.navbar__inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  height: 46px;
}
.navbar__links {
  display: flex;
  list-style: none;
  gap: 0;
}
.navbar__links a {
  display: block;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0 0.85rem;
  line-height: 46px;
  text-decoration: none;
  border-right: 1px solid var(--border);
  transition: background var(--transition), color var(--transition);
}
.navbar__links li:first-child a { border-left: 1px solid var(--border); }
.navbar__links a:hover,
.navbar__links a.active {
  background: var(--orange);
  color: var(--white);
  text-decoration: none;
}
.navbar__logo {
  width: 52px;
  height: 40px;
  object-fit: cover;
  border: 2px solid var(--brown);
  border-radius: 2px;
}

/* hamburger */
.navbar__toggle { display:none; flex-direction:column; gap:5px; cursor:pointer; background:none; border:none; padding:4px; }
.navbar__toggle span { width:22px; height:2px; background:var(--text); border-radius:2px; }

/* ===== HERO BANNER ===== */
.hero-banner {
  width: 100%;
  display: block;
  background: var(--brown-dark);
}
.hero-banner img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== PAGE HERO (interior pages) ===== */
.page-hero-img {
  background: var(--brown-dark);
  padding: 0;
}
.page-hero-img img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== TAGLINE BAR ===== */
.tagline-bar {
  background: var(--white);
  text-align: center;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text);
}
.tagline-bar strong { color: var(--orange); }

/* ===== MAIN LAYOUT ===== */
.site-body {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 2rem;
  align-items: start;
}
.main-content { min-width: 0; }
.sidebar {}

/* ===== SIDEBAR ===== */
.sidebar-box {
  background: var(--sidebar-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
}
.sidebar-box h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--brown);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--orange);
}
.sidebar-box p { margin-bottom: 0.4rem; }
.sidebar-box a { color: var(--orange); font-weight: 600; font-size: 1rem; }
.sidebar-box a:hover { color: var(--brown); }
.sidebar-map { width: 100%; border: 0; border-radius: var(--radius); margin-top: 0.5rem; }

/* ===== CONTENT STYLES ===== */
.main-content h2 {
  font-size: 1.1rem;
  color: var(--brown);
  margin: 1.5rem 0 0.6rem;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border);
}
.main-content h2:first-child { margin-top: 0; }
.main-content ul { padding-left: 1.4rem; margin-bottom: 0.85rem; }
.main-content li { margin-bottom: 0.3rem; color: var(--text-muted); font-size: 0.9rem; }
.main-content strong { color: var(--text); }
.main-content p { font-size: 0.92rem; color: var(--text-muted); }

/* ===== INTRO DESTACADA ===== */
.intro-highlight {
  text-align: center;
  padding: 1rem 1.5rem 1.25rem;
  background: var(--white);
  border-top: 3px solid var(--orange);
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
}
.intro-highlight p { margin: 0; }
.intro-highlight strong { color: var(--orange); }

/* ===== CARDS DE SERVICIOS ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.card:hover { border-color: var(--orange); box-shadow: 0 2px 12px rgba(232,148,10,0.12); }
.card__icon { font-size: 1.4rem; margin-bottom: 0.5rem; }
.card h3 { font-size: 0.88rem; color: var(--brown); margin-bottom: 0.4rem; font-family: 'Open Sans', sans-serif; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.card p { font-size: 0.82rem; color: var(--text-muted); margin: 0; }

/* ===== CREDENCIALES ===== */
.creds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}
.cred-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--orange);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-size: 0.83rem;
}
.cred-item p { margin: 0; color: var(--text-muted); }

/* ===== FAQ ===== */
.faq-list { display: flex; flex-direction: column; gap: 0.6rem; }
.faq-item { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-question {
  width:100%; text-align:left; padding: 0.85rem 1rem;
  background:none; border:none; cursor:pointer;
  display:flex; justify-content:space-between; align-items:center;
  font-family: 'Open Sans', sans-serif; font-size: 0.88rem; font-weight: 600;
  color: var(--brown); transition: background var(--transition);
}
.faq-question:hover { background: var(--sidebar-bg); }
.faq-icon { color: var(--orange); font-size: 1.1rem; transition: transform 0.25s; flex-shrink: 0; margin-left: 0.5rem; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer { display:none; padding: 0 1rem 0.85rem; font-size:0.87rem; color:var(--text-muted); border-top:1px solid var(--border); padding-top: 0.75rem; }
.faq-item.open .faq-answer { display:block; }

/* ===== CONTACTO FORM ===== */
.form-group { margin-bottom: 0.85rem; }
.form-group label { display:block; font-size:0.78rem; font-weight:600; color:var(--text-muted); text-transform:uppercase; letter-spacing:0.05em; margin-bottom:0.3rem; }
.form-group input, .form-group textarea {
  width:100%; border:1px solid var(--border); border-radius:var(--radius);
  padding:0.55rem 0.8rem; font-family:inherit; font-size:0.88rem; color:var(--text);
  background:var(--white); transition:border-color var(--transition);
}
.form-group input:focus, .form-group textarea:focus { outline:none; border-color:var(--orange); }
.form-group textarea { resize:vertical; min-height:100px; }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:0.75rem; }
.btn-submit {
  background: var(--orange); color: var(--white); border: none; cursor: pointer;
  padding: 0.7rem 2rem; border-radius: var(--radius); font-family:inherit;
  font-weight:600; font-size:0.88rem; transition:background var(--transition);
}
.btn-submit:hover { background: var(--brown); }

/* ===== MAP BOX ===== */
.address-item { margin-bottom: 1rem; }
.address-item h4 { font-size: 0.82rem; font-weight: 600; color: var(--brown); margin-bottom: 0.25rem; text-transform: uppercase; letter-spacing: 0.04em; }
.address-item p { font-size: 0.82rem; color: var(--text-muted); margin: 0 0 0.35rem; }
.map-link {
  display: inline-block; font-size: 0.78rem; background: var(--orange);
  color: var(--white); padding: 0.3rem 0.75rem; border-radius: 100px;
  font-weight: 600; text-decoration: none; margin-top: 0.2rem;
}
.map-link:hover { background: var(--brown); color: var(--white); text-decoration: none; }

/* ===== FOOTER ===== */
.footer {
  background: var(--brown-dark);
  color: rgba(255,255,255,0.6);
  text-align: center;
  padding: 1rem;
  font-size: 0.78rem;
  border-top: 3px solid var(--orange);
  margin-top: 2rem;
}
.footer a { color: rgba(255,255,255,0.7); }
.footer a:hover { color: var(--orange); }

/* ===== RESPONSIVE ===== */
@media (max-width: 700px) {
  .site-body { grid-template-columns: 1fr; }
  .sidebar { order: -1; }
  .navbar__links { display:none; flex-direction:column; position:absolute; top:46px; left:0; right:0; background:var(--white); border-bottom:2px solid var(--border); z-index:999; }
  .navbar__links.open { display:flex; }
  .navbar__links a { border-right:none; border-bottom:1px solid var(--border); line-height:2.5; padding-left:1.5rem; }
  .navbar__links li:first-child a { border-left:none; }
  .navbar__toggle { display:flex; }
  .navbar__inner { position: relative; }
  .form-row { grid-template-columns: 1fr; }
}

/* Estilo para la foto de perfil profesional centrada */
.foto-perfil-profesional {
  display: block;
  margin: 0 auto 1.5rem auto; /* Centra la imagen y le da espacio abajo */
  width: 180px;               /* Puedes ajustar el tamaño aquí (ej. 150px o 200px) */
  height: auto;
  border-radius: var(--radius, 8px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

/* Adaptación para pantallas móviles */
@media (max-width: 600px) {
  .foto-perfil-profesional {
    float: none;
    display: block;
    margin: 0 auto 1.25rem auto;
    width: 180px;
  }
}