:root {
  /* Colors */
  --color-bg-main: #f7f1ec;
  --color-bg-surface: #dcc9b0;
  --color-bg-card: #fffaf8;
  --color-accent: #5b908f;
  --color-accent-hover: #4d7d7c;
  --color-sand: #d2b792;
  --color-sand-hover: #ddb0a0;
  --color-secondary: #5d2246;
  
  /* Text */
  --color-text-title: #2d1f25;
  --color-text-body: #4f4048;
  --color-text-muted: #7b6870;

  /* Aliases used in older sections */
  --bg-light: var(--color-bg-surface);
  --text-light: var(--color-text-body);
  --accent-color: var(--color-accent);
  
  /* Other */
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --font-serif: 'Lora', serif;
  --font-sans: 'Inter', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text-body);
  background-color: var(--color-bg-main);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--color-text-title);
  font-weight: 600;
  line-height: 1.3;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* --- Header & Navigation --- */
header {
  background-color: rgba(247, 241, 236, 0.9);
  position: relative;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(93, 34, 70, 0.08);
  transition: var(--transition);
}

header.scrolled {
  padding: 0.5rem 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 168px;
  height: 92px;
}

.logo img,
.footer-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 168px;
  height: 92px;
  background: rgba(247, 241, 236, 0.9);
  padding: 10px 14px;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-text-body);
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-secondary);
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--color-secondary);
}

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

.btn-primary {
  background-color: var(--color-accent);
  color: #fffaf8;
  padding: 0.75rem 2rem;
  border-radius: 100px;
  font-weight: 700;
  transition: var(--transition);
  border: 1px solid rgba(45, 31, 37, 0.08);
  cursor: pointer;
  display: inline-block;
  box-shadow: 0 4px 15px rgba(91, 144, 143, 0.22);
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  color: #fffaf8;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(91, 144, 143, 0.28);
}

.btn-whatsapp {
  background-color: #2f6d4f;
  border-color: rgba(47, 109, 79, 0.22);
  color: #fffaf8;
  box-shadow: 0 4px 15px rgba(47, 109, 79, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 1rem 2.4rem;
  font-size: 1.08rem;
  min-height: 58px;
}

.btn-whatsapp:hover {
  background-color: #245842;
  color: #fffaf8;
  box-shadow: 0 8px 25px rgba(36, 88, 66, 0.28);
}

.btn-whatsapp i {
  font-size: 1.7rem;
}

/* --- Hero Section --- */
.hero {
  min-height: calc(100vh - 130px);
  display: flex;
  align-items: center;
  padding: 0;
  background-color: var(--color-bg-main);
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(91, 144, 143, 0.16) 0%, transparent 45%),
    radial-gradient(circle at 85% 30%, rgba(93, 34, 70, 0.08) 0%, transparent 45%);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(93, 34, 70, 0.08);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23f7f1e8' fill-opacity='0.025'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%235d2246' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: 0;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-text {
  padding-right: 2rem;
}

.hero-text h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  color: var(--color-text-title);
  letter-spacing: -1px;
  line-height: 1.1;
}

.hero-text h1 span {
  color: var(--color-accent);
  display: block;
  font-style: italic;
  font-family: var(--font-serif);
  font-weight: 400;
}

.hero-text p.subtitle {
  font-size: 1.3rem;
  color: var(--color-text-body);
  margin-bottom: 1.5rem;
  font-weight: 400;
  border-left: 3px solid var(--color-accent);
  padding-left: 1rem;
}

.hero-text p.desc {
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
  font-size: 1.1rem;
}

.hero-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.photo-placeholder {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 3/4;
  border-radius: 4px 40px 4px 40px; /* Sophisticated asymmetrical border */
  box-shadow: 
    0 20px 40px rgba(93, 34, 70, 0.12),
    inset 0 0 0 1px rgba(93, 34, 70, 0.06);
  position: relative;
  overflow: hidden;
  object-fit: cover;
}

.hero-image-wrapper .photo-placeholder {
  display: block;
  background: transparent;
  padding: 0;
}

.photo-placeholder::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to bottom right,
    rgba(93, 34, 70, 0) 0%,
    rgba(93, 34, 70, 0.05) 40%,
    rgba(93, 34, 70, 0) 50%
  );
  transform: rotate(30deg);
  pointer-events: none;
}

.photo-placeholder i {
  font-size: 4rem;
  margin-bottom: 1rem;
  color: var(--color-text-muted);
}

.photo-placeholder span {
  font-weight: 500;
  font-size: 1.1rem;
}

/* --- Stats / Experience --- */
.stats-section {
  background-color: #ece8e1;
  color: var(--color-text-title);
  padding: 4rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item h3 {
  font-size: 2.5rem;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.stat-item p {
  font-size: 1.1rem;
  color: var(--color-text-body);
}

/* --- Section Headers --- */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* --- Process Section --- */
.process {
  padding: 6rem 0;
  background-color: #dfdbd4;
}

#incluye {
  background-color: #f6f2ea;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.process-card {
  background: var(--color-bg-card);
  padding: 2.5rem 2rem;
  border-radius: 16px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  z-index: 1;
}

.process-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff6f2;
  border-radius: 16px;
  z-index: -1;
  box-shadow: 0 10px 40px rgba(93, 34, 70, 0.1);
  transition: var(--transition);
  opacity: 0;
}

.process-card:hover::before {
  opacity: 1;
  transform: translateY(-5px);
}

.process-card:hover {
  transform: translateY(-5px);
}

