/* ====================
   IMPORTACIONES Y FUENTES
   ==================== */
@import url("https://fonts.googleapis.com/css2?family=Quicksand:wght@300..700&display=swap");

@font-face {
  font-family: "LeJour";
  src: url(/fonts/LeJour.otf) format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
  /* Mejora para rendimiento */
}

/* ====================
      VARIABLES
      ==================== */
:root {
  /* Colores principales */
  --m-color: #b5200f;
  --s-color: #8e3131;
  --bg-color: var(--s-color);
  --b-color: #efe9e4;
  --text-color: #000;

  /* Colores auxiliares */
  --aux-color: #8c776a;
  --aux2-color: #c6b7a8;
  --hover-color: #ffffff;
  --accent-color: #f5c6c6;

  /* Transiciones y efectos */
  --transition-speed: 0.3s;
  --box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  --hover-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);

  /* Inputs */
  --input-bg: rgba(255, 255, 255, 0.1);
  --input-focus: rgba(255, 255, 255, 0.2);

  /* Tipografía */
  --font-family1: "LeJour", serif;
  --font-family2: "Quicksand", sans-serif;

  /* Tamaños responsivos */
  --container-width: 1200px;
  --mobile-breakpoint: 768px;
  --tablet-breakpoint: 992px;
}

/* ====================
      RESET & BASE
      ==================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Desplazamiento suave */
  font-size: 16px;
  /* Base para rem */
}

body {
  background-color: var(--aux2-color);
  font-family: var(--font-family2);
  line-height: 1.6;
  color: var(--text-color);
  overflow-x: hidden;
}

/* Tipografía base */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--b-color);
  font-family: var(--font-family1);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

p {
  color: var(--b-color);
  font-family: var(--font-family2);
  margin-bottom: 1rem;
}

a {
  color: var(--b-color);
  font-family: var(--font-family2);
  text-decoration: none;
  transition: color var(--transition-speed) ease;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

li {
  list-style: none;
}

/* ====================
      UTILIDADES
      ==================== */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

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

.mt-1 {
  margin-top: 0.5rem;
}

.mt-2 {
  margin-top: 1rem;
}

.mt-3 {
  margin-top: 1.5rem;
}

.mt-4 {
  margin-top: 2rem;
}

.mt-5 {
  margin-top: 3rem;
}

.mb-1 {
  margin-bottom: 0.5rem;
}

.mb-2 {
  margin-bottom: 1rem;
}

.mb-3 {
  margin-bottom: 1.5rem;
}

.mb-4 {
  margin-bottom: 2rem;
}

.mb-5 {
  margin-bottom: 3rem;
}

.hidden {
  display: none;
}

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

/* ====================
      NAVBAR
      ==================== */

.publi-cont {
  display: flex;
  text-align: center;
  flex-direction: column;
  padding: 3rem;
  background-color: var(--s-color);
  color: var(--b-color);
  font-size: 1.2rem;
  font-weight: bold;
}

.h2-publi {
  font-family: var(--font-family1);
  text-transform: uppercase;
  color: var(--b-color);
  font-size: 2rem;
  margin-bottom: 2rem;
  letter-spacing: 0.2rem;
  font-weight: normal;
}

.text-publi {
  font-family: var(--font-family1);
  text-transform: uppercase;
  color: var(--b-color);
  font-size: 1.2rem;
  margin-bottom: 2rem;
  letter-spacing: 0.2rem;
  font-weight: normal;
}

.cont-img-publi {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
}

.div-publi {
  width: 30%;
  color: var(--text-color);
  background-color: var(--b-color);
  border: solid 2px transparent;
  border-radius: 10px;
  overflow: hidden;
  padding: 2rem;
}

.div-publi h2 {
  color: var(--text-color);
  font-size: 1.5rem;
  text-align: center;
}

.div-publi p {
  color: var(--aux-color);
  text-transform: uppercase;
  font-size: 1.2rem;
  text-align: center;
  letter-spacing: 0.2rem;
  margin: 1.5rem;
}

.list-publi {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  font-weight: normal;
  margin-bottom: 2rem;
}

.button-publi {
  width: 20%;
  margin: 2rem 0 1rem 0;
  background-color: var(--b-color);
  color: var(--s-color);
}

.button-publi:hover {
  background-color: var(--m-color);
  color: var(--b-color);
}

.navbar {
  width: 100%;
  background-color: var(--b-color);
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-container {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(2, auto);
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.logo {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.5rem 0;
}

.logo img {
  width: 160px;
  height: auto;
  transition: transform var(--transition-speed) ease;
}

.logo img:hover {
  transform: scale(1.05);
}

.nav-links {
  padding-bottom: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  text-align: center;
  color: var(--text-color);
  font-size: 1rem;
  font-weight: 500;
  padding: 0.5rem;
  border-radius: 5px;
  transition: all var(--transition-speed) ease-in-out;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: var(--m-color);
  transition: width var(--transition-speed) ease;
}

.nav-links a:hover {
  color: var(--m-color);
}

.nav-links a:hover::after {
  width: 80%;
}

.nav-links a.active {
  color: var(--m-color);
  font-weight: 600;
}

.nav-links a.active::after {
  width: 80%;
}

.navbar-toggle {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 2fr;
  min-height: 70vh;
  background-color: var(--aux2-color);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("/assets/pattern.svg");
  background-size: cover;
  opacity: 0.05;
  z-index: 1;
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 3rem;
  position: relative;
  z-index: 2;
}

.titulo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2rem 0;
}

.titulo img {
  width: 30%;
  filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.2));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0);
  }
}

