html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

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

:root {
  --primary: hsl(186, 100%, 35%);
  --primary-hover: hsl(186, 100%, 30%);
  --primary-foreground: hsl(0, 0%, 100%);
  --accent: hsl(54, 100%, 50%);
  --accent-hover: hsl(54, 100%, 45%);
  --accent-foreground: hsl(200, 20%, 15%);
  --background: hsl(0, 0%, 100%);
  --foreground: hsl(200, 20%, 15%);
  --muted: hsl(200, 15%, 96%);
  --muted-foreground: hsl(200, 10%, 45%);
  --border: hsl(200, 15%, 88%);
  --card: hsl(0, 0%, 100%);
  --card-foreground: hsl(200, 20%, 15%);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  word-break: break-word;
}

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

/* Header */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  /* La sombra se gestionará con JS al hacer scroll */
  box-shadow: none; 
}

.top-bar {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.contact-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  font-size: 0.875rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: inherit;
  text-decoration: none;
  transition: color 0.3s;
}

.contact-item:hover {
  color: var(--accent);
}

.contact-group {
  display: flex;
  gap: 1rem;
}

.icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.navbar {
  background-color: var(--background);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo img {
  width: 3rem;
  height: 3rem;
}

.logo-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
}

.logo-subtitle {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin: 0;
}

.nav-menu {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 1.5rem;
}

