@import 'components.css';

:root {
  --color-primary: #3085d6;
  --color-primary-dark: #206ab3;
  --color-secondary: #ebf4fc;
  --color-text: #4a4a4a;
  --color-text-light: #6b7280;
  --color-surface: #f9fafb;
  --color-bg: #ffffff;
  --color-border: #e5e7eb;
  
  --font-display: 'Poppins', sans-serif;
  --font-body: 'Poppins', sans-serif;
  
  --shadow-sm: 0 4px 10px rgba(0,0,0,0.05);
  --shadow-lg: 0 15px 35px rgba(48, 133, 214, 0.15);
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  line-height: 1.6;
  background-color: var(--color-bg);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: #1A202C;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0; left: 0; width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--color-primary);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 30px;
}
.nav-links a {
  color: var(--color-text);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
}
.nav-links a:hover {
  color: var(--color-primary);
}

.nav-actions {
  display: flex;
  gap: 20px;
  align-items: center;
}

.cart-icon {
  position: relative;
  color: var(--color-text);
}
.cart-badge {
  position: absolute;
  top: -8px; right: -8px;
  background: var(--color-primary);
  color: white;
  border-radius: 50%;
  width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: bold;
}
.nav-link-login {
  color: var(--color-text);
  font-weight: 600;
  text-decoration: none;
}

/* Button Pill Blue */
.btn-pill-blue {
  background-color: var(--color-primary);
  color: #FFF;
  border-radius: 50px;
  padding: 12px 28px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 102, 255, 0.3);
}
.btn-pill-blue:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 102, 255, 0.4);
  color: #FFF;
}
.btn-pill-blue.btn-lg {
  padding: 16px 40px;
  font-size: 1.1rem;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background-image: url('../images/landing/hero_bg_new.jpg');
  background-size: cover;
  background-position: right center;
  padding-top: 80px;
}
.hero-bg-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(270deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.7) 60%, transparent 100%);
}
.hero-container {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  justify-content: flex-end;
}
.hero-content {
  max-width: 600px;
  margin-right: -20px; /* Pushes the block a bit more to the right */
}
.hero-badge {
  display: inline-block;
  border: 1px solid #ff6b00;
  color: #ff6b00;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
  background: rgba(255, 107, 0, 0.1);
}
.hero h1 {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
  color: #1a202c; /* Dark text for white background */
}
.highlight-blue {
  color: var(--color-primary);
}
.hero p.lead {
  font-size: 1.1rem;
  color: #4a5568; /* Dark text for white background */
  margin-bottom: 25px;
  font-weight: 500;
  line-height: 1.6;
}
.hero-checkmarks {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 40px;
}
.checkmark {
  background: rgba(0, 0, 0, 0.05);
  color: #1a202c;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  font-weight: 500;
}
.check-icon {
  color: #22c55e;
  font-weight: bold;
}
.hero-buttons {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.btn-hero-blue {
  background-color: var(--color-primary);
  color: #FFF;
  border-radius: 50px;
  padding: 14px 28px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}
.btn-hero-blue:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-2px);
  color: #FFF;
}
.btn-outline-dark {
  background-color: transparent;
  color: #1a202c;
  border: 2px solid #1a202c;
  border-radius: 50px;
  padding: 12px 28px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  font-size: 1rem;
}
.btn-outline-dark:hover {
  background-color: rgba(0, 0, 0, 0.05);
  color: #1a202c;
}
.hero-reviews {
  color: #4a5568;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}
.hero-reviews .stars {
  color: #f59e0b;
  font-size: 1.2rem;
  letter-spacing: 2px;
}

/* Fresh Approach */
.fresh-approach {
  padding: 100px 0;
  background-color: var(--color-bg);
}
.section-badge {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 20px;
}
.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-header h2 {
  font-size: 2.8rem;
  margin-bottom: 16px;
  letter-spacing: -1px;
}
.section-header p {
  color: var(--color-text-light);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 24px auto;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.benefit-card {
  text-align: center;
  background: #FFF;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s;
}
.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.benefit-img-wrapper img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.benefit-card h3 {
  margin: 20px 0 10px;
  font-size: 1.3rem;
}
.benefit-card p {
  padding: 0 20px 24px;
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* Choose Litter (Products) */
.choose-litter {
  padding: 80px 0;
  background-color: var(--color-surface);
}
.products-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.product-capsule {
  background: #FFF;
  border-radius: 120px;
  padding: 30px;
  width: 260px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 4px solid transparent;
  transition: all 0.3s;
  position: relative;
}
.product-capsule:hover {
  border-color: var(--color-secondary);
  transform: translateY(-10px);
}
.product-capsule.featured-capsule {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg);
}
.product-img {
  margin-bottom: 20px;
}
.product-img img {
  width: 120px;
  height: 160px;
  object-fit: contain;
}
.product-capsule h4 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}
.product-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-text-light);
  margin-bottom: 24px;
}
.product-capsule .btn-pill-blue {
  width: 100%;
}
.product-tag {
  position: absolute;
  top: 10px;
  right: 20px;
  background: #FFD700;
  color: #333;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 20px;
}

