/* Custom CSS for Daresi, S.A. de C.V. */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

:root {
  --primary-color: #D4AF37; /* Elegant Gold */
  --primary-hover: #C5A028;
  --secondary-color: #111111; /* Black / Dark Gray */
  --accent-color: #059669; /* Emerald Green */
  --text-color: #333333;
  --text-light: #555555;
  --bg-light: #fdfdfd;
  --bg-dark: #121212;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-color);
  padding-top: 76px; /* Offset for fixed navbar */
}

/* Typography Overrides */
h1, h2, h3, h4, h5, h6 {
  color: var(--secondary-color);
  font-weight: 700;
}

/* Override Bootstrap Classes */
.text-primary { color: var(--primary-color) !important; }
.bg-primary { background-color: var(--primary-color) !important; }

/* Subpage Headers: Blackish with Gold text */
.bg-primary.text-white.py-5 {
  background-color: var(--secondary-color) !important;
  color: #fff !important;
  border-bottom: 3px solid var(--accent-color); /* Emerald Green accent on header bottom */
}
.bg-primary.text-white.py-5 h1 {
  color: var(--primary-color) !important;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.bg-primary.text-white.py-5 p.lead {
  color: #cccccc !important;
}

/* Navbar */
.navbar {
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  background-color: #ffffff;
}
.navbar-brand img {
  height: 50px;
  object-fit: contain;
}
.nav-link {
  font-weight: 600;
  color: #111 !important;
  transition: color 0.3s ease;
  text-transform: uppercase;
  font-size: 0.9rem;
}
.nav-link:hover, .nav-link.active {
  color: var(--accent-color) !important; /* Emerald green on hover */
}

/* Hero Section with Video */
.hero-section {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  width: 100%;
  /* Maintain a panoramic proportion so the 16:9 video isn't cropped excessively */
  aspect-ratio: 16 / 9;
  min-height: 60vh;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: var(--secondary-color);
  padding-top: 50px; /* Slight offset padding for the fixed navbar */
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center; /* Natural centering, guarantees equal cropping if needed */
  /* Reduced filter so the original video looks more natural */
  filter: grayscale(15%) sepia(10%) contrast(1.05);
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Much more transparent so the video is clearly visible */
  background: rgba(0, 0, 0, 0.35);
  z-index: 0;
}

.hero-section .container {
  z-index: 1;
}
.hero-section h1 {
  font-weight: 700;
  font-size: 3.5rem;
  margin-bottom: 20px;
  animation: fadeInDown 1s ease;
  color: var(--primary-color);
}
.hero-section p {
  font-size: 1.25rem;
  margin-bottom: 40px;
  font-weight: 300;
  animation: fadeInUp 1s ease;
  color: #f0f0f0;
}

/* Image Tinting to match Gold and Black */
img:not(.navbar-brand img) {
  filter: grayscale(40%) sepia(30%) hue-rotate(5deg) contrast(1.1);
  transition: filter 0.5s ease;
}
img:not(.navbar-brand img):hover {
  filter: grayscale(0%) sepia(0%) hue-rotate(0deg) contrast(1);
}

/* Cards */
.feature-card {
  border: 1px solid #f0f0f0;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  background-color: #fff;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}
.feature-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-color); /* Emerald Green border on hover */
  box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

.icon-box {
  width: 70px;
  height: 70px;
  background-color: rgba(212, 175, 55, 0.1);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 20px;
  transition: color 0.3s ease, background-color 0.3s ease;
}
.feature-card:hover .icon-box {
  color: var(--accent-color); /* Icon turns emerald on card hover */
  background-color: rgba(5, 150, 105, 0.1);
}

/* Custom Buttons */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #000;
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
}
.btn-primary:hover {
  background-color: var(--accent-color); /* Emerald Green on hover */
  border-color: var(--accent-color);
  color: #fff;
  transform: scale(1.03);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
  border-radius: 30px;
  padding: 10px 25px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-size: 0.9rem;
}
.btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: #000;
}

.btn-outline-light {
    border-radius: 30px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}
.btn-outline-light:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
    transform: scale(1.03);
}

/* Checkmarks in benefits list */
.bi-check-circle-fill {
  color: var(--accent-color) !important;
}

/* Small divider lines */
.mx-auto.bg-primary {
  background-color: var(--primary-color) !important;
}

/* Footer */
footer {
  background-color: var(--secondary-color);
  color: #ffffff; /* Enhanced readability */
  padding: 60px 0 20px;
  border-top: 4px solid var(--primary-color);
}
footer h5, footer p, footer li, footer a, footer .text-muted, footer i {
  color: #ffffff !important; /* Forces all texts, links and icons to pure white */
}
footer a {
  text-decoration: none;
  transition: color 0.3s;
}
footer a:hover {
  color: var(--primary-color) !important; /* Gold on hover */
}

/* Back to top */
#back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  text-align: center;
  line-height: 46px;
  font-size: 24px;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: background-color 0.3s, transform 0.3s, color 0.3s;
  text-decoration: none;
  border: 2px solid var(--primary-color);
}
#back-to-top:hover {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: #fff;
  transform: scale(1.1);
}

/* Utility overrides */
.bg-light { background-color: var(--bg-light) !important; }

/* --- Efectos de Hover y Dinamismo --- */
.feature-card {
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.12) !important;
}
.btn {
  transition: all 0.3s ease !important;
}
.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}
.btn-primary:hover {
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
}
section img:not(.hero-video) {
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}
section img:not(.hero-video):hover {
  transform: scale(1.03);
}

/* Dynamic Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Existing Hero Animations */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
