/* ============================================================
   BASE
   ============================================================ */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 4rem;
}

/* ============================================================
   HERO BACKGROUND
   ============================================================ */
.hero-bg {
  background-image: url('foto_entrada_principal.jpg');
  background-size: cover;
  background-position: center;
}

/* ============================================================
   NAVBAR
   ============================================================ */
#navbar {
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

#navbar.scrolled {
  background-color: #ffffff;
  box-shadow: 0 1px 16px rgba(0, 0, 0, 0.07);
}

/* Nav links — white on hero, dark on scroll */
.nav-link {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
  position: relative;
  padding-bottom: 3px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #3A8FB5;
  transition: width 0.25s ease;
}

.nav-link:hover {
  color: #3A8FB5;
}

.nav-link:hover::after {
  width: 100%;
}

#navbar.scrolled .nav-link {
  color: #1a1a1a;
}

#navbar.scrolled .nav-link:hover {
  color: #3A8FB5;
}

/* Logo: neutral in white navbar, slightly bright on dark hero */
.nav-logo {
  height: 2.75rem;
  width: auto;
  transition: filter 0.3s;
}

/* Hamburger icon inherits color from SVG stroke="currentColor" */
.hamburger-icon {
  color: white;
  transition: color 0.3s;
}

#navbar.scrolled .hamburger-icon {
  color: #1a1a1a;
}

/* ============================================================
   BUTTON
   ============================================================ */
.btn-primary {
  display: inline-block;
  background-color: #3A8FB5;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 0.875rem 2.5rem;
  border-radius: 3px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.2s ease, transform 0.1s ease;
  -webkit-appearance: none;
  appearance: none;
}

.btn-primary:hover {
  background-color: #2d7a9e;
}

.btn-primary:active {
  transform: scale(0.985);
}

.btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

/* ============================================================
   SERVICE CARDS
   ============================================================ */
.service-card {
  padding: 2.5rem 2rem;
  background: #ffffff;
  border: 1px solid #e4e8ec;
  border-top: 3px solid #3A8FB5;
  transition: box-shadow 0.25s ease;
}

.service-card:hover {
  box-shadow: 0 6px 28px rgba(58, 143, 181, 0.1);
}

/* ============================================================
   TE HABLO CLARO
   ============================================================ */
.section-eyebrow {
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #3A8FB5;
}

.conditions-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.conditions-list li {
  position: relative;
  padding-left: 2rem;
  font-size: 1rem;
  line-height: 1.75;
  color: #444;
}

.conditions-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  top: 0;
  color: #3A8FB5;
  font-weight: 700;
}

/* ============================================================
   PROFILE PHOTO
   ============================================================ */
.profile-photo {
  width: 220px;
  height: 220px;
  object-fit: cover;
  object-position: center top;
  display: block;
  border-radius: 50%;
  margin: 0 auto;
}

@media (max-width: 767px) {
  .profile-photo {
    width: 160px;
    height: 160px;
  }
}

/* ============================================================
   CONTACT FORM
   ============================================================ */
.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.4rem;
  letter-spacing: 0.01em;
}

.form-input {
  display: block;
  width: 100%;
  padding: 0.75rem 0.875rem;
  border: 1.5px solid #d0d5dd;
  border-radius: 3px;
  font-size: 0.9375rem;
  font-family: inherit;
  color: #1a1a1a;
  background: #ffffff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.form-input:focus {
  border-color: #3A8FB5;
  box-shadow: 0 0 0 3px rgba(58, 143, 181, 0.13);
}

.form-input::placeholder {
  color: #adb5bd;
}

/* ============================================================
   CONTACT INFO
   ============================================================ */
.contact-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #3A8FB5;
  margin-bottom: 0.3rem;
}

.contact-value {
  display: block;
  font-size: 1.0625rem;
  color: #1a1a1a;
  text-decoration: none;
}

.contact-link {
  transition: color 0.2s;
}

.contact-link:hover {
  color: #3A8FB5;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer-logo {
  mix-blend-mode: screen;
  opacity: 0.85;
}

.footer-link {
  text-decoration: none;
  transition: color 0.2s;
}

.footer-link:hover {
  color: rgba(255, 255, 255, 0.9);
}