/* Blue Banner */
.blue-banner {
  background-color: var(--color-primary);
  color: #FFF;
  padding: 60px 0;
}
.banner-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.banner-text {
  flex: 1;
  padding-right: 50px;
}
.banner-text h2 {
  color: #FFF;
  font-size: 3rem;
  margin-bottom: 20px;
}
.banner-text p {
  font-size: 1.3rem;
  opacity: 0.9;
}
.banner-img {
  flex: 1;
}
.banner-img img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

/* Health Indicator */
.health-indicator {
  padding: 100px 0;
  background: var(--color-bg);
}
.health-circle-wrapper {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 300px 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
  align-items: center;
}
.health-center-img {
  grid-column: 2;
  grid-row: 1 / 3;
  text-align: center;
}
.health-center-img img {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  border: 10px solid var(--color-surface);
}
.health-item {
  display: flex;
  align-items: center;
  gap: 15px;
}
.health-item.blue { grid-column: 1; grid-row: 1; justify-content: flex-end; }
.health-item.yellow { grid-column: 3; grid-row: 1; justify-content: flex-start; }
.health-item.green { grid-column: 1; grid-row: 2; justify-content: flex-end; }
.health-item.red { grid-column: 3; grid-row: 2; justify-content: flex-start; }

.health-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.health-text {
  max-width: 200px;
}
.health-text h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}
.health-text p {
  font-size: 0.85rem;
  color: var(--color-text-light);
}
.right-align {
  text-align: right;
}

/* Plans Blue Section */
.plans-blue-section {
  background-color: var(--color-secondary);
  padding: 100px 0;
}
.text-white h2, .text-white p {
  color: var(--color-primary-dark);
}
.plans-blue-grid {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}
.plan-card-white {
  background: #FFF;
  border-radius: 20px;
  padding: 40px;
  width: 300px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s;
}
.plan-card-white.featured {
  border: 3px solid var(--color-primary);
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}
.plan-header h3 { font-size: 1.5rem; margin-bottom: 10px; }
.plan-price { font-size: 2.5rem; font-weight: 800; color: var(--color-primary); margin: 20px 0; }
.plan-price span { font-size: 1rem; color: var(--color-text-light); font-weight: 500; }
.plan-features { list-style: none; margin-bottom: 30px; text-align: left; }
.plan-features li { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; color: var(--color-text); }
.plan-features li svg { color: var(--color-primary); width: 20px; flex-shrink: 0; }

/* Comparison Table */
.comparison {
  padding: 100px 0;
}
.table-responsive {
  overflow-x: auto;
}
.honest-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #eadecd;
  background-color: #fffcf8;
}
.honest-table thead {
  background-color: var(--color-primary);
  color: #ffffff;
}
.honest-table th {
  padding: 18px 20px;
  font-weight: 600;
  font-size: 1.05rem;
  text-align: center;
}
.honest-table th:first-child {
  text-align: left;
}
.honest-table td {
  padding: 18px 20px;
  border-bottom: 1px solid #eadecd;
  color: #6b7280;
  font-size: 0.95rem;
}
.honest-table tbody tr:last-child td {
  border-bottom: none;
}
.honest-table tbody tr:nth-child(even) {
  background-color: #fefcf3;
}
.honest-table td:first-child {
  text-align: left;
  font-weight: 500;
}
.text-center {
  text-align: center !important;
}
.font-bold {
  font-weight: 700;
  color: var(--color-primary-dark);
}
.red-cross {
  color: #ef4444;
  font-weight: 400;
}
.green-check {
  color: #10b981;
  font-weight: 600;
}
.highlight-text {
  color: var(--color-primary-dark);
}

/* FAQ */
.faq {
  padding: 80px 0;
  background-color: var(--color-bg);
}
.faq-category {
  max-width: 800px;
  margin: 0 auto 40px auto;
}
.faq-category h3 {
  color: var(--color-primary);
  font-size: 1.8rem;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--color-secondary);
  padding-bottom: 10px;
}
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--color-border); padding: 24px 0; }
.faq-question { display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-size: 1.25rem; font-weight: 600; color: var(--color-text); }
.faq-question svg { transition: transform 0.3s ease; color: var(--color-primary); }
.faq-item.active .faq-question svg { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; color: var(--color-text-light); }
.faq-item.active .faq-answer { max-height: 500px; margin-top: 16px; }

/* Footer Blue */
.footer-blue {
  background-color: var(--color-primary);
  color: #FFF;
  padding: 80px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}
