/* =========================================================
   Caro Aguirre — Estilos personalizados
   Complementa las utilidades de Tailwind (config en index.html)
   ========================================================= */

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
}

h1, h2, h3, h4, .font-serif {
  font-family: 'Playfair Display', serif;
}

/* ---------- Header / navegación ---------- */
.nav-link {
  position: relative;
  font-weight: 500;
  color: #0A0A0A;
  transition: color 300ms ease-in-out;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background-color: #C9A227;
  transition: width 300ms ease-in-out;
}
.nav-link:hover {
  color: #C9A227;
}
.nav-link:hover::after {
  width: 100%;
}

.nav-link-mobile {
  font-weight: 500;
  color: #0A0A0A;
  font-size: 1.05rem;
  transition: color 300ms ease-in-out;
}
.nav-link-mobile:hover {
  color: #C9A227;
}

.hamburger-line {
  display: block;
  width: 26px;
  height: 2px;
  background-color: #0B1E3D;
  border-radius: 2px;
  transition: transform 300ms ease-in-out, opacity 300ms ease-in-out;
}
#menu-toggle.is-open .hamburger-line:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
#menu-toggle.is-open .hamburger-line:nth-child(2) {
  opacity: 0;
}
#menu-toggle.is-open .hamburger-line:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ---------- Botones ---------- */
.btn-dorado {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  background-color: #C9A227;
  color: #0A0A0A;
  font-weight: 600;
  border-radius: 0.375rem;
  border: 1px solid #C9A227;
  transition: background-color 350ms ease-in-out, transform 250ms ease-in-out, box-shadow 350ms ease-in-out;
}
.btn-dorado:hover {
  background-color: #D4AF37;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -8px rgba(201, 162, 39, 0.6);
}

.btn-dorado-lg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  background-color: #C9A227;
  color: #0A0A0A;
  font-weight: 700;
  font-size: 1.05rem;
  border-radius: 0.375rem;
  border: 1px solid #C9A227;
  transition: background-color 350ms ease-in-out, transform 250ms ease-in-out, box-shadow 350ms ease-in-out;
}
.btn-dorado-lg:hover {
  background-color: #D4AF37;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -8px rgba(201, 162, 39, 0.55);
}
.btn-dorado-lg:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  background-color: transparent;
  color: #FFFFFF;
  font-weight: 600;
  border-radius: 0.375rem;
  border: 1px solid #C9A227;
  transition: background-color 350ms ease-in-out, color 350ms ease-in-out, transform 250ms ease-in-out;
}
.btn-outline:hover {
  background-color: #C9A227;
  color: #0A0A0A;
  transform: translateY(-2px);
}

.btn-outline-azul {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  background-color: transparent;
  color: #0B1E3D;
  font-weight: 600;
  border-radius: 0.375rem;
  border: 1px solid #0B1E3D;
  transition: background-color 350ms ease-in-out, color 350ms ease-in-out, transform 250ms ease-in-out;
}
.btn-outline-azul:hover {
  background-color: #0B1E3D;
  color: #FFFFFF;
  transform: translateY(-2px);
}

/* ---------- Tarjetas ---------- */
.service-card {
  padding: 2rem 1.5rem;
  background-color: #FFFFFF;
  border: 1px solid rgba(201, 162, 39, 0.2);
  border-radius: 0.5rem;
  text-align: left;
  transition: transform 350ms ease-in-out, box-shadow 350ms ease-in-out, border-color 350ms ease-in-out;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -20px rgba(11, 30, 61, 0.25);
  border-color: #C9A227;
}

.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 9999px;
  background-color: rgba(201, 162, 39, 0.12);
  color: #C9A227;
  margin-bottom: 1.25rem;
}

.icon-badge-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  border: 1px solid rgba(201, 162, 39, 0.5);
  color: #C9A227;
  margin-bottom: 1rem;
}

.icon-badge-outline-azul {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  border-radius: 9999px;
  border: 1px solid rgba(11, 30, 61, 0.3);
  color: #0B1E3D;
}

