/* Estilos compartidos por todas las páginas */
@import url(navbar.css);
@import url(footer.css);
/* Reset de estilos globales */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

/* Variables de tema */
:root {
  /* Colores de texto */
  --color-texto: #f5f0e8; /* crema — texto general */
  --color-titulo: #c9a84c; /* dorado — títulos */
  --color-parrafo: #d4c9a8; /* crema suave — párrafos */
  --color-li: #f5f0e8; /* crema — listas */
  --color-leyend: #f5f0e8;
  --color-general: #f5f0e8;
  --color-texto-card: #f5f0e8;

  /* Colores de fondo */
  --bg-principal: #1a3a2a; /* verde oscuro — fondo general */
  --bg-nav: #122a1e; /* verde más oscuro — header */
  --bg-footer: #071a12; /* verde casi negro — footer */
  --bg-form: rgba(255, 255, 255, 0.05);
  --border-form: #c9a84c; /* dorado — bordes form */
  --bg-card:#1f4433;

  /* Colores de acento */
  --color-acento: #c9a84c; /* dorado principal */
  --color-acento2: #e8d5a0; /* dorado claro — hover */
  --color-acento3: #f5f0e8; /* crema — detalle suave */

  /* Tamaños de fuente */
  --fs-h1: clamp(2.5rem, 5vw, 3.5rem);
  --fs-h2: clamp(2rem, 4vw, 3rem);
  --fs-h3: clamp(1.75rem, 3vw, 2.4rem);
  --fs-h4: clamp(1.4rem, 2.2vw, 2rem);
  --fs-h5: clamp(1.25rem, 1.8vw, 1.6rem);
  --fs-h6: clamp(1rem, 1.5vw, 1.3rem);
  --fs-label: clamp(0.85rem, 1.2vw, 1rem);
  --fs-small: 0.8rem; /* 12.8px — consistente en todos los tamaños */

}

/* Se inicializa los márgenes / Initialize margins */
body {
  margin: 0;
  padding: 0;
  line-height: 1.5;
  background: var(--bg-principal);

  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

section {
  /*si el nav queda bloqueado se usa, scroll-margin-top
  para que valla al principio otra seccion y no en cualquier lado
  */
  scroll-margin-top: 33vh;
  /*margen de distancia entre arriba  y abajo y espacio 0 en los laterales */
  margin: 0;
  margin-bottom: 2rem;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
legend,
input,
small {
  margin: 0;
}

/* general.css — aplica a todo */

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--color-general);
}

legend {
  color: var(--color-leyend);
}
p {
  color: var(--color-texto);
}

/* Tipografía / Typography */
h1 {
  font-family: "Raleway", sans-serif;
  font-size: var(--fs-h1);
}

h2 {
  font-family: "Raleway", sans-serif;
  font-size: var(--fs-h2);
}

h3 {
  font-family: "Raleway", sans-serif;
  font-size: var(--fs-h3);
}

h4 {
  font-family: "Raleway", sans-serif;
  font-size: var(--fs-h4);
}

h5 {
  font-family: "Raleway", sans-serif;
  font-size: var(--fs-h5);
}

h6 {
  font-family: "Raleway", sans-serif;
  font-size: var(--fs-h6);
}

p {
  font-family: "Nunito", sans-serif;
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  line-height: 1.6;
}

span {
  font-family: "Nunito", sans-serif;
  font-size: clamp(1rem, 1.2vw, 1.1rem);
}

legend {
  font-family: "Nunito", sans-serif;
  font-size: clamp(1rem, 1.2vw, 1.1rem);
}

label {
  font-size: var(--fs-label);
  font-family: "Nunito", sans-serif;
}

small {
  font-size: var(--fs-small);
  font-family: "Nunito", sans-serif;
}

/* Se quita el subrayado y el espacio de la izquierda de los elementos li */
li {
  list-style: none !important;
  padding-left: 0;
}

/* Se quita el subrayado y se alinean los elementos "ancla" */
a {
  text-decoration: none;
  text-align: initial;
  color: var(--color-general);
}

/* Link dentro de li */
li a {
  display: flex;
  flex-direction: row;
}

/* Hover de links */
a:hover {
  color: var(--color-acento2);
  background-color: transparent;
  transition: color 0.3s ease;
}

/* Botón flotante WhatsApp
   Div padre */
.floating-whatsapp {
  position: fixed;
  bottom: 60px;
  right: 30px;
  z-index: 100;
}

/* Link del botón flotante */
.floating-whatsapp a {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: #1fae54;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  transition: all 0.2s ease;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2); /* Sombra base */
}

/* SVG del botón flotante */
.floating-whatsapp a svg {
  width: 30px;
  height: 30px;
}

/* Hover del botón flotante */
.floating-whatsapp a:hover {
  color: white;
  background-color: #1fae54; /* verde más oscuro para indicar hover */
  transform: translateY(-2px); /* el botón "sube" 2px */
}

/* Definición de fuentes */

/* Raleway - Fuente principal */
@font-face {
  font-family: "Raleway", "sans-serif";
  src: url(../fonts/Raleway/Raleway-VariableFont_wght.ttf);
}

/* Nunito - Fuente secundaria */
@font-face {
  font-family: "Nunito", "sans-serif";
  src: url(../fonts/Nunito/Nunito-VariableFont_wght.ttf);
}

/* Botón CTA — compartido entre Home y Servicios */
.hero-cta {
  display: block;
  width: fit-content;
  margin: 1rem auto 1.5rem auto;
  padding: 0.75rem 2rem;
  background: var(--color-acento);
  color: #000;
  border-radius: 30px;
  font-weight: bold;
  font-family: "Raleway", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.hero-cta:hover {
  background: var(--color-acento2);
  transform: translateY(-2px);
  color: #000;
}

/* Sobreescribir solo en mobile */
@media (max-width: 480px) {
  :root {
    --fs-h1: 2rem;
    --fs-h2: 1.75rem;
    --fs-h3: 1.5rem;
    --fs-h4: 1.3rem;
    --fs-h5: 1.1rem;
    --fs-h6: 0.95rem;
    --fs-small: 0.75rem; /* 12px — compacto pero legible */
  }
}
