:root {
  --color-primary: #38023b;
  --color-secondary: #a288e3;
  --color-accent: #d64550;
  --color-background: #f2e3bc;
  --color-text: #333;
  --color-hover: #af7a6d;
  --color-white: #fff;
  --color-light-gray: #f7f7f7;
  --color-gris-hover: #f0eceb;
  --color-borde-card: #786464;
  --color-text-secondary: #666;
}

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

body {
  font-family: "Inter", sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-primary);
  background-color: var(--color-borde-card);
}

h1,
h2,
h3 {
  font-family: "Lora", serif;
  margin: 0;
  padding: 0;
}

ul {
  padding-left: 1.5rem;
}

strong {
  color: var(--color-accent);
}

main {
  padding: 2rem 1rem;
  max-width: 1200px;
  margin: auto;
  background-color: var(--color-background);
  box-shadow: 0 0 10px rgba(56, 2, 59, 0.1);
  border-radius: 8px;
}

section {
  margin-bottom: 3rem;
}

h2 {
  border-bottom: 2px solid var(--color-hover);
  padding-bottom: 0.5rem;
  color: var(--color-primary);
}

/* HEADER */
header {
  background-color: var(--color-primary);
  color: var(--color-background);
  padding: 2rem 1rem;
  text-align: center;
  position: relative;
}

header h1 {
  margin-bottom: 0.5rem;
}

header p {
  font-style: italic;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

nav ul li a {
  color: var(--color-secondary);
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
}

nav ul li a:hover {
  text-decoration: underline;
  color: var(--color-accent);
}

/* FOOTER */
.footer {
  background-color: var(--color-primary);
  color: var(--color-background);
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  margin-top: 3rem;
  border-top: 2px solid var(--color-secondary);
}

.footer a {
  color: var(--color-secondary);
  font-weight: bold;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
  color: var(--color-accent);
}

/* BOTON AGENDAR */
.boton-agendar {
  display: inline-block;
  background-color: var(--color-accent);
  color: var(--color-background);
  cursor: pointer;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  margin-top: 1.5rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.boton-agendar:hover {
  background-color: var(--color-hover);
  transform: translateY(-2px);
  color: #fff;
}

/* WHATSAPP */
.whatsapp-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  z-index: 1000;
  cursor: pointer;
  animation: pulse 2.5s infinite;

  /* ADICIONAR */
  border-radius: 50%;
  overflow: hidden;
  background-color: #25d366;
}

.whatsapp-button img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.6);
  transition: transform 0.2s ease;
}

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

.whatsapp-button .tooltip {
  opacity: 0;
  visibility: hidden;
  position: absolute;
  right: 110%;
  top: 50%;
  transform: translateY(-50%);
  background-color: #25d366;
  color: #fff;
  padding: 6px 12px;
  border-radius: 12px;
  white-space: nowrap;
  font-size: 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
}

.whatsapp-button:hover .tooltip {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.7);
  }
}

/* MENU */
.menu-toggle {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 1000;
}

.menu-toggle img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  cursor: pointer;
  transition: transform 0.2s;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 70px;
  right: 20px;
  background-color: var(--color-primary);
  border: 1px solid var(--color-secondary);
  border-radius: 8px;
  padding: 0.5rem 0;
  list-style: none;
  z-index: 1000;
  min-width: 180px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.dropdown-menu li a {
  display: block;
  padding: 0.75rem 1.25rem;
  color: var(--color-background);
  text-decoration: none;
  font-weight: bold;
}

.dropdown-menu li a:hover {
  background-color: var(--color-secondary);
  color: var(--color-primary);
  border-radius: 4px;
}

.dropdown-menu.show {
  display: block;
}

/* INICIO */
.inicio-contenido {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 3rem;
  padding: 4rem 2rem;
}

.inicio-texto,
.inicio-imagen {
  flex: 1 1 300px;
}

.inicio-imagen {
  text-align: right;
}

.inicio-imagen img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ACCORDION */
.accordion {
  max-width: 800px;
  margin: 0 auto;
}

.accordion-item {
  margin-bottom: 1rem;
  border: 1px solid var(--color-secondary);
  border-radius: 8px;
  overflow: hidden;
}

.accordion-button {
  width: 100%;
  background-color: var(--color-secondary);
  color: var(--color-primary);
  text-align: left;
  padding: 1rem;
  font-size: 1rem;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.accordion-button:hover {
  background-color: var(--color-hover);
  color: #fff;
}

.accordion-content {
  display: none;
  padding: 1rem;
  background-color: #fff;
  color: var(--color-primary);
  font-size: 0.95rem;
  line-height: 1.5;
}

.accordion-item.active .accordion-content {
  display: block;
}

/* TITULO */
.titulo-principal {
  text-align: center;
  margin-top: 40px;
  margin-left: 0;
  padding-left: 0;
  padding: 0 2rem;
}

.titulo-principal .nombre {
  display: block;
  font-size: 3rem;
  font-weight: 800;
  color: #3c2a4d;
}

.titulo-principal .titulo {
  display: block;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--color-text-secondary);
  margin-top: 5px;
}

/* PROBLEMAS */
.problemas-container {
  margin: 2rem 0;
}

.problemas-container h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  text-align: center;
  color: var(--color-text);
}

.problemas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  padding: 0 1rem;
}

.problema-card {
  background-color: var(--color-light-gray);
  border-left: 5px solid var(--color-borde-card);
  border-radius: 8px;
  padding: 1rem;
  font-weight: 500;
  color: var(--color-text);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
}

.problema-card:hover {
  transform: scale(1.02);
  background-color: var(--color-gris-hover);
}

/* UTILS */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease-out forwards;
  animation-delay: 0.2s;
}

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

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

html {
  scroll-behavior: smooth;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

/* RESPONSIVO */
@media (min-width: 1400px) {
  main {
    max-width: 90%;
  }
}

@media (max-width: 900px) {
  .inicio-contenido {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .whatsapp-button {
    width: 64px;
    height: 64px;
    bottom: 16px;
    right: 16px;
  }
  .whatsapp-button img {
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.5);
  }
  .whatsapp-button .tooltip {
    display: none !important;
  }
}

@media (max-width: 400px) {
  .whatsapp-button {
    width: 56px;
    height: 56px;
    bottom: 10px;
    right: 10px;
  }
}