.hero-text p {
  font-family: var(--font-family2);
  font-size: 2.5rem;
  color: var(--b-color);
  text-align: center;
  margin-bottom: 1.5rem;
  letter-spacing: 1rem;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.hero-text .pmi {
  font-size: 2.5rem;
  text-align: center;
  letter-spacing: 1rem;
  font-weight: 300;
}

.hero-text .dpf {
  margin-left: 1rem;
  font-weight: 500;
}

.button-contact {
  visibility: hidden;
  opacity: 0;
  width: 100%;
  max-width: 300px;
  height: 50px;
  margin-top: 2rem;
  background-color: var(--m-color);
  color: var(--b-color);
  border: none;
  border-radius: 25px;
  font-family: var(--font-family2);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.button-contact:hover {
  background-color: var(--s-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* ====================
      SLIDER
      ==================== */
.slider-container {
  width: 85%;
  max-width: 900px;
  position: relative;
  overflow: visible;
  border-radius: 25px;
  margin: 40px auto;
  background-color: var(--aux-color);
  box-shadow: var(--box-shadow);
}

.slider-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 30px 0;
  border-radius: 16px;
}

.slider {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  height: 400px;
  padding: 0 10%;
}

.slide {
  min-width: 60%;
  height: 100%;
  margin: 0 2.5%;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  transition: all 0.4s ease;
  transform-origin: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  background-color: var(--b-color);
}

.slide.active {
  transform: scale(1);
  opacity: 1;
  z-index: 20;
}

.slide:not(.active) {
  transform: scale(0.8);
  opacity: 0.6;
  z-index: 1;
}

.slide:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

.slide.active:hover {
  transform: scale(1.05);
}

.slide-content {
  animation: fadeIn 0.5s forwards;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 4fr 1fr;
  height: 100%;
  width: 100%;
  position: relative;
}

.img-slider {
  aspect-ratio: 1/1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  grid-row: 1;
  transition: transform 0.5s ease;
}

.slide:hover .img-slider {
  transform: scale(1.05);
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background-color: var(--b-color);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-size: 20px;
  color: var(--text-color);
  z-index: 10;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s;
}

.arrow:hover {
  background-color: #f8f8f8;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

.bars-container {
  display: flex;
  justify-content: center;
  margin-top: 25px;
  position: relative;
  z-index: 0;
}

.bar {
  width: 35px;
  height: 4px;
  background-color: var(--b-color);
  margin: 0 6px;
  cursor: pointer;
  transition: all 0.4s;
  border-radius: 2px;
}

.bar.active {
  background-color: #333;
  width: 50px;
}

.bar:hover {
  background-color: #888;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

/* ====================
      SERVICIOS SECTION
      ==================== */
.services-heading {
  text-align: center;
  margin: 3rem 0 5rem;
}

.services-heading h2 {
  font-family: var(--font-family1);
  font-size: 2.75rem;
  color: var(--s-color);
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
  font-weight: 700;
}

.services-heading h2::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--s-color), var(--m-color));
  border-radius: 2px;
  transition: width 0.4s ease;
}

.services-heading h2:hover::after {
  width: 100%;
}

.services-heading p {
  color: var(--aux-color);
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.8rem;
  line-height: 1.6;
}

.section {
  margin: 6rem 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  background-color: var(--b-color);
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
  min-height: 380px;
  position: relative;
}

.section:hover {
  box-shadow: var(--hover-shadow);
  transform: translateY(-5px) !important;
}

.section.from-right {
  grid-template-columns: 1fr 1fr;
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-content {
  padding: 4rem 3.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section-badge {
  position: absolute;
  top: 2rem;
  left: 0;
  background: linear-gradient(90deg, var(--s-color), var(--m-color));
  color: var(--b-color);
  padding: 0.5rem 1.8rem 0.5rem 3.5rem;
  font-size: 1.2rem;
  font-family: var(--font-family1);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  clip-path: polygon(0 0, 100% 0, 92% 100%, 0% 100%);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.section h2 {
  font-family: var(--font-family1);
  font-size: 2rem;
  margin-top: 2rem;
  margin-bottom: 1.5rem;
  color: var(--s-color);
  position: relative;
  font-weight: 700;
}

.section-underline {
  display: block;
  width: 140px;
  height: 4px;
  background: linear-gradient(90deg, var(--s-color), var(--accent-color));
  margin-bottom: 2rem;
  transition: width 0.4s ease, transform 0.4s ease;
  border-radius: 2px;
}

.section:hover .section-underline {
  width: 80%;
}

.text-content {
  font-family: var(--font-family2);
  line-height: 1.8;
  display: flex;
  flex-direction: column;
}

.section p {
  margin-bottom: 2rem;
  color: var(--aux-color);
  font-size: 1.25rem;
}

.features-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  margin-bottom: 2.5rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  transition: transform 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-5px);
}

.feature-text {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-color);
}

.image-sidebar {
  position: relative;
  background: linear-gradient(270deg, var(--s-color), var(--b-color));
  overflow: hidden;
}

.image-sidebar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.8);
  transition: transform 0.4s ease;
}

