/* 
===============================================
RESET.CSS - Estilos base y reset global
===============================================
Este archivo contiene el reset CSS y estilos 
globales que se aplican a toda la página.
*/

/* RESET UNIVERSAL */

/* COLORES */
:root {
  --color-lila-principal: rgb(211, 195, 228);
  --color-lila-oscuro: rgb(158, 133, 186);
  --color-lila-fondo-rayas: rgb(240, 235, 245);
  --color-lila-mariposa-claro: rgb(223, 212, 254);
  --color-lila-mariposa-ocuro: rgb(110, 125, 212);
  --color-celeste-mariposa: rgb(208, 234, 255);
  --color-rosa-plumas: rgb(197, 164, 183);
  --color-beige-plumas: rgb(237, 218, 204);
  --color-plata-corona: rgb(207, 204, 215);
}

/* FUENTES */
@font-face {
  font-family: "Goudy Old Style";
  src: url("../assets/fonts/GOUDOS.TTF") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Palatino normal";
  src: url("../assets/fonts/palatinolinotype_roman.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Palatino italic";
  src: url("../assets/fonts/palatinolinotype_italic.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Palatino negrita";
  src: url("../assets/fonts/palatinolinotype_bold.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Palatino italic negrita";
  src: url("../assets/fonts/palatinolinotype_bolditalic.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Lapidary Roman";
  src: url("../assets/fonts/LapidaryRoman.ttf");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

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

*::before,
*::after {
  box-sizing: border-box;
}

/* ESTILOS BASE DEL BODY */
body {
  font-family: "Palatino normal", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #2c2c2c;
  background-color: #fefefe;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* TIPOGRAFÍAS GLOBALES */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Playfair Display", serif;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  text-align: center;
  margin-bottom: 3rem;
  color: #2c2c2c;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
  line-height: 1.7;
  font-size: 1.2rem;
}

/* ENLACES GLOBALES */
a {
  color: var(--color-lila-principal);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-lila-oscuro);
}

/* IMÁGENES RESPONSIVAS */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* CONTENEDOR PRINCIPAL */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* SECCIONES GLOBALES */
.section {
  padding: 80px 0;
}

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

/* BOTONES GLOBALES */
/* BOTONES GLOBALES */
.btn {
  display: inline-block;
  padding: 12px 30px;
  background: linear-gradient(
    135deg,
    var(--color-lila-oscuro) 0%,
    var(--color-lila-principal) 100%
  );
  color: #2c2c2c; /* Puedes cambiar esto a white si quieres que el texto del botón resalte más */
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  /* Cambiamos la sombra dorada por una lila */
  box-shadow: 0 4px 15px rgba(158, 133, 186, 0.3);
}

.btn:hover {
  transform: translateY(-2px);
  /* Sombra lila más pronunciada al pasar el mouse */
  box-shadow: 0 8px 25px rgba(158, 133, 186, 0.5);
  color: #2c2c2c;
}

.btn:active {
  transform: translateY(0);
  /* Sombra lila al hacer clic */
  box-shadow: 0 2px 10px rgba(158, 133, 186, 0.3);
}

/* UTILIDADES DE SPACING */
.mb-1 {
  margin-bottom: 0.5rem;
}
.mb-2 {
  margin-bottom: 1rem;
}
.mb-3 {
  margin-bottom: 1.5rem;
}
.mb-4 {
  margin-bottom: 2rem;
}

.mt-1 {
  margin-top: 0.5rem;
}
.mt-2 {
  margin-top: 1rem;
}
.mt-3 {
  margin-top: 1.5rem;
}
.mt-4 {
  margin-top: 2rem;
}

/* UTILIDADES DE TEXTO */
.text-center {
  text-align: center;
}
.text-left {
  text-align: left;
}
.text-right {
  text-align: right;
}

.font-light {
  font-weight: 300;
}
.font-normal {
  font-weight: 400;
}
.font-semibold {
  font-weight: 600;
}
.font-bold {
  font-weight: 700;
}

/* COLORES DE UTILIDAD */
.text-gold {
  color: #d4af37;
}
.text-dark {
  color: #2c2c2c;
}
.text-gray {
  color: #666;
}
.text-light-gray {
  color: #999;
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 1200px) {
  .container {
    max-width: 100%;
    padding: 0 30px;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 14px;
  }

  h2 {
    margin-bottom: 2rem;
  }

  .btn {
    padding: 10px 25px;
    font-size: 0.9rem;
  }

  .container {
    padding: 0 20px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .btn {
    padding: 8px 20px;
    font-size: 0.85rem;
  }
}

/* SMOOTH SCROLLING Y PERFORMANCE */
html {
  scroll-behavior: smooth;
}

/* PRELOAD DE FUENTES PARA MEJORAR PERFORMANCE */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
