html {
  font-family: "Figtree", serif;
  font-size: 62.5%;
  box-sizing: border-box;
}

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

.contenedor {
  width: 80%;
  max-width: 140rem;
  margin: 0 auto;
}

h2 {
  font-size: 2.8rem;
  text-align: center;
}

h3 {
  font-size: 2rem;
}

h4 {
  font-size: 1.8rem;
  font-weight: 700;
}

a {
  text-decoration: none;
}

p {
  font-size: 1.8rem;
}

section {
  margin: 3rem 0;
}

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

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
/* Document
   ========================================================================== */
/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */
html {
  line-height: 1.15; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
}

/* Sections
   ========================================================================== */
/**
 * Remove the margin in all browsers.
 */
body {
  margin: 0;
}

/**
 * Render the `main` element consistently in IE.
 */
main {
  display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */
h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

/* Grouping content
   ========================================================================== */
/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */
hr {
  box-sizing: content-box; /* 1 */
  height: 0; /* 1 */
  overflow: visible; /* 2 */
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
pre {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/* Text-level semantics
   ========================================================================== */
/**
 * Remove the gray background on active links in IE 10.
 */
a {
  background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */
abbr[title] {
  border-bottom: none; /* 1 */
  text-decoration: underline; /* 2 */
  text-decoration: underline dotted; /* 2 */
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */
b,
strong {
  font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
code,
kbd,
samp {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/**
 * Add the correct font size in all browsers.
 */
small {
  font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */
sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/* Embedded content
   ========================================================================== */
/**
 * Remove the border on images inside links in IE 10.
 */
img {
  border-style: none;
}

/* Forms
   ========================================================================== */
/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */
button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-size: 100%; /* 1 */
  line-height: 1.15; /* 1 */
  margin: 0; /* 2 */
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */
button,
input { /* 1 */
  overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */
button,
select { /* 1 */
  text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */
button,
[type=button],
[type=reset],
[type=submit] {
  -webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */
button::-moz-focus-inner,
[type=button]::-moz-focus-inner,
[type=reset]::-moz-focus-inner,
[type=submit]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */
button:-moz-focusring,
[type=button]:-moz-focusring,
[type=reset]:-moz-focusring,
[type=submit]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */
fieldset {
  padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *    `fieldset` elements in all browsers.
 */
legend {
  box-sizing: border-box; /* 1 */
  color: inherit; /* 2 */
  display: table; /* 1 */
  max-width: 100%; /* 1 */
  padding: 0; /* 3 */
  white-space: normal; /* 1 */
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */
progress {
  vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */
textarea {
  overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */
[type=checkbox],
[type=radio] {
  box-sizing: border-box; /* 1 */
  padding: 0; /* 2 */
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */
[type=number]::-webkit-inner-spin-button,
[type=number]::-webkit-outer-spin-button {
  height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */
[type=search] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */
[type=search]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */
::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/* Interactive
   ========================================================================== */
/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */
details {
  display: block;
}

/*
 * Add the correct display in all browsers.
 */
summary {
  display: list-item;
}

/* Misc
   ========================================================================== */
/**
 * Add the correct display in IE 10+.
 */
template {
  display: none;
}

/**
 * Add the correct display in IE 10.
 */
[hidden] {
  display: none;
}

.btn-flotante {
  position: fixed;
  padding: 2rem;
  background-color: #71B100;
  width: 8rem;
  border-radius: 3rem;
  box-shadow: 0.2rem 0.4rem 0.5rem #333333;
  bottom: 3rem;
  right: 1rem;
  display: block;
  z-index: 1000;
  transition: none;
  transform: none;
}
@media (min-width: 768px) {
  .btn-flotante {
    bottom: 10.5rem;
    right: 10.5rem;
    width: 8rem;
  }
}

.btn {
  font-size: 2rem;
  padding: 2rem 1.5rem;
  color: #fff;
  background-color: #2b1cb1;
  border-radius: 1rem;
}

.header {
  background-color: #333333;
  padding: 1rem 0 3rem 0;
}
.header h2 {
  color: #fff;
  text-align: start;
}
.header.inicio {
  background-image: url("../../src/img/cortePortada2.jpg");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  min-height: 30rem;
}
@media (min-width: 768px) {
  .header.inicio {
    min-height: 45rem;
  }
}
.header.inicio .contenido-header {
  min-height: 30rem;
}
@media (min-width: 768px) {
  .header.inicio .contenido-header {
    min-height: 45rem;
  }
}

.contenido-header {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.contenido-header h1 {
  text-align: left;
  color: #fff;
  font-size: 3.4rem;
}
.contenido-header p {
  color: #fff;
  font-size: 2.4rem;
}

.sobre-nosotros {
  display: flex;
  flex-direction: column;
}
@media (min-width: 768px) {
  .sobre-nosotros {
    place-items: center;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
  }
}

.nosotros-textos .numeros {
  background: #2b1cb1;
  color: #fff;
  border-radius: 50%;
  display: inline-block;
  text-align: center;
  width: 3rem;
  height: 3rem;
  padding: 0.2rem;
  box-shadow: 0 0 0.6rem 0 rgba(0, 0, 0, 0.5);
  margin-right: 0.5rem;
  justify-content: center;
}
.nosotros-textos span {
  font-weight: 700;
}

.galeria-port {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}
@media (min-width: 768px) {
  .galeria-port {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 1200px) {
  .galeria-port {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.imagen-port {
  width: 100%;
  margin-bottom: 0;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  aspect-ratio: 4/3;
  border-radius: 1.2rem;
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.imagen-port img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.imagen-port:hover {
  transform: translateY(-0.4rem);
  box-shadow: 0 1.2rem 2.4rem rgba(0, 0, 0, 0.22);
}
.imagen-port:hover img {
  transform: scale(1.05);
}
.imagen-port:hover .hover-galeria {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.hover-galeria {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.95);
  background: linear-gradient(135deg, rgba(43, 28, 177, 0.85), rgba(0, 0, 0, 0.6));
  transition: all 0.35s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  padding: 1.5rem;
}
.hover-galeria p {
  color: #fff;
  margin: 0;
  font-weight: 600;
  letter-spacing: 0.05rem;
}

.btn-servicios {
  text-align: center;
  background-color: #333333;
  padding: 2.3rem;
}
.btn-servicios a {
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  background-color: #2b1cb1;
  padding: 1.3rem;
  border-radius: 1rem;
}
.btn-servicios a:hover {
  transition: ease-in 0.2s;
  color: #2b1cb1;
  background-color: #fff;
}

.seccion-contacto {
  padding: 4rem 0;
  background: linear-gradient(135deg, #333333, #252525);
  margin-bottom: 0;
}
.seccion-contacto h2 {
  font-size: 3.3rem;
  color: #E0B709;
  margin-bottom: 2.5rem;
}

.contenido-con {
  display: grid;
  gap: 2rem;
  text-align: left;
}
@media (min-width: 768px) {
  .contenido-con {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1200px) {
  .contenido-con {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.contacto-card {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 2rem;
  border-radius: 1.2rem;
  transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.contacto-card:hover {
  transform: translateY(-0.5rem);
  background-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.2);
}
.contacto-card a {
  color: #fff;
  font-size: 1.7rem;
  line-height: 1.5;
}
.contacto-card h4 {
  color: #E0B709;
  font-size: 2rem;
  margin: 0;
}

.mapa {
  grid-column: 1/-1;
  padding: 0;
  overflow: hidden;
}
.mapa iframe {
  width: 100%;
  min-height: 28rem;
  border: 0;
  display: block;
}

.btn-whatsapp {
  position: fixed;
  right: 2rem;
  bottom: 2rem;
  z-index: 100;
  transition: none;
  transform: none;
}

.btn-flotante {
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  box-shadow: 0 0.8rem 1.8rem rgba(0, 0, 0, 0.25);
  display: block;
}

.footer {
  padding: 2rem;
  background-color: #333333;
}
.footer h2 {
  color: #E0B709;
}

.galeria {
  padding: 3rem 0 5rem;
}
.galeria h1 {
  color: #2b1cb1;
  margin-bottom: 1rem;
  text-align: center;
}
.galeria-intro {
  text-align: center;
  color: #333333;
  margin-bottom: 3rem;
  max-width: 70rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}
.galeria-imagenes {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.5rem;
}
@media (min-width: 300px) {
  .galeria-imagenes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 768px) {
  .galeria-imagenes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 1200px) {
  .galeria-imagenes {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.galeria-item {
  overflow: hidden;
  border-radius: 1.2rem;
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.1);
  aspect-ratio: 4/3;
}
.galeria-imagen {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
  transition: transform 0.35s ease, filter 0.35s ease;
}
.galeria-imagen:hover {
  transform: scale(1.05);
  filter: brightness(1.05);
}

.modal {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.85);
  display: grid;
  place-items: center;
  padding: 2rem;
  z-index: 1000;
}
.modal-contenido {
  position: relative;
  max-width: min(90vw, 80rem);
  width: 100%;
}
.modal img {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  display: block;
  border-radius: 1.2rem;
  box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.35);
}
.modal .cerrar-modal {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: 0;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.95);
  color: #000000;
  font-size: 2.4rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.3s ease;
}
.modal .cerrar-modal:hover {
  transform: scale(1.05);
}

.about-services {
  padding: 4rem 0;
  background-color: #f7f7f7;
}

.servicios-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .servicios-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1200px) {
  .servicios-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.servicio-card {
  background-color: #fff;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.servicio-card:hover {
  transform: translateY(-0.4rem);
  box-shadow: 0 1.3rem 2.6rem rgba(0, 0, 0, 0.14);
}
.servicio-card img {
  width: 100%;
  height: 20rem;
  object-fit: cover;
  display: block;
}

.servicio-contenido {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}
.servicio-contenido h3 {
  margin: 0;
  color: #2b1cb1;
  font-size: 2.2rem;
}
.servicio-contenido p {
  margin: 0;
  color: #333333;
  line-height: 1.7;
}

.barra {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding-top: 3rem;
  position: relative;
}
@media (min-width: 768px) {
  .barra {
    flex-direction: row;
    justify-content: space-between;
  }
}
.barra a {
  color: #fff;
  font-size: 3rem;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 3rem;
  height: 3rem;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1000;
  gap: 0.5rem;
}
.menu-toggle span {
  width: 2.2rem;
  height: 0.25rem;
  background-color: #E0B709;
  border-radius: 0.125rem;
  transition: all 0.3s ease;
  display: block;
}
.menu-toggle.active span:first-child {
  transform: rotate(45deg) translate(0.8rem, 0.8rem);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:last-child {
  transform: rotate(-45deg) translate(0.8rem, -0.8rem);
}
@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }
}

.navegacion {
  position: absolute;
  left: 0;
  top: 11rem;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  display: flex;
  flex-direction: column;
  z-index: 999;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}
.navegacion.active {
  max-height: 300px;
}
@media (min-width: 768px) {
  .navegacion {
    position: static;
    width: auto;
    background-color: transparent;
    max-height: none;
    overflow: visible;
    display: flex;
    flex-direction: row;
    align-items: center;
    box-shadow: none;
  }
}
.navegacion a {
  color: #E0B709;
  text-decoration: none;
  font-size: 1.5rem;
  display: block;
  text-align: center;
  padding: 1rem;
  border-bottom: 1px solid rgba(224, 183, 9, 0.2);
  transition: all 0.2s ease;
}
.navegacion a:hover {
  background-color: rgba(224, 183, 9, 0.1);
  color: #fff;
}
@media (min-width: 768px) {
  .navegacion a {
    font-size: 1.3rem;
    padding: 0;
    border-bottom: none;
    margin-right: 2rem;
    border-bottom: 2px solid transparent;
  }
  .navegacion a:hover {
    background-color: transparent;
    border-bottom-color: #E0B709;
  }
  .navegacion a:last-of-type {
    margin: 0;
  }
}

.contacto-bg {
  background-image: url("/src/img/img2.JPG");
  height: 32rem;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  border-radius: 1.5rem 1.5rem 0 0;
}

.formulario {
  background-color: #fff;
  border-radius: 0 0 1.5rem 1.5rem;
  margin: -2rem auto 3rem auto;
  padding: 3rem;
  width: min(90%, 70rem);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.12);
  position: relative;
  z-index: 1;
}
@media (min-width: 300px) {
  .formulario {
    padding: 2rem 1.5rem;
  }
}

.campo {
  display: flex;
  flex-direction: column;
  margin-bottom: 2rem;
  gap: 0.8rem;
}
@media (min-width: 768px) {
  .campo {
    flex-direction: row;
    align-items: flex-start;
    gap: 2rem;
  }
}

.campo__label {
  color: #333333;
  font-weight: 700;
  flex: 0 0 9rem;
  text-align: left;
}
@media (min-width: 768px) {
  .campo__label {
    text-align: right;
  }
}

.campo__field {
  flex: 1;
  border: 1px solid #d0d0d0;
  border-radius: 0.8rem;
  padding: 1.2rem 1.4rem;
  font: inherit;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.campo__field:focus {
  outline: none;
  border-color: #2b1cb1;
  box-shadow: 0 0 0 0.2rem rgba(43, 28, 177, 0.15);
}

.campo__field--textarea {
  min-height: 16rem;
  resize: vertical;
}

.btn {
  border: 0;
  border-radius: 999px;
  padding: 1.2rem 2.4rem;
  background: linear-gradient(135deg, #2b1cb1, #4a3bd6);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.btn:hover {
  transform: translateY(-0.2rem);
  box-shadow: 0 0.8rem 1.8rem rgba(43, 28, 177, 0.25);
}