.section:hover .image-sidebar img {
  transform: scale(1.05);
}

.logo-container {
  position: absolute;
  top: 30%;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 5.5rem;
  text-align: center;
  transition: transform 0.3s ease;
}

.section:hover .logo-container {
  transform: translateY(-5px);
}

.brand-logo {
  aspect-ratio: 2/3;
  width: 100%;
  height: 80%;
  margin: 2.5rem;
  transition: transform 0.4s ease;
}

.section:hover .brand-logo {
  transform: scale(1.08);
}

.service-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.4s ease;
  fill: var(--s-color);
}

.section:hover .service-icon {
  transform: rotate(10deg);
}

.sidebar-title {
  color: var(--text-color);
  filter: brightness(0.8);
  font-family: var(--font-family1);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.logo-container p {
  color: var(--s-color);
  font-size: 1.3rem;
  font-family: var(--font-family2);
  font-weight: 800;
  line-height: 1.6;
}

.button {
  display: inline-block;
  padding: 1rem 2.2rem;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  font-family: var(--font-family2);
  text-align: center;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  align-self: flex-start;
  position: relative;
  overflow: hidden;
}

.button-hero {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem 2.2rem;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  font-family: var(--font-family2);
  text-align: center;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.button-primary {
  background: linear-gradient(90deg, var(--m-color), var(--s-color));
  color: var(--b-color);
  border: none;
}

.button-primary:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 20px rgba(181, 32, 15, 0.3);
}

.button::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 9px;
  background: rgba(255, 255, 255, 0.3);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 5) translate(-50%);
  transform-origin: 50% 50%;
}