.value-prop {
  padding: 1.5rem;
  text-align: left;
  border-radius: 0.5rem;
  transition: transform 350ms ease-in-out;
}
.value-prop:hover {
  transform: translateY(-4px);
}

.testimonial-card {
  padding: 2.25rem 2rem;
  background-color: #FFFFFF;
  border: 1px solid rgba(11, 30, 61, 0.08);
  border-radius: 0.5rem;
  box-shadow: 0 10px 30px -18px rgba(11, 30, 61, 0.25);
  transition: transform 350ms ease-in-out;
}
.testimonial-card:hover {
  transform: translateY(-4px);
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  transition: border-color 300ms ease-in-out, color 300ms ease-in-out;
}
.social-icon:hover {
  border-color: #C9A227;
  color: #C9A227;
}

/* ---------- Formulario ---------- */
.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #0B1E3D;
  margin-bottom: 0.4rem;
}
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: #FFFFFF;
  border: 1px solid rgba(11, 30, 61, 0.2);
  border-radius: 0.375rem;
  color: #0A0A0A;
  transition: border-color 250ms ease-in-out, box-shadow 250ms ease-in-out;
}
.form-input:focus {
  outline: none;
  border-color: #C9A227;
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.15);
}
.form-input.is-invalid {
  border-color: #DC2626;
}
.form-error {
  min-height: 1.1rem;
  font-size: 0.8rem;
  color: #DC2626;
  margin-top: 0.3rem;
}

/* ---------- WhatsApp flotante ---------- */
.whatsapp-float {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  background-color: #25D366;
  color: #FFFFFF;
  box-shadow: 0 10px 25px -8px rgba(0, 0, 0, 0.4);
  transition: transform 300ms ease-in-out, box-shadow 300ms ease-in-out;
}
.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 14px 30px -8px rgba(0, 0, 0, 0.5);
}

/* ---------- Animaciones de scroll (data-aos ligero) ---------- */
[data-aos] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease-out, transform 700ms ease-out;
}
[data-aos].aos-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Header con scroll ---------- */
#header.header-scrolled {
  box-shadow: 0 4px 20px -8px rgba(11, 30, 61, 0.15);
}

/* ---------- Banner de cookies ---------- */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background-color: #0B1E3D;
  border: 1px solid rgba(201, 162, 39, 0.4);
  border-radius: 0.5rem;
  box-shadow: 0 20px 45px -15px rgba(0, 0, 0, 0.5);
}
@media (min-width: 768px) {
  .cookie-banner {
    left: auto;
    right: 1.5rem;
    bottom: 1.5rem;
    max-width: 26rem;
  }
}
.cookie-banner-text {
  font-size: 0.85rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
}
.cookie-banner-text a {
  color: #C9A227;
  text-decoration: underline;
}
.cookie-banner-actions {
  display: flex;
  gap: 0.75rem;
}
.cookie-banner-actions .btn-dorado,
.cookie-banner-actions .btn-outline-azul {
  padding: 0.55rem 1.25rem;
  font-size: 0.85rem;
}
.cookie-banner-actions .btn-outline-azul {
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.35);
}
.cookie-banner-actions .btn-outline-azul:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
}

/* ---------- Páginas legales ---------- */
.legal-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}
.legal-content h2:first-child {
  margin-top: 0;
}
.legal-content p,
.legal-content li {
  color: rgba(10, 10, 10, 0.75);
  line-height: 1.75;
  margin-bottom: 1rem;
}
.legal-content ul {
  list-style: disc;
  padding-left: 1.5rem;
}
.legal-content a {
  color: #0B1E3D;
  text-decoration: underline;
  text-decoration-color: #C9A227;
}
.legal-content strong {
  color: #0B1E3D;
}
.legal-placeholder {
  background-color: rgba(201, 162, 39, 0.12);
  border: 1px dashed #C9A227;
  padding: 0.15rem 0.5rem;
  border-radius: 0.25rem;
  font-style: normal;
  font-weight: 600;
}
