/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Variables */
:root {
  --wine-primary: #430816;
  --wine-secondary: #5e1224;
  --wine-dark: #36040f;
  --wine-darker: #1c0105;
  --gold-accent: #ffd700;
  --text-light: #ffffff;
  --text-dark: #333333;
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.4);
  --border-radius: 20px;
  --border-radius-sm: 12px;
  --transition: all 0.3s ease;
}

/* Base Styles */
body {
  font-family: "Roboto", sans-serif;
  line-height: 1.6;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #2a2a2a 100%);
  color: var(--text-light);
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

/* Container */
.container {
  max-width: 1366px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6)),
    url("./assets/bg-hero.webp");
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("./assets/Grain.webp");
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.02;
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  min-height: 100vh;
  position: relative;
  z-index: 2;
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  height: 100%;
  background-image: url(./assets/cecilia-apontando.webp);
  background-repeat: no-repeat;
  background-position: bottom;
}

.hero-text {
  margin-top: auto;
  margin-bottom: 80px;
}

.hero-text h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 1.5rem;
  color: var(--text-light);
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-text h1 span {
  background: linear-gradient(135deg, var(--gold-accent) 0%, #ffed4a 100%);
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text p {
  font-size: 1.25rem;
  opacity: 0.9;
  color: var(--text-light);
  line-height: 1.6;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  width: 100%;
  max-width: 400px;
  height: auto;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}

.hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
}

.video-container {
  width: 100%;
  max-width: 500px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 3px solid var(--wine-primary);
}

.video-container video {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
}

/* Features Section */
.features-section {
  padding: 6rem 0;
  position: relative;
}

.features-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--wine-primary),
    transparent
  );
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-light);
}

.section-header p {
  font-size: 1.2rem;
  opacity: 0.8;
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    135deg,
    var(--wine-primary),
    var(--wine-secondary)
  );
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--wine-primary);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(
    135deg,
    var(--wine-primary),
    var(--wine-secondary)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
}

.feature-icon img {
  width: 40px;
  height: 40px;
  filter: brightness(0) invert(1);
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--gold-accent);
}

.feature-card p {
  opacity: 0.8;
  line-height: 1.6;
}

/* Checkout Section */
.checkout-section {
  padding: 6rem 0;
  background: linear-gradient(
    135deg,
    var(--wine-primary) 0%,
    var(--wine-secondary) 100%
  );
  position: relative;
  overflow: hidden;
}

.checkout-section::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  animation: rotate 20s linear infinite;
}

.checkout-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.checkout-text h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-light);
}

.checkout-text p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.pricing {
  margin-bottom: 2rem;
}

.price-installment {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold-accent);
  margin-bottom: 0.5rem;
}

.price-installment span {
  font-size: 3rem;
}

.price-cash {
  font-size: 1.1rem;
  opacity: 0.8;
}

.benefits {
  margin-bottom: 2rem;
}

.benefit {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.benefit img {
  width: 24px;
  height: 24px;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(135deg, var(--gold-accent) 0%, #ffed4a 100%);
  color: var(--text-dark);
  padding: 1.25rem 2.5rem;
  border-radius: 50px;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}

.cta-button-secondary {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: none;
  color: var(--text-light);
  border: solid 2px var(--text-light);
  padding: 1.25rem 2.5rem;
  border-radius: 50px;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}

.cta-button::before .cta-button-secondary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s;
}

.cta-button:hover .cta-button-secondary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.cta-button:hover::before,
.cta-button-secondary:hover::before {
  left: 100%;
}

.guarantee {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.8;
  font-size: 0.9rem;
}

.guarantee img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

.checkout-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.checkout-image img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
}

/* About Section */
.about-section {
  padding: 6rem 0;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--gold-accent);
  font-weight: 700;
}

.about-text h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--text-light);
  font-weight: 600;
}

.about-text p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  opacity: 0.9;
}

.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
}

/* Social Links */
.social {
  position: fixed;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 1000;
}

.social a {
  width: 50px;
  height: 50px;
  background: linear-gradient(
    135deg,
    var(--wine-primary) 0%,
    var(--wine-secondary) 100%
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: var(--shadow-soft);
}

.social a:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-hover);
}

.whatsapp {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%) !important;
}

.social img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
}

/* Footer */
footer {
  background: var(--wine-darker);
  padding: 3rem 0 1rem;
  text-align: center;
}

footer p {
  opacity: 0.7;
  margin-bottom: 0.5rem;
}

footer a {
  color: var(--gold-accent);
  text-decoration: none;
  transition: var(--transition);
}

footer a:hover {
  color: var(--text-light);
}

footer hr {
  max-width: 300px;
  height: 2px;
  border: none;
  background: linear-gradient(
    135deg,
    var(--wine-primary) 0%,
    var(--wine-secondary) 100%
  );
  margin: 1rem auto;
  border-radius: 2px;
}

/* Animations */
@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-content,
  .checkout-content,
  .about-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-right {
    order: 1;
  }

  .hero-left {
    background: none;
    order: 2;
  }

  .checkout-text {
    text-align: center;
  }

  .social {
    right: 20px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  .hero {
    min-height: 100vh;
    padding: 2rem 0;
  }

  .hero-content {
    gap: 2rem;
    min-height: auto;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .checkout-section,
  .features-section,
  .about-section {
    padding: 4rem 0;
  }

  .checkout-text h2 {
    font-size: 2rem;
  }

  .about-text h2 {
    font-size: 2rem;
  }

  .about-text h3 {
    font-size: 1.5rem;
  }

  .social {
    position: static;
    transform: none;
    flex-direction: row;
    justify-content: center;
    margin: 2rem 0;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .cta-button,
  .cta-button-secondary {
    width: 100%;
    justify-content: center;
    padding: 1rem 2rem;
    font-size: 1rem;
  }

  .price-installment {
    font-size: 2rem;
  }

  .price-installment span {
    font-size: 2.5rem;
  }

  .video-container {
    max-width: 100%;
  }
}
