/* Header fijo con sombra */
.navbar {
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.navbar-nav .nav-link {
  font-size: 1.4rem;   /* tamaño más grande */
  font-weight: 600;    /* más grueso para destacar */
  letter-spacing: 0.5px; /* separación entre letras */
  padding: 10px 15px;  /* más espacio alrededor */
}
.navbar .nav-link.active {
  text-decoration: underline;
  text-underline-offset: 5px; /* separa el subrayado del texto */
  font-weight: bold;          /* opcional, para destacarlo más */
}
/* Hero con fondo y overlay */
.hero {
  background-image: url('img/superior.png'); /* tu foto */
  background-size: cover; /* que ocupe todo el espacio */
  background-position: center; /* centrada */
  background-repeat: no-repeat;
  animation: moverFondo 20s infinite alternate ease-in-out;
  height: 100vh; /* ocupa toda la pantalla */
  position: relative;
  color: white;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  /* este padding evita que el header tape el logo */
  padding-top: 110px; /* ajustá según el tamaño del logo del header */
}
.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
}
.hero-content {
  position: relative;
  animation: fadeIn 2s ease-in-out;
}
@keyframes moverFondo {
  0%   { background-position: center top; }
  50%  { background-position: center center; }
  100% { background-position: center bottom; }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
html {
  scroll-padding-top: 70px; /* altura de la navbar */
}
@media (max-width: 768px) {
  body {
    padding-top: 100px; /* ajustá según la altura real de la navbar en móvil */
  }
  html {
    scroll-padding-top: 90px;
  }
  #hero {
    margin-top: 120px;   /* baja la sección 90px en móviles */
  }
}
html, body {
  margin: 0;
  padding: 0;
}
/* Botón con efecto hover */
.btn-custom {
  background-color: #2c3e50; /* azul grisáceo sobrio */
  color: #fff;              /* texto blanco */
  border: none;
  padding: 12px 24px;
  font-size: 1.1rem;
  font-weight: 500;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}
.btn-custom:hover {
  background-color: #1a252f; /* tono más oscuro al pasar el mouse */
  color: #f5d76e;           /* dorado claro en hover */
}

h2 {
  color: #2c3e50; /* azul sobrio */
  border-bottom: 3px solid #f5d76e; /* línea dorada */
  display: inline-block;
  padding-bottom: 5px;
}

/* Tarjetas hover 
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
} */
.card:hover {
  transform: scale(1.02);
  cursor: pointer;
  transition: transform 0.2s ease;
}
.card-hover:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
.card-img-top {
  height: 250px;
  object-fit: cover;
}

/* WhatsApp fijo más redondeado */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;       /* círculo perfecto */
  width: 60px;              /* ancho fijo */
  height: 60px;             /* alto fijo */
  display: flex;            /* centrado del ícono */
  align-items: center;
  justify-content: center;
  font-size: 32px;          /* tamaño del ícono */
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
  z-index: 1000;
}
.whatsapp-float:hover {
  transform: scale(1.15);
  color: white;
  text-decoration: none;
}
.logo-header {
  height: 55px; /* antes 55px */
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.3));
  transition: transform 0.3s ease;
}
.logo-header:hover {
  transform: scale(1.05);
}
/* Logo en el hero */
.logo-hero {
  width: 300px; /* antes 180px 450 500	*/
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.4));
  animation: fadeInDown 1.5s ease;
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}
/* Logo en el footer */
footer img {
  height: 70px; /* más grande para cerrar con fuerza */
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}
.brand-container {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  height: 70px;
}

.brand-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: #f5d76e; /* dorado claro */
  font-weight: 600;
  letter-spacing: 1px;
}
.nosotros {
  position: relative;
  background-image: url('img/estudio.png'); /* tu foto */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 80px 20px;
  color: white;
}

.nosotros::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0,0,0,0.4); /* oscurece la foto para que el texto se lea mejor */
}

.nosotros .contenido {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: auto;
  text-align: center;
}
#nosotros { min-height: 500px; }

  /* Estilos del splash */
  #splash {
    position: fixed;
    top: 0; left: 0;
    width: 100%; 
    height: 100vh; /* ocupa el alto real de la ventana */
    background: #000; /* fondo negro */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 1s ease; /* animación fade-out */
  }
  #splash img {
    display: block;
    max-width: 60%; /* tamaño normal en escritorio */
    height: auto;
  }
  #splash.hidden {
    opacity: 0;
    pointer-events: none;
  }

  /* 📱 Ajuste para móviles */
  @media (max-width: 768px) {
    #splash {
      justify-content: flex-start; /* alinea hacia la izquierda */
      padding-left: 20px;          /* espacio desde el borde izquierdo */
    }
    #splash img {
      display: none; /* el logo no aparece en pantallas chicas */
      /* max-width: 80%;  achica el logo en pantallas chicas */
    }
  }

