/* -------------------------------------
   Tipografía y estilos generales
---------------------------------------- */
body {
  font-family: 'Lora', serif;
  font-size: 16px;
  line-height: 1.4;
  color: #333;
  /*padding-top: 80px; /* Ajustado para header sticky */
  scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  color: #002855; /* Azul oscuro */
  font-weight: 700;
}

h2 {
  color: #002855;
}

ul li {
  margin-bottom: 0.5rem;
}

/* -------------------------------------
   Header y navegación
---------------------------------------- */
.main-header {
  background-color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1030;
  min-height: 70px;
  padding: 0.1rem 0;
}

.logo-img {
  height: 65px;
  width: auto;
  margin-top: 10px;
}

.nav-link {
  transition: color 0.3s ease;
  font-weight: 450;
  font-size: 1rem;
  /*padding: 0.6rem 1rem;*/
  margin-top: 20px;
}

.hover-link:hover {
  color: #0056b3 !important;
}

/* -------------------------------------
   Secciones generales
---------------------------------------- */
section[id] {
  scroll-margin-top: 135px; /* Compensa header fijo */
  background-color: rgba(0, 20, 50, 0.95);
}

.container .card-text{
  text-align: justify;
}
.py-5 {
  padding-top: 6rem !important;
  padding-bottom: 3rem !important;
}

/* -------------------------------------
   Hero (carousel)
---------------------------------------- */
.hero-section .carousel-item {
  height: 85vh;
  min-height: 500px;
  overflow: hidden;
  position: relative;
}

.hero-section .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(60%);
}

.carousel-caption {
  bottom: 20%;
  left: 10%;
  right: auto;
  text-align: left;
  max-width: 600px;
}

.carousel-caption h1 {
  font-size: 2.5rem;
  line-height: 1.3;
  color: #fff;
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.6);
}

.carousel-caption .highlight {
  color: #d0d6df;
  font-style: italic;
}

.carousel-caption p {
  font-size: 1.2rem;
  margin-top: 1rem;
  color: #eaeaea;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* Responsive textos en Hero */
@media (max-width: 768px) {
  .carousel-caption h1 {
    font-size: 1.5rem;
  }
  .carousel-caption p {
    font-size: 1rem;
  }
}

/* -------------------------------------
   Servicios
---------------------------------------- */
.servicio-card {
  position: relative;
  overflow: hidden;
  border: 3px solid transparent; /* Borde inicial transparente */
  border-radius: 16px;
  transition: transform 1s, box-shadow 1s, border-color 0.3s ease; /* Transición suave en el borde */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.servicio-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  border-color: #ffffff; /* Borde blanco al pasar el mouse */
}

.servicio-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.card-title {
  color: #002855;
}

.card-text {
  margin-bottom: 0.5rem;
}

.card ul {
  padding-left: 1.2rem;
}

.servicio-title-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  font-size: 1.2rem;
  font-weight: bold;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.servicio-body {
  background-color: white;
  padding: 20px;
  position: relative;
  z-index: 1;
}

.servicio-list-overlay {
  position: absolute;
  bottom: -100%;
  left: 0;
  width: 100%;
  background: rgba(0, 20, 50, 0.95);
  color: white;
  padding: 20px;
  transition: bottom 0.4s ease-in-out;
  border: rgba(0, 20, 50, 0.95);
  z-index: 3;
}

.servicio-card:hover .servicio-list-overlay,
.servicio-card:focus-within .servicio-list-overlay {
  bottom: 0;
}

.servicio-list-overlay ul {
  padding-left: 22px;
  margin: 0;
}

.servicio-list-overlay li {
  margin-bottom: 6px;
}


/* -------------------------------------
   Contacto
---------------------------------------- */
.contacto-section {
  position: relative;
  background-image: url('../Img/oficina-logo.jpg');
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  padding: 100px 0;
  overflow: hidden;
  z-index: 1;
}

.contacto-section .overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(30, 30, 30, 0.8);
  z-index: 1;
}

.contacto-section .container {
  position: relative;
  z-index: 2;
}

.contact-box {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 12px;
  color: #f1f1f1;
  backdrop-filter: blur(3px);
  transition: all 0.3s ease;
}

.contact-box:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
}

.contact-box h5 {
  font-family: 'Lora', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.contact-box p,
.contact-box ul {
  font-family: 'Roboto', sans-serif;
  font-size: 0.95rem;
  color: #e0e0e0;
}

.contact-box ul li {
  list-style: none;
  position: relative;
  padding-left: 18px;
  margin-bottom: 5px;
}

.contact-box ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #aaa;
}

/* Íconos */
#contacto i {
  color: #21252914;
  margin-right: 0.5rem;
}

/* -------------------------------------
   Botón WhatsApp
---------------------------------------- */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  height: 60px;
  width: 60px;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  text-decoration: none; 
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background-color: #20bd5f;
}

/* -------------------------------------
   Footer
---------------------------------------- */
footer {
  background-color: #1c1c1c;
  color: #ccc;
  padding: 40px 0;
}

/* -------------------------------------
   Media Queries
---------------------------------------- */
@media (max-width: 768px) {
  .logo-img {
    height: 50px;
  }
}