.nav-menu a {
  color: var(--foreground);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

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

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-btn span {
  width: 24px;
  height: 3px;
  background-color: var(--foreground);
  transition: 0.3s;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  box-shadow: 0 10px 20px rgba(0, 169, 181, 0.2);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.badge {
  display: inline-block;
  background-color: rgba(255, 235, 0, 0.1);
  color: var(--accent-foreground);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
}

/* Hero Section */
.hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 0;
  background: linear-gradient(135deg, rgba(0, 169, 181, 0.05), rgba(255, 235, 0, 0.05));
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-text {
  animation: fadeIn 0.8s ease-out;
}

.hero h1 {
  font-size: 3rem;
  line-height: 1.2;
  margin: 1rem 0;
}

.text-primary {
  color: var(--primary);
}

.hero p {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  margin: 1.5rem 0;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.hero-image {
  position: relative;
  animation: slideUp 0.8s ease-out;
}

.hero-image img {
  width: 100%;
  border-radius: 1.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

/* Services Section */
.services {
  padding: 5rem 0;
  background-color: var(--muted);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

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

.section-header p {
  font-size: 1.125rem;
  color: var(--muted-foreground);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.service-card {
  background-color: var(--card);
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-card.featured {
  border: 2px solid var(--primary);
}

.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.service-icon {
  width: 4rem;
  height: 4rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -2rem 1.5rem 1rem;
  position: relative;
  box-shadow: 0 10px 20px rgba(0, 169, 181, 0.3);
}

.service-icon svg {
  width: 2rem;
  height: 2rem;
  stroke: white;
}

.service-card h3 {
  padding: 0 1.5rem;
  font-size: 1.5rem;
  color: var(--foreground);
}

.service-card p {
  padding: 0 1.5rem;
  color: var(--muted-foreground);
  margin: 1rem 0;
}

.service-card ul {
  list-style: none;
  padding: 0 1.5rem 1.5rem;
}

.service-card li {
  padding: 0.5rem 0;
  color: var(--foreground);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-card li:before {
  content: "•";
  color: var(--primary);
  font-weight: bold;
  font-size: 1.5rem;
}

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

.feature {
  text-align: center;
  padding: 2rem;
  background-color: var(--card);
  border-radius: 1rem;
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
  stroke: var(--primary);
}

.feature h4 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.feature p {
  color: var(--muted-foreground);
}

/* About Section */
.about {
  padding: 5rem 0;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-text h2 {
  font-size: 2.5rem;
  margin: 1rem 0;
}

.about-text p {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  margin: 1rem 0;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.benefit {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.check-icon {
  width: 1.5rem;
  height: 1.5rem;
  stroke: var(--primary);
  flex-shrink: 0;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.stat-card {
  padding: 2rem;
  border-radius: 1.5rem;
  text-align: center;
}

.stat-primary {
  background: linear-gradient(135deg, var(--primary), hsl(186, 100%, 45%));
  color: white;
}

.stat-accent {
  background: linear-gradient(135deg, var(--accent), hsl(45, 100%, 55%));
  color: var(--accent-foreground);
}

.stat-border-primary {
  background-color: var(--card);
  border: 2px solid var(--primary);
}

.stat-border-accent {
  background-color: var(--card);
  border: 2px solid var(--accent);
}

.stat-card .stat-number {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stat-card .stat-label {
  font-size: 1.125rem;
}

.stat-primary .stat-number,
.stat-primary .stat-label {
  color: white;
}

.stat-accent .stat-number,
.stat-accent .stat-label {
  color: var(--accent-foreground);
}

.stat-border-primary .stat-number {
  color: var(--primary);
}

.stat-border-accent .stat-number {
  color: var(--accent);
}

.stat-border-primary .stat-label,
.stat-border-accent .stat-label {
  color: var(--muted-foreground);
}

/* Contact Section */
.rgpd-box {
  background: #f8f9fa;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1rem;
  font-size: 0.9rem;
}

.rgpd-consent {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.small-text {
  color: #555;
  line-height: 1.4;
  margin-bottom: 0.6rem;
}
.contact {
  padding: 5rem 0;
  background-color: var(--muted);
}

.contact-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
}

.contact-form {
  background-color: var(--card);
  padding: 2rem;
  border-radius: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--foreground);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-card {
  background-color: var(--card);
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.info-icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
  stroke: var(--primary);
}

.info-card h4 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.info-card p {
  color: var(--foreground);
  margin: 0.25rem 0;
}

.text-muted {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

/* Footer */
.footer {
  background-color: var(--foreground);
  color: white;
  padding: 3rem 0 1rem;
}

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

.footer-section h4 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section a:hover {
  color: var(--accent);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-logo img {
  width: 3rem;
  height: 3rem;
}

.footer-logo h3 {
  color: white;
  margin: 0;
}

.footer-logo p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  margin: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

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

/* Toast */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: var(--foreground);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s;
  z-index: 9999;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s;
    z-index: 1000;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 992px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--background);
        padding: 1rem;
        border-top: 1px solid var(--border);
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }

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

    .mobile-menu-btn {
        display: flex;
    }

    .hero-content,
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .hero-text {
        text-align: center;
    }

    .hero-image {
        order: -1;
        margin-bottom: 2rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
  .contact-info {
    justify-content: center;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-stats,
  .benefits-grid,
  .about-stats {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-content {
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .whatsapp-btn {
    width: 50px;
    height: 50px;
    bottom: 1rem;
    right: 1rem;
  }

  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media (max-width: 480px) {
    .hero, .services, .about, .contact, #faq {
        padding: 3rem 1rem;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 2rem;
    }

    .nav-content {
        padding: 0.5rem 0;
    }
}


/* FAQ Section */
#faq {
    padding: 5rem 0;
    background-color: var(--muted);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.faq-item {
    background: white;
    border-radius: 12px;
    margin-bottom: 1rem;
    border: 1px solid var(--border);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--foreground);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:hover {
    background: var(--muted);
}

.faq-answer {
    color: var(--muted-foreground);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-answer.active {
    padding: 1.5rem;
    max-height: 500px; /* Adjust as needed */
}

@media (max-width: 768px) {
    .faq-question {
        padding: 1rem;
        font-size: 1rem;
    }

    .faq-answer {
        padding: 0 1rem 1rem;
    }
}

.btn-primary {
    color: white !important;
}

/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 2000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.5); /* Black w/ opacity */
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
    max-width: 500px;
    border-radius: 1rem;
    text-align: center;
    position: relative;
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
