/* ========================================
   NAUTA SERVICIOS - ESTILOS GLOBALES
   ======================================== */

/* Variables de Color */
:root {
  --primary: #12f280;
  --secondary: #151716;
  --background: #f7f7f7;
  --foreground: #151716;
  --border: #e5e7eb;
  --white: #ffffff;
  --gray-light: #f7f7f7;
  --gray-medium: #6b7280;
  --gray-dark: #151716;
}

.michroma-regular {
  font-family: "Michroma", sans-serif;
  font-weight: 400;
  font-style: normal;
}

/* Reset y Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Michroma", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  font-size: 16px;
}
/* 
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  line-height: 1.2;
} */

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* ========================================
   CONTENEDOR Y LAYOUT
   ======================================== */

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

.head-container {
  padding: 0 1.2rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }
}

/* ========================================
   HEADER
   ======================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: var(--foreground);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

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

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

.icon {
  width: 40px;
  height: 40px;
  border: none;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: cover;
  mask-size: cover;
  mask-position: center;
}

.logo-icon {
  mask-image: url(../assets/images/icono-inverted.svg);
  background-color: #12f280;
  border-radius: 8px;
  /* width: 40px;
    height: 40px;
    background-color: var(--primary);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem; */
}

.logo-text {
  width: 160px;
  height: 40px;
  mask-image: url(../assets/images/tipo.svg);
  background-color: #12f280;
  mask-size: contain;
  mask-position: 0 50;
}

/* ========================================
   BOTONES
   ======================================== */

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

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

.black-button > a {
	color: white !important;
}

.black-button > .icon {
	background-color: white !important;
}


.btn-primary:hover {
  background-color: #0dd970;
  border-color: #0dd970;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(18, 242, 128, 0.3);
}

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

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

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

@media (max-width: 640px) {
  .btn {
    width: 100%;
    justify-content: center;
  }

  .btn-large {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }
}

/* ========================================
   SECCIONES
   ======================================== */

.section {
  padding: 4rem 0;
}

@media (max-width: 768px) {
  .section {
    padding: 2rem 0;
  }
}

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

.section-header h2 {
  font-size: clamp(1.875rem, 5vw, 3rem);
  margin-bottom: 1rem;
  color: var(--foreground);
}

.section-header p {
  font-size: 1.125rem;
  color: var(--gray-medium);
  max-width: 600px;
  margin: 0 auto;
}

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

/* ========================================
   HERO SECTION
   ======================================== */

.hero-section {
  background-color: var(--white);
  padding: 6rem 0;
}

@media (max-width: 768px) {
  .hero-section {
    padding: 3rem 0;
  }
}

.hero-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.badge {
  display: inline-block;
  background-color: rgba(18, 242, 128, 0.1);
  color: var(--primary);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(2rem, 8vw, 4rem);
  line-height: clamp(2.4rem, 8.4vw, 4.4rem);
  margin-bottom: 1.5rem;
  color: var(--foreground);
}

.hero-subtitle {
  font-size: 0.9rem;
  color: var(--gray-medium);
  margin-bottom: 1.2rem;
  line-height: 1.8;
}

.hero-promise {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
}

.checkmark {
  color: var(--primary);
  font-size: 1.5rem;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }
}