.step-number {
  width: 56px;
  height: 56px;
  background-color: rgba(91, 144, 143, 0.14);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 auto 1.8rem;
  border-radius: 50%; /* Circle for numbers as requested */
  border: 1px solid rgba(91, 144, 143, 0.22);
  transition: var(--transition);
  position: relative;
}

/* Asymmetric shape only for icons in the "Incluye" section */
#incluye .step-number {
  border-radius: 6px 20px 6px 20px;
}

.process-card:hover .step-number {
  background-color: var(--color-accent);
  color: #fffaf8;
  transform: scale(1.1); /* No rotation for numbers */
  box-shadow: 0 10px 20px rgba(91, 144, 143, 0.22);
}

/* Re-enable rotation only for the icons in the "Incluye" section */
#incluye .process-card:hover .step-number {
  transform: rotate(-10deg) scale(1.1);
}

.process-card h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.process-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* --- Testimonials --- */
.testimonials {
  padding: 6rem 0;
  background-color: var(--color-bg-main);
}

/* --- Carousel Testimonials --- */
.carousel-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.carousel-viewport {
  overflow: hidden;
  padding: 2rem 2rem 2.75rem;
}

.carousel-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  gap: 2rem;
}

.carousel-container .testimonial-card {
  min-width: calc(50% - 1rem); /* Two cards per view minus half the gap */
  flex: 0 0 calc(50% - 1rem);
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
}

.carousel-btn {
  background: transparent;
  border: 1px solid var(--color-secondary);
  color: var(--color-secondary);
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.carousel-btn:hover {
  background: var(--color-secondary);
  color: #fffaf8;
}

.carousel-btn.paused {
  background: var(--color-secondary);
  color: #fffaf8;
}

.carousel-dots {
  display: flex;
  gap: 0.8rem;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(93, 34, 70, 0.18);
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background: var(--color-secondary);
  transform: scale(1.4);
}

@media (max-width: 768px) {
  .carousel-viewport {
    padding: 1.5rem 1rem 1.75rem;
  }

  .carousel-container .testimonial-card {
    min-width: 100%;
    flex: 0 0 100%;
  }
  
  .carousel-track {
    gap: 0;
  }
}

.testimonial-card {
  background: var(--color-bg-card);
  padding: 3rem;
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(93, 34, 70, 0.10);
  position: relative;
  border-left: 4px solid var(--color-secondary);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-card::after {
  content: '"';
  position: absolute;
  top: 10px;
  left: 20px;
  font-size: 6rem;
  color: rgba(93, 34, 70, 0.05);
  font-family: var(--font-serif);
  line-height: 1;
}

.testimonial-text {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--color-text-title);
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
  line-height: 1.8;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-info h4 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.author-info span {
  font-size: 0.85rem;
  color: var(--color-secondary);
}

/* --- CTA Section --- */
.cta-section {
  padding: 6rem 0;
  background: #faf7f0;
  color: var(--color-text-title);
  text-align: center;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.cta-content h2 {
  color: var(--color-text-title);
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.cta-content p {
  font-size: 1.2rem;
  margin-bottom: 3rem;
  opacity: 0.9;
}

.features-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  text-align: left;
  margin-bottom: 3rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: #fffdf9;
  border: 1px solid rgba(93, 34, 70, 0.07);
  padding: 1.5rem;
  border-radius: 12px;
}

.feature-icon {
  font-size: 1.5rem;
}

.feature-text h4 {
  color: var(--color-text-title);
  margin-bottom: 0.5rem;
}

.feature-text p {
  font-size: 0.9rem;
  margin-bottom: 0;
  color: var(--color-text-body);
}

/* --- Footer --- */
footer {
  background-color: var(--color-secondary);
  color: #fffaf8;
  padding: 3rem 0 1.5rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  border-bottom: 1px solid rgba(255, 250, 248, 0.18);
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  gap: 1rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.footer-logo {
  line-height: 0;
}

.footer-logo img {
  background: transparent;
}

.contact-info {
  display: flex;
  gap: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 250, 248, 0.9);
}

.footer-seo {
  margin: 0;
  max-width: 680px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(255, 250, 248, 0.82);
}

.footer-bottom {
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 250, 248, 0.75);
  display: flex;
  justify-content: space-between;
}

.footer-bottom a {
  color: rgba(255, 250, 248, 0.75);
  transition: var(--transition);
}

.footer-bottom a:hover {
  color: var(--color-sand);
}

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 992px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-text h1 {
    font-size: 2.5rem;
  }
  
  .features-list {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none; /* In a real app, add a hamburger menu here */
  }
  
  .footer-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-content {
    text-align: center;
  }
  
  .contact-info {
    flex-direction: column;
    gap: 1rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
  }
}

/* --- Final Commitment Section --- */
.final-commitment {
  padding: 8rem 0;
  background-color: var(--color-bg-main);
}

.commitment-card {
  background: linear-gradient(145deg, #fffaf8 0%, #f7e6df 100%);
  padding: 5rem 3rem;
  border-radius: 40px;
  text-align: center;
  border: 1px solid rgba(93, 34, 70, 0.16);
  box-shadow: 0 30px 60px rgba(93, 34, 70, 0.14);
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.commitment-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(91, 144, 143, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.commitment-text {
  font-family: 'Lora', serif;
  font-size: 2.4rem;
  color: var(--color-text-title);
  margin-bottom: 3rem;
  line-height: 1.3;
  font-weight: 400;
  font-style: italic;
}

@media (max-width: 768px) {
  .commitment-text {
    font-size: 1.8rem;
  }
  .commitment-card {
    padding: 3rem 2rem;
    border-radius: 24px;
  }
}
