:root {
  --bg: linear-gradient(135deg, #fdfbf7 0%, #f4ead5 50%, #e6d5b8 100%);
  --bg-nav: #7a1515;
  --card: #ffffff;
  --primary: #c29527;
  --primary-900: #9e781e;
  --secondary: #8a1c1c;
  --accent: #d4af37;
  --cream: #fdfbf7;
  --text: #2b1f1a;
  --text-light: #524036;
  --muted: #7a665a;
  --border-light: rgba(194, 149, 39, 0.3);
  --shadow-glow: 0 0 30px rgba(138, 28, 28, 0.15);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Poppins", system-ui, sans-serif;
  scroll-behavior: smooth;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.15;
  background-image:
    radial-gradient(2px 2px at 20% 30%, #c29527 30%, transparent 50%),
    radial-gradient(1.5px 1.5px at 80% 40%, #8a1c1c 40%, transparent 60%),
    radial-gradient(1px 1px at 50% 70%, #c29527 30%, transparent 50%);
  z-index: 0;
  animation: bgFloat 25s ease-in-out infinite;
}

@keyframes bgFloat {

  0%,
  100% {
    opacity: 0.12;
  }

  50% {
    opacity: 0.2;
  }
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s;
}

.container {
  width: min(1100px, 92%);
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.main-header {
  position: relative;
  background: linear-gradient(180deg, rgba(253, 251, 247, 0.6) 0%, rgba(230, 213, 184, 0.9) 100%);
  padding: 3rem 0;
  overflow: hidden;
  border-bottom: 1px solid var(--border-light);
}

.header-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.header-text-col {
  text-align: left;
  z-index: 2;
}

.main-header h1 {
  font-family: "Cinzel", serif;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 1.1;
  margin-bottom: 15px;
  color: var(--secondary);
  text-shadow: 0 2px 15px rgba(138, 28, 28, 0.1);
}

.main-header .accent-text {
  color: var(--primary-900);
  display: block;
  font-size: 0.45em;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.mobile-image-wrapper {
  display: none;
}

.main-header .intro {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 25px;
  line-height: 1.6;
  max-width: 520px;
}

.header-chips {
  display: flex;
  gap: 10px;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.chip {
  background: rgba(138, 28, 28, 0.05);
  border: 1px solid rgba(138, 28, 28, 0.2);
  color: var(--secondary);
  padding: 8px 18px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.chip:hover {
  background: rgba(138, 28, 28, 0.12);
  box-shadow: 0 4px 15px rgba(138, 28, 28, 0.1);
}

.header-image-col {
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-frame {
  position: relative;
  width: 100%;
  max-width: 480px;
  border-radius: 8px;
  overflow: hidden;
  transform: perspective(1000px) rotateY(-5deg);
  transition: all 0.5s ease;
  box-shadow:
    0 20px 40px rgba(43, 31, 26, 0.15),
    0 0 30px rgba(194, 149, 39, 0.15);
  border: 1px solid var(--border-light);
}

.image-frame:hover {
  transform: perspective(1000px) rotateY(0deg) translateY(-5px);
  box-shadow:
    0 30px 50px rgba(43, 31, 26, 0.2),
    0 0 40px rgba(194, 149, 39, 0.25);
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 4/4;
  filter: contrast(1.05) brightness(0.95);
}

.glow-effect {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 150%;
  height: 150%;
  background: radial-gradient(circle, rgba(194, 149, 39, 0.2) 0%, rgba(138, 28, 28, 0.1) 40%, transparent 70%);
  z-index: -1;
  pointer-events: none;
  animation: glowPulse 5s ease-in-out infinite;
}

@keyframes glowPulse {

  0%,
  100% {
    opacity: 0.6;
  }

  50% {
    opacity: 1;
  }
}

.navbar {
  background-color: rgba(122, 21, 21, 0.98);
  backdrop-filter: blur(15px);
  border-bottom: 2px solid var(--primary);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1rem 0;
  box-shadow: 0 4px 20px rgba(43, 31, 26, 0.3);
}

.nav-container {
  width: min(1200px, 92%);
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-texto {
  display: flex;
  flex-direction: column;
}

.logo-icono {
  width: 45px;
  height: 45px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.4));
}

.logo-nombre {
  font-family: "Cinzel", serif;
  font-size: 1.3rem;
  color: var(--accent);
  font-weight: 700;
  line-height: 1.2;
}

.logo-ubicacion {
  font-size: 0.75rem;
  color: #eabfb9;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.nav-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-menu a {
  font-weight: 500;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--cream);
  position: relative;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-menu a:hover {
  color: var(--accent);
}

.nav-menu a:hover::after {
  width: 100%;
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 10px 10px 30px;
  border-radius: 50px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.95rem;
  line-height: 1.3;
  white-space: normal;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  z-index: 1;
}

.btn.whatsapp {
  background: linear-gradient(135deg, #e6c05c 0%, #c29527 100%);
  color: #1a0202;
  border: 1px solid #ffea99;
  box-shadow:
    0 10px 25px rgba(194, 149, 39, 0.3),
    inset 0 2px 4px rgba(255, 255, 255, 0.6);
  gap: 15px;
}

.btn.whatsapp:hover {
  background: linear-gradient(135deg, #f0cf75 0%, #d4af37 100%);
  box-shadow:
    0 15px 35px rgba(194, 149, 39, 0.5),
    inset 0 2px 4px rgba(255, 255, 255, 0.8);
  transform: translateY(-4px);
}

.btn.whatsapp span {
  flex-grow: 1;
  margin: 0;
}

.btn.whatsapp .btn-wp-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  display: block;
}

.btn.whatsapp:hover .btn-wp-icon {
  transform: scale(1.08);
}

.small-btn {
  padding: 6px 6px 6px 20px;
  font-size: 0.85rem;
  gap: 10px;
}

.small-btn .btn-wp-icon {
  width: 36px;
  height: 36px;
}

.large-btn {
  padding: 8px 8px 8px 35px;
  font-size: 1.1rem;
  gap: 15px;
}

.large-btn .btn-wp-icon {
  width: 56px;
  height: 56px;
}

.section {
  padding: 80px 0;
}

.section h2 {
  font-family: "Cinzel", serif;
  color: var(--secondary);
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.divider {
  height: 1px;
  width: 60px;
  background: var(--primary);
  opacity: 0.6;
}

.lead {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 50px;
  font-size: 1.1rem;
  max-width: 700px;
  margin-inline: auto;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.no-style-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.card {
  background: var(--card);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  transition: all 0.4s;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 25px rgba(43, 31, 26, 0.06);
}

.card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow:
    0 15px 35px rgba(138, 28, 28, 0.1),
    0 0 20px rgba(194, 149, 39, 0.15);
}

.card-img-wrapper {
  width: 100%;
  height: 220px;
  position: relative;
  overflow: hidden;
  background: #f4ead5;
}

.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.95;
  transition: transform 0.8s ease, filter 0.4s ease;
  filter: sepia(15%) contrast(1.05);
}

.card:hover .card-img-wrapper img {
  transform: scale(1.1);
  filter: sepia(0%) contrast(1.15);
}

.card-body {
  padding: 25px;
  text-align: center;
  flex-grow: 1;
  background: linear-gradient(180deg, #ffffff 0%, #faf6ef 100%);
}

.card-body h3 {
  font-family: "Cinzel", serif;
  margin: 0 0 12px;
  font-size: 1.3rem;
  color: var(--secondary);
  letter-spacing: 1px;
}

.card-body p {
  margin: 0;
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

.contact {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 30px;
  align-items: stretch;
}

.panel {
  background: linear-gradient(145deg, #4a0b0b 0%, #1a0202 100%);
  color: var(--cream);
  padding: 50px 45px;
  border-radius: 16px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 0 40px rgba(194, 149, 39, 0.08);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.panel::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.15) 0%, transparent 65%);
  pointer-events: none;
  z-index: -1;
}

.panel h2,
.panel h3 {
  font-family: "Cinzel", serif;
  color: var(--accent);
  margin-top: 0;
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.main-panel h2 {
  font-size: 2.4rem;
  line-height: 1.2;
}

.info-panel h3 {
  font-size: 1.5rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  padding-bottom: 15px;
}

.panel .lead {
  color: #fdfbf7;
  font-size: 1.15rem;
  line-height: 1.7;
  margin-bottom: 35px;
  opacity: 0.9;
}

.panel ul {
  list-style: none;
  padding: 0;
}

.panel li {
  margin-bottom: 18px;
  color: #f4ead5;
  line-height: 1.6;
  font-size: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.panel li i {
  color: var(--accent);
  font-size: 1.2rem;
  margin-top: 3px;
}

.panel li strong {
  color: var(--accent);
  font-weight: 600;
}

.panel-cta {
  margin-top: 30px;
  display: flex;
  justify-content: flex-start;
}

.panel ul.garantia-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.panel ul.garantia-list li {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 15px;
  margin-bottom: 20px;
  line-height: 1.5;
  font-size: 1.05rem;
  align-items: center;
}

.garantia-titulo {
  color: var(--accent);
  font-weight: 700;
  text-align: left;
  line-height: 1.2;
}

.garantia-desc {
  color: #fdfbf7;
  text-align: left;
}

.urgency-bar {
  background: #540e0e;
  color: var(--cream);
  text-align: center;
  padding: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 1px;
  border-bottom: 1px solid var(--primary);
}

.urgency-marquee {
  overflow: hidden;
  white-space: nowrap;
}

.urgency-marquee span {
  display: inline-block;
  padding-left: 100%;
  animation: marquee 15s linear infinite;
}

@keyframes marquee {
  0% {
    transform: translateX(0%);
  }

  100% {
    transform: translateX(-100%);
  }
}

footer {
  text-align: center;
  padding: 40px 0;
  background: #1f140e;
  color: #d1c5b4;
  border-top: 2px solid var(--primary-900);
  font-size: 0.85rem;
}

.floating-cta {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.whatsapp-icon {
  width: 65px;
  filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.4));
}

.badge18 {
  background: var(--secondary);
  color: var(--cream);
  padding: 3px 8px;
  font-size: 11px;
  font-weight: bold;
  border-radius: 4px;
  margin-bottom: -8px;
  z-index: 2;
  border: 1px solid var(--accent);
}

.aviso-mayores {
  background: #2b1f1a;
  color: #b5a898;
  text-align: center;
  padding: 15px;
  font-size: 0.8rem;
  border-top: 1px solid #3d2c25;
}

.whatsapp-pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
  }

  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

@media (max-width: 900px) {
  .header-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .header-text-col {
    align-items: center;
    display: flex;
    flex-direction: column;
  }

  .mobile-image-wrapper {
    display: block;
    width: 100%;
    max-width: 380px;
    margin: 20px 0;
    border: 1px solid var(--primary);
    border-radius: 6px;
  }

  .mobile-hero-image {
    width: 100%;
    display: block;
  }

  .header-image-col {
    display: none;
  }

  .header-chips {
    justify-content: center;
  }

  .contact {
    grid-template-columns: 1fr;
  }

  .panel-cta {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-nav);
    flex-direction: column;
    padding: 25px;
    border-top: 1px solid var(--border-light);
  }

  .nav-menu.active {
    display: flex;
  }

  .section {
    padding: 50px 0;
  }

  .main-header h1 {
    font-size: 2.2rem;
  }
}