.button:hover::after {
  animation: ripple 1.6s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 1;
  }

  20% {
    transform: scale(25, 25);
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: scale(40, 40);
  }
}

/* ====================
      FOOTER
      ==================== */
.footer {
  background-color: var(--s-color);
  color: var(--b-color);
  padding: 3rem;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--accent-color),
    transparent
  );
}

.footer-container {
  max-width: var(--container-width);
  padding: 2rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  padding-right: 3rem;
  width: 100%;
}

.footer-brand h1 {
  font-family: var(--font-family1);
  font-size: 2.5rem;
  color: var(--b-color);
  margin-bottom: 1rem;
}

.footer-tagline {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.5;
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

.social-wrapper {
  display: flex;
  gap: 1rem;
  margin-top: auto;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--b-color);
  text-decoration: none;
  transition: all var(--transition-speed);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.social-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.social-link svg {
  width: 18px;
  height: 18px;
  transition: all var(--transition-speed);
}

.social-link:hover svg {
  transform: scale(1.2);
}

.social-link::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.5s, height 0.5s;
}

.social-link:hover::before {
  width: 100%;
  height: 100%;
}

.footer-heading {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
  cursor: pointer;
  color: var(--b-color);
}

.footer-heading::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--accent-color);
  transition: width var(--transition-speed);
}

.footer-heading:hover::after {
  width: 100%;
}

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

.footer-quicklinks {
  display: flex;
  flex-direction: column;
  margin-top: 2rem;
}

.quicklinks-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(3, auto);
  gap: 1rem;
  list-style: none;
}

.quicklink-item a {
  color: var(--b-color);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all var(--transition-speed);
  opacity: 0.9;
  display: block;
  padding: 0.3rem 0;
}

.quicklink-item a:hover {
  color: var(--hover-color);
  opacity: 1;
  transform: translateX(3px);
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.8;
}

.footer-bottom p {
  margin-bottom: 0.5rem;
}

.divider {
  display: inline-block;
  margin: 0 0.5rem;
}

.footer-bottom a {
  color: var(--b-color);
  text-decoration: none;
  transition: all var(--transition-speed);
}

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

/* ====================
      FORMULARIO DE CONTACTO
      ==================== */
/* Formulario de contacto */
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  width: 100%;
  margin-top: 0.5rem;
  padding: 1rem;
  width: 100%;
}

.form-group.asunto option {
  padding: 1rem;
  background-color: var(--s-color);
  color: var(--b-color);
}

.form-group.asunto select {
  appearance: none;
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  cursor: pointer;
  transition: border-color 0.2s ease-in-out;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.form-label {
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0.9;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-input,
.form-textarea {
  padding: 0.8rem 1rem;
  background-color: var(--input-bg);
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--b-color);
  font-size: 0.9rem;
  transition: all var(--transition-speed);
  outline: none;
  width: 100%;
}

.form-input:focus,
.form-textarea:focus {
  background-color: var(--input-focus);
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px rgba(245, 198, 198, 0.2);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(239, 233, 228, 0.6);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  max-height: 250px;
}

.char-counter {
  font-size: 0.8rem;
  text-align: right;
  opacity: 0.7;
  margin-top: 0.3rem;
}

.captcha-container {
  background-color: var(--input-bg);
  border-radius: 6px;
  width: fit-content;
  padding: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80px;
}

.captcha-placeholder {
  color: var(--b-color);
  opacity: 0.7;
  font-size: 0.9rem;
  text-align: center;
}

.submit-btn {
  background-color: rgba(255, 255, 255, 0.15);
  border: none;
  color: var(--b-color);
  padding: 1.8rem 1.5rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-speed);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  margin-top: 2rem;
  width: auto;
}

.submit-btn:hover {
  background-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.submit-btn svg {
  width: 18px;
  height: 18px;
}

/* Enlaces rápidos en grid 3x2 */
.quicklinks-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(3, auto);
  gap: 1rem;
  list-style: none;
}

.quicklink-item a {
  color: var(--b-color);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all var(--transition-speed);
  opacity: 0.9;
  display: block;
}

