/* Reset and base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  font-family: 'Poppins', sans-serif;
  scroll-behavior: smooth;
  background-color: #f7f6fb;
  color: #333;
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Variables for colors */
:root {
  --primary: #857cd6;
  --secondary: #ffc5d9;
  --accent: #e8e8f5;
  --dark: #2d2d55;
  --light: #ffffff;
}

/* Navbar */
.navbar {
  background-color: var(--light);
  padding: 1rem 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--dark);
  display: flex;
  align-items: baseline;
}

.logo .highlight {
  color: var(--primary);
  margin-left: 0.25rem;
}

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

.nav-links li a {
  font-weight: 500;
  transition: color 0.3s;
}

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

/* Hero section */
.hero {
  position: relative;
  background-image: url('images/hero-bg.png');
  background-size: cover;
  background-position: center;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  text-align: center;
  color: var(--light);
}

.hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(44, 31, 86, 0.55);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-content h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: #f0edf8;
}

.btn {
  display: inline-block;
  background-color: var(--primary);
  color: var(--light);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 500;
  transition: background-color 0.3s;
}

.btn:hover {
  background-color: var(--dark);
}

/* Container utility */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Sections titles */
section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--dark);
}

/* Services section */
.services-section {
  background-color: var(--accent);
  padding-top: 4rem;
  padding-bottom: 4rem;
  border-top-left-radius: 2rem;
  border-top-right-radius: 2rem;
}

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

.service-card {
  background-color: var(--light);
  border-radius: 1rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  padding: 2rem 1.5rem;
  text-align: left;
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
}

.service-card i {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.service-card p {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: #555;
}

.service-card .indicaciones {
  margin-bottom: 1rem;
  padding-left: 1rem;
}

.service-card .indicaciones li {
  position: relative;
  margin-bottom: 0.4rem;
  padding-left: 0.8rem;
  color: #555;
}

.service-card .indicaciones li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary);
}

.service-card .format {
  font-weight: 600;
  color: var(--dark);
}

/* Pricing section */
.pricing-section {
  background-color: #fff;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.pricing-table {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.pricing-item {
  background-color: var(--accent);
  border-radius: 1rem;
  padding: 1.5rem;
  flex: 1 1 280px;
  max-width: 350px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  text-align: center;
}

.pricing-item h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.pricing-item .price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.pricing-item .duration,
.pricing-item .freq {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 0.5rem;
}

.payment-info {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  color: #555;
}

.payment-info h3 {
  margin-top: 1rem;
  margin-bottom: 0.25rem;
  color: var(--dark);
}

.payment-info p {
  margin-bottom: 0.5rem;
}

/* About section */
.about-section {
  background-color: var(--accent);
  padding-top: 4rem;
  padding-bottom: 4rem;
  border-bottom-left-radius: 2rem;
  border-bottom-right-radius: 2rem;
}

.about-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}

.about-text {
  flex: 1 1 60%;
  color: #555;
}

.about-text p {
  margin-bottom: 1rem;
}

.about-text blockquote {
  font-style: italic;
  border-left: 4px solid var(--primary);
  padding-left: 1rem;
  color: var(--dark);
}

.about-image {
  flex: 1 1 35%;
  text-align: center;
}

.about-image img {
  max-width: 100%;
  border-radius: 1rem;
}

/* Contact section */
.contact-section {
  padding-top: 4rem;
  padding-bottom: 4rem;
  background-color: #fff;
}

.contact-info {
  margin-bottom: 2rem;
}

.contact-info p {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: #555;
}

.contact-info i {
  color: var(--primary);
  margin-right: 0.5rem;
}

#contact-form {
  display: grid;
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto 1rem auto;
}

#contact-form input,
#contact-form select,
#contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 0.5rem;
  font-size: 1rem;
}

#contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

#contact-form button {
  background-color: var(--primary);
  color: var(--light);
  border: none;
  padding: 0.75rem;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.3s;
}

#contact-form button:hover {
  background-color: var(--dark);
}

.privacy {
  text-align: center;
  font-size: 0.85rem;
  color: #777;
  margin-top: 1rem;
}

/* Footer */
.footer {
  background-color: var(--dark);
  color: var(--light);
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
}

/* -------- Menú lateral y toggle -------- */
/* Botón de menú (hamburguesa) */
.menu-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--dark);
  background: none;
  border: none;
  cursor: pointer;
}

/* Contenedor del menú lateral */
.side-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 260px;
  height: 100%;
  background-color: var(--light);
  box-shadow: 2px 0 6px rgba(0, 0, 0, 0.1);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 1500;
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
}

/* Estado cuando el menú está abierto */
.side-nav.open {
  transform: translateX(0);
}

/* Botón de cierre dentro del menú */
.side-nav .close-nav {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--dark);
  cursor: pointer;
  align-self: flex-end;
  margin-bottom: 1.5rem;
}

.side-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.side-nav ul li a {
  font-weight: 500;
  color: var(--dark);
  transition: color 0.3s;
}

.side-nav ul li a:hover {
  color: var(--primary);
}

/* Capa oscura que se activa con el menú */
.side-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 1400;
}

.side-nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Responsive design */
@media (max-width: 768px) {
  .navbar .nav-links {
    display: none;
  }
  .about-container {
    flex-direction: column;
    text-align: center;
  }
  .about-text, .about-image {
    flex: 1 1 100%;
  }
  .pricing-table {
    flex-direction: column;
    align-items: center;
  }
  /* Mostrar el botón de menú en pantallas pequeñas */
  .menu-toggle {
    display: block;
  }
}

/* Larger, more accessible contact inputs */
.contact-section input, 
.contact-section textarea, 
.contact-section select {
  padding: 16px;
  font-size: 1.1rem;
  border-radius: 10px;
  border: 2px solid #bbb;
}

.contact-section textarea {
  min-height: 160px;
}


/* stack contact fields */
.contact-section form {
  display:flex !important;
  flex-direction:column !important;
  gap:18px;
  max-width:480px;
}

.contact-section input, 
.contact-section textarea, 
.contact-section select {
  width:100% !important;
  padding:18px;
  font-size:1.05rem;
  border-radius:12px;
  border:2px solid #ccc;
}

.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #25d366;
  color: white;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display:flex;
  justify-content:center;
  align-items:center;
  font-size: 2rem;
  box-shadow:0 4px 12px rgba(0,0,0,0.3);
  text-decoration:none;
  z-index: 999;
}