.footer-logo { font-size: 2rem; color: #FFF; margin-bottom: 10px; }
.footer-col h4 { color: #FFF; margin-bottom: 24px; font-size: 1.2rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: rgba(255,255,255,0.8); text-decoration: none; }
.footer-links a:hover { color: #FFF; text-decoration: underline; }
.footer-bottom { text-align: center; padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.2); color: rgba(255,255,255,0.7); }

/* Responsive */
@media (max-width: 992px) {
  .hero-content { margin-right: 0; padding: 0 20px; text-align: center; margin: 0 auto; }
  .hero-container { justify-content: center; }
  .hero h1 { font-size: 2.8rem; }
  .hero-checkmarks { justify-content: center; }
  .hero-buttons { justify-content: center; }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .health-circle-wrapper { grid-template-columns: 1fr; grid-template-rows: auto; text-align: center; }
  .health-item { flex-direction: column; text-align: center; }
  .health-item.blue, .health-item.yellow, .health-item.green, .health-item.red { grid-column: 1; grid-row: auto; justify-content: center; }
  .health-text.right-align { text-align: center; }
  .banner-flex { flex-direction: column; gap: 40px; text-align: center; }
  .banner-text { padding-right: 0; }
  .products-grid { gap: 20px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hide-on-mobile { display: none !important; }
  .mobile-menu-toggle { display: block !important; }
  .nav-brand { font-size: 1.5rem; }
  .nav-actions { gap: 10px; }
  .btn-pill-blue { padding: 10px 20px; font-size: 0.9rem; }
  
  .hero { background-position: center; padding-top: 40px; min-height: 80vh; }
  .hero-bg-overlay { background: rgba(255,255,255,0.85); }
  .hero h1 { font-size: 2.2rem; }
  .hero p.lead { font-size: 1rem; }
  
  .section-header h2 { font-size: 2rem; }
  .benefits-grid { grid-template-columns: 1fr; gap: 20px; }
  .fresh-approach, .choose-litter, .health-indicator, .plans-blue-section, .comparison, .faq { padding: 60px 0; }
  
  .banner-text h2 { font-size: 2rem; }
  .plan-card-white { width: 100%; max-width: 350px; margin: 0 auto; }
  
  .footer-grid { grid-template-columns: 1fr; gap: 30px; text-align: center; }
  
  .honest-table th, .honest-table td { padding: 12px 10px; font-size: 0.85rem; }

  /* Centrar todo el texto en móviles */
  p, h1, h2, h3, h4, h5, h6 { text-align: center !important; }
  .plan-features { text-align: center; }
  .plan-features li { justify-content: center; text-align: center; }
  .hero-reviews { justify-content: center; text-align: center; }
  .faq-question { justify-content: center; text-align: center; gap: 10px; }
  .honest-table td, .honest-table th { text-align: center !important; }
  .banner-text { text-align: center !important; }
  .section-badge { display: block !important; margin: 0 auto 20px auto !important; width: fit-content !important; text-align: center; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.8rem; }
  .btn-hero-blue, .btn-outline-dark { width: 100%; justify-content: center; }
  .announcement-bar { display: none; } /* Hide if too cluttered on very small screens */
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Cart Drawer CSS */
.cart-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
}
.cart-drawer {
    position: fixed;
    top: 0; right: -400px; width: 100%; max-width: 400px; height: 100%;
    background: white;
    z-index: 1001;
    box-shadow: -5px 0 30px rgba(0,0,0,0.1);
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}
.cart-drawer.open { right: 0; }
.cart-overlay.open { opacity: 1; visibility: visible; }
.drawer-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.drawer-close {
    background: none; border: none; font-size: 1.5rem; cursor: pointer; color: #999;
}
.drawer-body {
    padding: 20px;
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}
.drawer-items {
    display: flex;
    flex-direction: column;
}
.drawer-footer {
    padding-top: 20px;
    border-top: 2px solid #eee;
}

/* Mobile Menu Drawer CSS */
.mobile-menu-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); z-index: 2000;
    opacity: 0; visibility: hidden; transition: opacity 0.3s;
}
.mobile-menu-drawer {
    position: fixed; top: 0; left: -300px; width: 300px; max-width: 100%; height: 100%;
    background: white; z-index: 2001; box-shadow: 5px 0 30px rgba(0,0,0,0.1);
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex; flex-direction: column;
}
.mobile-menu-drawer.open { left: 0; }
.mobile-menu-overlay.open { opacity: 1; visibility: visible; }
.mobile-menu-header {
    padding: 20px; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center;
}
.mobile-menu-close {
    background: none; border: none; cursor: pointer; color: #999; padding: 0;
}
.mobile-menu-links {
    padding: 20px; display: flex; flex-direction: column; gap: 15px;
}
.mobile-link {
    font-size: 1.1rem; font-weight: 600; color: var(--color-text); text-decoration: none; padding: 10px 0; border-bottom: 1px solid #f5f5f5;
}
.mobile-link:hover { color: var(--color-primary); }