.hero-button,
.header-button {
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-button {
  padding: 8px !important;
  width: fit-content;
}

.hero-button > .icon {
	width: 28px;
	height: 28px;
	background-color: black;
}

.header-button > .icon {
  width: 20px;
  height: 20px;
  background-color: black;
}

.hero-button a,
.header-button a {
  color: rgb(0, 0, 0);
  font-size: 0.8rem;
}

.header-button a {
  padding: 0;
  font-size: 14px !important;
  color: black;
}

.icon-whatsapp {
  mask-image: url(../assets/images/whatsapp-icon.svg);
  background-color: white;
}

/* ========================================
   WHAT IS NAUTA SECTION
   ======================================== */

.what-is-nauta {
  background: linear-gradient(
    to bottom,
    var(--white),
    rgba(18, 242, 128, 0.05)
  );
}

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

.card {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  text-align: center;
  transition: all 0.3s ease;
}

.card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(18, 242, 128, 0.15);
  transform: translateY(-4px);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.card p {
  color: var(--gray-medium);
  font-size: 0.875rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.stat-card {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 0.75rem;
  border: 2px solid rgba(18, 242, 128, 0.2);
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.stat-card p {
  font-weight: 600;
  color: var(--foreground);
}

/* ========================================
   SERVICES SECTION
   ======================================== */

.services-section {
  background-color: var(--white);
}

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


.service-card {
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 18px;
}


.service-card summary {
  display: flex;
  gap: 1rem;
}

.service-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 20px rgba(18, 242, 128, 0.2);
  transform: translateY(-4px);
}

.service-icon {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

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


.service-list {
  margin: 10px 0;
  padding-left: 18px;
}

.service-list li {
  padding: 0.5rem 0;
  color: var(--gray-medium);
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border);
}
/* hide after 2 items */
.service-list li:nth-child(n+3) {
  display: none;
}

/* .service-list li:nth-child(n + 4) {
  display: none;
} */
/* show all when expanded */
.service-card.expanded .service-list li {
  display: list-item;
}

.toggle-btn {
  background: none;
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: center;
  font-weight: bold;
}

/* ========================================
   HOW IT WORKS SECTION
   ======================================== */

.how-it-works {
  background-color: var(--white);
}

.steps-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 3rem;
}

.step {
  flex: 0 0 auto;
  text-align: center;
  min-width: 150px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: var(--primary);
  color: var(--secondary);
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.step h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.step p {
  font-size: 0.875rem;
  color: var(--gray-medium);
}

.step-arrow {
  color: var(--primary);
  font-size: 1.5rem;
  font-weight: 700;
  display: none;
}

@media (min-width: 768px) {
  .step-arrow {
    display: inline-block;
  }

  .steps-container {
    gap: 0.5rem;
  }
}

/* ========================================
   PROBLEMS SECTION
   ======================================== */

.problems-section {
  background-color: var(--white);
}

.problems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.problem-item {
  background-color: var(--gray-light);
  padding: 2rem;
  border-radius: 0.75rem;
  text-align: center;
  transition: all 0.3s ease;
}

.problem-item:hover {
  background-color: rgba(18, 242, 128, 0.1);
  transform: translateY(-4px);
}

.problem-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

.problem-item p {
  color: var(--foreground);
  font-weight: 500;
  font-size: 0.95rem;
}

/* ========================================
   BENEFITS SECTION
   ======================================== */

.benefits-section {
  background-color: var(--white);
}

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

.benefit-card {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  text-align: center;
  transition: all 0.3s ease;
}

.benefit-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 20px rgba(18, 242, 128, 0.15);
}

.benefit-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.benefit-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
  color: var(--foreground);
}

.benefit-card p {
  color: var(--gray-medium);
  font-size: 0.95rem;
}

/* ========================================
   FAQ SECTION
   ======================================== */

.faq-section {
  background-color: var(--white);
}

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

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

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

.faq-question:hover {
  background-color: var(--gray-light);
  color: var(--primary);
}

.faq-arrow {
  color: var(--primary);
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer.active {
  max-height: 500px;
}

.faq-answer p {
  padding: 0 1.5rem 1.5rem 1.5rem;
  color: var(--gray-medium);
  line-height: 1.8;
}

.faq-item.active .faq-arrow {
  transform: rotate(45deg);
}

.faq-item.active .faq-question {
  background-color: rgba(18, 242, 128, 0.05);
  color: var(--primary);
}

/* ========================================
   CTA FINAL SECTION
   ======================================== */

.cta-final {
  background: linear-gradient(135deg, var(--primary), #0dd970);
  color: var(--secondary);
  padding: 4rem 0;
}

@media (max-width: 768px) {
  .cta-final {
    padding: 2rem 0;
  }
}

.cta-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.cta-final h2 {
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  margin-bottom: 1rem;
  color: var(--secondary);
}

.cta-final p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  color: rgba(21, 23, 22, 0.9);
}

.cta-final .btn-primary {
  background-color: var(--secondary);
  color: var(--primary);
}

.cta-final > .icon {
  width: 28px;
  height: 28px;
}

.cta-final .btn-primary:hover {
  background-color: rgba(21, 23, 22, 0.9);
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
  background-color: var(--secondary);
  color: var(--white);
  padding: 3rem 0 1rem 0;
}

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

.footer-section h4 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.6;
}

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

.footer-section ul li {
  margin-bottom: 0.75rem;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

/* ========================================
   WHATSAPP BUTTON FLOTANTE
   ======================================== */

.whatsapp-button {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background-color: var(--primary);
  color: var(--secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  box-shadow: 0 4px 12px rgba(18, 242, 128, 0.4);
  transition: all 0.3s ease;
  z-index: 50;
}

.whatsapp-button:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(18, 242, 128, 0.6);
}

@media (max-width: 640px) {
  .whatsapp-button {
    bottom: 1rem;
    right: 1rem;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
  .hero-buttons {
    flex-direction: column;
  }

  .steps-container {
    flex-direction: column;
  }

  .step-arrow {
    transform: rotate(90deg);
  }
}

@media (max-width: 480px) {
  .section {
    padding: 1.5rem 0;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  .section-header h2 {
    font-size: 1.2rem;
  }

  .section-header p {
    font-size: 0.9rem;
  }
  .cards-grid,
  .services-grid,
  .benefits-grid,
  .problems-grid {
    grid-template-columns: 1fr;
  }
}