.quicklink-item a:hover {
  color: var(--hover-color);
  opacity: 1;
  transform: translateX(3px);
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.8;
}

.footer-bottom p {
  margin-bottom: 0.5rem;
}

.divider {
  display: inline-block;
  margin: 0 0.5rem;
}

.footer-bottom a {
  color: var(--b-color);
  text-decoration: none;
  transition: all var(--transition-speed);
}

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

/* Efecto de hover en los iconos sociales */
.social-link::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.5s, height 0.5s;
}

.social-link:hover::before {
  width: 100%;
  height: 100%;
}

.footer-columns {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin-top: 2rem;
}

.footer-quicklinks {
  display: flex;
  flex-direction: column;
  margin-top: 2rem;
}

/* Mensajes de respuesta del formulario */
.form-message {
  padding: 0.8rem;
  border-radius: 6px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: none;
}

.form-message.success {
  background-color: rgba(76, 175, 80, 0.2);
  color: #c8e6c9;
  border: 1px solid rgba(76, 175, 80, 0.3);
}

.form-message.error {
  background-color: rgba(244, 67, 54, 0.2);
  color: #ffcdd2;
  border: 1px solid rgba(244, 67, 54, 0.3);
}

/* Animación flotante para WhatsApp */
@keyframes floatWhatsApp {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* Estilos para el contenedor del botón flotante de WhatsApp y el texto */
.whatsapp-container {
    position: fixed;
    bottom: 20px; 
    right: 20px;  
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Alinea el texto y el botón a la derecha si tienen anchos diferentes */
    animation: floatWhatsApp 3s ease-in-out infinite; /* Aplicamos la animación */
}

.whatsapp-text {
    background-color: #075E54; /* Verde oscuro de WhatsApp */
    color: #FFFFFF;
    padding: 10px 18px; /* Un poco más de padding */
    border-radius: 15px 15px 0 15px; /* Forma de burbuja de chat */
    margin-bottom: 10px;
    font-size: 1rem; /* Texto un poco más grande */
    font-family: var(--font-family2); /* Quicksand */
    box-shadow: 1px 1px 4px rgba(0,0,0,0.2);
    white-space: nowrap; /* Evita que el texto se divida en múltiples líneas */
}

.whatsapp-float { /* El botón circular en sí */
    width: 65px; /* Más grande */
    height: 65px; /* Más grande */
    background-color: #25D366; /* Color verde de WhatsApp */
    color: #FFF; /* Color del icono */
    border-radius: 50px; /* Para hacerlo circular */
    text-align: center;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none; /* Por si acaso */
}

.whatsapp-float svg {
    width: 32px; /* Ajusta el tamaño del SVG si es necesario */
    height: 32px;
    fill: currentColor; /* Hereda el color del <a> */
}

.whatsapp-float:hover {
    transform: scale(1.1); /* Efecto de zoom al pasar el mouse */
    box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.4);
}

/* =================================
   ESTILOS RESPONSIVOS (MEDIA QUERIES)
   ================================= */

