main {
  padding: 0 10px;
}

body {
  background-color: rgba(255, 255, 255, 1);
}

/* Header */
.navbar-custom {
  padding: 0.5rem 10px;
  background-color: rgba(255, 255, 255, 1);
}

.nav-link {
  transition: transform 0.3s ease, color 0.3s ease;
}

.nav-link:hover {
  transform: translateY(-4px);
  color: #d62828;
}

.navbar-nav .nav-link,
.dropdown {
  color: #C94C4C !important;
  font-weight: 500;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link.active {
  color: #8A1C1C !important;
}

.navbar-brand img {
  height: 100px;
  width: auto;
}

/* Home */
.btn-center {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding: 0 1rem;
}

.btn-dark-red {
  background-color: #DC143C !important;
  border: 2px solid #DC143C;
  color: white !important;
  transition: all 0.3s ease;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

.btn-dark-red:hover {
  background-color: white;
  color: #DC143C;
  border-color: #DC143C;
}

.btn-dark-blue {
  background-color: #053EFF !important;
  border: 2px solid #053EFF;
  color: white !important;
  transition: all 0.3s ease;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

.btn-dark-blue:hover {
  background-color: white;
  color: #053EFF;
  border-color: #053EFF;
}

/* Quienes Somos */
.quienes-title {
  color: #8A1C1C;
  font-weight: bold;
  margin-bottom: 1rem;
  font-size: 2rem;
}

.quienes-subtitle {
  color: #8A1C1C;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.quienes p {
  color: #333;
  line-height: 1.6;
}

.foto-con-fondo {
  background-color: #DC143C;
  border-radius: 10px;
  text-align: center;
  color: white;
}

.img-persona {
  max-width: 120px;
  height: auto;
  border-radius: 10px;
  display: block;
  margin: 0 auto;
}

.nombre h4 {
  font-size: 1.25rem;
  font-weight: bold;
  color: #333;
}

.cargo {
  font-style: italic;
  color: #8A1C1C;
  font-weight: 500;
}

.descripcion {
  line-height: 1.2;
  color: #444;
}

/* Contacto */
.half-circle {
  width: 500px;
  height: 500px;
  background: #c8102e;
  border-radius: 100% 100% 0 0;
  position: absolute;
  top: -100px;
  left: -250px;
  transform: rotate(90deg);
  z-index: 0;
}

.col-md-6.position-relative {
  position: relative !important;
}

.pill-icon {
  background: white;
  color: #c8102e;
  border-radius: 30px;
  padding: 6px 25px;
  right: 15%;
  width: 50%;
  align-items: center;
  gap: 30px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 2;
}

.pill-icon:not(:last-child) {
  margin-bottom: 55px;
}

.btn-outline-dark-red {
  border: 2px solid #8B0000;
  color: #8B0000;
  background-color: transparent;
}

.btn-outline-dark-red:hover {
  background-color: #8B0000;
  color: #fff;
}

/* Portafolio */
.card-container {
  padding: 2rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4rem;
}

.card-one {
  background-color: #c8102e !important;
  color: white;
  border: none;
  border-radius: 0.5rem;
  overflow: hidden;
}

.card-one .card-title,
.card-one .card-text {
  color: white;
}

.card-one .btn {
  color: #c8102e;
  background-color: white;
  border: none;
  font-weight: bold;
  transition: background-color 0.3s;
}

.card-one .btn:hover {
  background-color: #ffe5e9;
  color: #a1001f;
}

/* Footer */
footer {
  background: #000000;
}

.fecha-link {
  display: inline-block;
  padding: 6px 12px;
  background-color: #8B0000;
  color: white;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: bold;
  font-size: 14px;
  border-radius: 6px;
  text-decoration: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  user-select: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.fecha-link:hover {
  background-color: #c8102e;
  text-decoration: underline;
}


/* Estilos para el FAB (botón flotante) */
.fab {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000; /* Asegura que esté por encima de otros elementos */
  transition: transform 0.3s ease; /* Para animaciones suaves */
}

/* Opcional: efecto al pasar el mouse */
.fab button:hover {
  transform: scale(1.1);
}
/* ================== RESPONSIVE PARA TABLETS Y PANTALLAS MEDIANAS (= 1024px) ================== */
@media (max-width: 1024px) {
  main {
    padding: 0 20px;
  }

  .navbar-custom {
    padding: 0.5rem 20px;
  }

  .navbar-brand img {
    height: 80px;
  }

  .btn-center {
    gap: 1.5rem;
    padding: 0 0.5rem;
  }

  .quienes-title {
    font-size: 1.8rem;
  }

  .quienes-subtitle {
    font-size: 1.1rem;
  }

  .quienes p {
    font-size: 1rem;
  }

  .pill-icon {
    padding: 10px 25px;
    font-size: 1rem;
    width: 80%;
    margin: 0 auto 20px auto;
  }

  .img-persona {
    max-width: 100px;
  }

  .nombre h4 {
    font-size: 1.1rem;
  }

  .descripcion {
    font-size: 0.9rem;
  }

  .card-container {
    gap: 2rem;
  }

  .card-one .btn {
    font-size: 0.95rem;
    padding: 0.6rem 1.2rem;
  }

  footer {
    font-size: 14px;
    padding: 1.5rem;
  }

  .fecha-link {
    font-size: 13px;
    padding: 6px 12px;
  }
}


@media (max-width: 768px) {
  .btn-center button {
    width: 100%;
    max-width: none;
  }

  .half-circle {
    display: none;
  }

  .pill-icon {
    background: #c8102e;
    color: white;
    width: 100%;
    text-align: center;
    flex-direction: column;
    align-items: center;
    padding: 15px 50px;
    font-size: 1.0rem;
    margin-bottom: 20px;
    margin-left: 20px;
    right: 30%;
  }

  .pill-icon i {
    color: white !important;
    margin-left: 20px;
  }

  .col-md-6.mb-4.mb-md-0.position-relative {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .btn-dark-red {
    width: 100%;
  }

  .nombre {
    text-align: left;
    margin-top: 0;
  }
}


@media (max-width: 320px) {
  body {
    font-size: 14px;
    padding: 0 1rem;
  }

  main {
    padding: 0 5px;
  }

  .navbar {
    padding: 0.5rem 1rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .navbar-brand img {
    max-width: 100px;
    height: auto;
  }

  .btn-dark-red,
  .btn-dark-blue {
    font-size: 0.85rem;
    padding: 0.6rem 1rem;
    width: 100%;
  }

  .btn-center {
    gap: 1rem;
    padding: 0;
    justify-content: center;
  }

  .quienes-title {
    font-size: 1.4rem;
    text-align: center;
  }

  .quienes-subtitle,
  .quienes p {
    font-size: 0.9rem;
    text-align: center;
  }

  .img-persona {
    max-width: 80px;
  }

  .nombre h4 {
    font-size: 1rem;
    text-align: center;
  }

  .descripcion {
    font-size: 0.85rem;
    text-align: center;
  }

  .pill-icon {
    width: 100%;
    padding: 15px 20px;
    font-size: 0.95rem;
    margin: 0 auto 1rem auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
  }

  .pill-icon i {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
  }

  .card-container {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 0;
  }

  .card-one .btn {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
  }

  .copiar-contacto {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 14px;
    padding: 0.75rem;
    width: 100%;
  }

  .copiar-contacto i {
    font-size: 16px;
  }

  .copiar-contacto span {
    display: block;
  }

  .animate-salida {
    padding: 2rem 0.5rem;
  }

  footer {
    padding: 1rem;
    text-align: center;
    font-size: 13px;
  }

  .fecha-link {
    font-size: 12px;
    padding: 5px 10px;
  }
}
