/* Estilos base */
body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #fff;
  padding-top: 0;
}

/* Logo circular */
.logo-circle {
  width: 50px;
  height: 50px;
  background-color: #d4af7f;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

/* Botones dorados */
.btn-gold {
  background-color: #d4af7f;
  color: white;
  padding: 10px 25px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s;
  border: none;
}

.btn-gold:hover {
  background-color: #c49a6c;
  color: white;
}

.text-gold {
  color: #d4af7f;
}

/* Navbar principal - PEGAJOSO EN TODOS LOS DISPOSITIVOS */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.navbar-brand {
  font-size: 1.1rem;
  display: flex;
  align-items: center;
}

.navbar-brand img {
  object-fit: cover;
  border: 2px solid #dcb38f;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.navbar-brand:hover img {
  transform: scale(1.05);
}

.nav-link {
  font-weight: 500;
  transition: all 0.2s ease;
  position: relative;
}

.nav-link.active {
  font-weight: 600;
}

/* Estilos para desktop */
@media (min-width: 768px) {
  .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: #d4af7f;
    transition: width 0.3s ease;
  }
  
  .nav-link:hover::after,
  .nav-link.active::after {
    width: 70%;
  }
}

/* Estilos para móviles */
@media (max-width: 767.98px) {
  .navbar-brand span {
    font-size: 14px;
  }
  
  .navbar-collapse {
    background-color: #f8f9fa;
    margin-top: 10px;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }
  
  .navbar-nav {
    gap: 5px;
  }
  
  .nav-item {
    border-bottom: 1px solid #e9ecef;
    padding: 5px 0;
  }
  
  .nav-item:last-child {
    border-bottom: none;
  }
  
  .nav-link {
    padding: 8px 12px !important;
    border-radius: 4px;
  }
  
  .nav-link:hover {
    background-color: #e9ecef;
  }
}

/* Botón de WhatsApp */
.whatsapp-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: rgba(37, 211, 102, 0);
  color: white;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 500;
  z-index: 1000;
  padding: 12px;
  width: 60px;
  height: 60px;
  transition: all 0.5s ease-out, background-color 0.8s cubic-bezier(0.19, 1, 0.22, 1);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0);
  border: 2px solid rgba(37, 211, 102, 0.3);
}

.whatsapp-btn i {
  font-size: 28px;
  transition: all 0.4s ease;
  position: relative;
  top: 1px;
  color: #25d366;
  background: white;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.whatsapp-text {
  opacity: 0;
  width: 0;
  overflow: hidden;
  transition: opacity 0.6s ease 0.1s, width 0.6s ease 0.1s;
  margin-left: 0;
  white-space: nowrap;
  color: white;
}

/* Versión desktop del botón WhatsApp */
@media (min-width: 768px) {
  .whatsapp-btn:hover {
    width: auto;
    padding: 12px 20px;
    background-color: #25d366;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    border-color: rgba(37, 211, 102, 0);
  }

  .whatsapp-btn:hover i {
    transform: scale(0.95);
    color: white;
    background: transparent;
  }

  .whatsapp-btn:hover .whatsapp-text {
    opacity: 1;
    width: auto;
    margin-left: 12px;
    display: inline-block;
  }
}

/* Versión móvil del botón WhatsApp */
@media (max-width: 767px) {
  .whatsapp-btn {
    width: auto;
    padding: 12px 20px;
    background-color: #25d366;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
  }

  .whatsapp-btn i {
    color: white;
    background: transparent;
  }

  .whatsapp-text {
    opacity: 1;
    width: auto;
    margin-left: 12px;
    display: inline-block;
  }
}

/* Estilos para la sección de contacto */
.btn-instagram {
  border-color: #E1306C;
  color: #E1306C;
  transition: all 0.3s;
}

.btn-instagram:hover {
  background-color: #E1306C;
  color: white;
}

.card {
  border: none;
  border-radius: 10px;
}

.shadow-sm {
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* Carrusel Vertical 9:16 */
.swiper-container {
  --swiper-theme-color: #d4af7f;
  width: 100%;
  height: 80vh;
  max-height: 600px;
  margin: 20px auto;
  overflow: hidden;
}

.swiper-wrapper {
  width: 100%;
  height: 100%;
}

.swiper-slide {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.swiper-slide-active {
  opacity: 1;
}

.instagram-media {
  width: 100%;
  height: 100%;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.instagram-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Flechas de navegación transparentes */
.swiper-button-next,
.swiper-button-prev {
  background: transparent !important;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  transition: all 0.3s ease;
  margin-top: -25px;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  border-color: #d4af7f;
  background: rgba(212, 175, 127, 0.2) !important;
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 24px;
  color: white;
  font-weight: bold;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.swiper-button-next:hover::after,
.swiper-button-prev:hover::after {
  color: #d4af7f;
  transform: scale(1.2);
}

.swiper-button-next {
  right: 20px;
}

.swiper-button-prev {
  left: 20px;
}

/* Ajustes para móviles */
@media (max-width: 767px) {
  .swiper-container {
    height: 85vh;
    max-height: none;
    border-radius: 0;
  }
  
  .swiper-button-next,
  .swiper-button-prev {
    display: none;
  }
}

/* Desktop - Centrado y relación 9:16 */
@media (min-width: 768px) {
  .swiper-container {
    width: calc(100vh * 0.5625);
    max-width: 360px;
    height: 80vh;
  }
}

/* Estilos para el formulario de contacto */
#contactForm .was-validated .form-control:invalid {
    border-color: #dc3545;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

#contactForm .was-validated .form-control:valid {
    border-color: #28a745;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/* Spinner de carga */
.spinner-border {
    vertical-align: middle;
    margin-right: 0.5rem;
}

/* Efecto hover para cards de servicios */
.card-hover-effect {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover-effect:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Color para la barra de direcciones en Chrome (Android) */
meta[name="theme-color"] {
  content: "#d4af7f";
}

/* Safari pinned tab color */
.safari-pinned-tab {
  fill: #d4af7f;
}