/* Tablets y móviles más pequeños */
@media (max-width: 768px) {
  .navbar {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  .publi {
    width: 100%;
    overflow: hidden;
  }

  .cont-img-publi {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
  }

  .div-publi {
    width: 100%;
    height: 20%;
    margin: 2em;
    padding: 1rem;
  }

  .slider-container {
    display: none;
  }

  .button-hero {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    padding: 2rem 0;
  }

  .titulo {
    margin-top: 0;
    margin-bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .hero-tagline {
    font-size: 0.8rem;
    margin: 0;
    text-align: center;
  }

  .hero-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .button-contact {
    display: flex;
    visibility: visible;
    opacity: 1;
    width: 30%;
    height: 50px;
    margin-top: 1rem;
    background-color: var(--m-color);
    color: var(--b-color);
  }

  .section {
    grid-template-columns: 1fr;
  }

  .section.from-right {
    grid-template-columns: 1fr;
  }

  .image-sidebar {
    min-height: 300px;
  }

  .features-list {
    grid-template-columns: 1fr;
  }

  .section {
    margin: 4rem 0;
  }

  .section-content {
    padding: 3rem 2rem;
  }

  .section-badge {
    font-size: 0.6rem;
  }

  .section h2 {
    font-size: 1rem;
  }

  .section p {
    font-size: 0.8rem;
  }

  .feature-text {
    font-size: 0.8rem;
  }

  .container {
    padding: 1.5rem;
  }

  .services-heading {
    margin: 2rem 0 3rem;
  }

  .services-heading h2 {
    font-size: 1.4rem;
  }

  .services-heading p {
    font-size: 1rem;
  }

  .button {
    padding: 0.8rem 1.5rem;
    font-size: 0.8rem;
    width: 100%;
  }

  .image-sidebar {
    display: none;
  }

  .footer{
    margin: 0px;
  }

  .footer-container {
    padding: 0px;
  }

  .footer-brand {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centramos el contenido de la marca: logo, tagline, social, form */
    text-align: center;  /* Para el texto dentro de la marca */
    padding-right: 0;    /* Quitamos el padding específico de escritorio */
    padding-left: 0;     /* Aseguramos no tener padding lateral propio */
    margin-bottom: 2.5rem; /* Espacio antes de las columnas de enlaces/info */
  }

  .footer-brand h1 { /* El logo "JunoStudio" */
    font-size: 2.5rem; /* Un poco más grande para destacar */
    margin-bottom: 0.5rem;
  }

  .footer-tagline {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .social-wrapper {
    justify-content: center; /* Centramos los iconos sociales */
    margin-bottom: 2rem;
  }

  .form-group.full-width {
    grid-column: span 1;
  }
  .contact-form {
    grid-template-columns: 1fr; /* Campos del formulario en una sola columna */
    width: 100%;                /* Ocupa todo el ancho disponible en .footer-brand */
    max-width: 100%;            /* Redundante con width:100% pero no hace daño */
    padding: 0;                 /* Quitamos padding interno del form, los form-group ya tienen su espacio */
    gap: 1rem;                  /* Espacio entre los form-group */
  }

  .submit-btn {
    width: 100%; /* Botón de envío a ancho completo */
    padding: 1rem 1.5rem; /* Padding más adecuado para móvil */
    margin-top: 1.5rem; /* Margen superior ligeramente reducido */
  }

  .form-input,
  .form-textarea {
    font-size: 1rem; 
    padding: 0.9rem 1rem; /* Ajustamos padding para mejor toque */
  }
  .form-label {
    font-size: 0.9rem; 
    margin-bottom: 0.3rem; /* Menos espacio entre label e input */
  }
  .footer {
    padding: 2rem 1rem; /* Reducimos el padding general del footer en móvil */
  }

  .footer-bottom {
    margin-top: 2rem;
    padding-top: 1rem;
    font-size: 0.8rem;
  }

  .footer-heading { /* Para "Enlaces Rápidos" e "Información de Contacto" */
    font-size: 1.3rem;
    margin-bottom: 1rem;
    text-align: left; /* Alineamos los headings a la izquierda */
    display: block; /* Aseguramos que ocupe su línea */
  }


  .footer-columns {
    display: flex; /* Mantenemos flex */
    flex-direction: column; /* Hacemos que los hijos se apilen verticalmente */
    align-items: flex-start; /* Alineamos al inicio */
    gap: 2rem; /* Espacio entre las columnas apiladas */
    width: 100%;
    margin-top: 0; /* Quitamos el margen superior que tenía en desktop */
  }

  .footer-quicklinks,
  .footer-contact-info {
    width: 100%; /* Cada columna ocupa todo el ancho */
    margin-top: 0; /* Reseteamos el margin-top que tenía .footer-contact-info */
  }

  .quicklinks-grid {
    grid-template-columns: 1fr; /* Enlaces rápidos en una sola columna */
  }

  .whatsapp-container {
        bottom: 15px;
        right: 15px;
  }
  .whatsapp-text {
      font-size: 0.8rem;
      padding: 6px 12px;
      margin-bottom: 8px;
  }
  .whatsapp-float {
        width: 50px;
        height: 50px;
  }
  .whatsapp-float svg {
        width: 28px;
        height: 28px;
  }
}
