:root {
  /* Colors */
  --color-principal: #f99d0e;
  --color-secundario: #d98a0c;
  --color-texto: #666666;
  --color-texto-oscuro: #333333;
  --color-fondo: #ffffff;
  --color-fondo-secundario: #f7f7f7;
  --color-borde: #eeeeee;
  --color-sombra: rgba(0, 0, 0, 0.1);
  --color-azul-oscuro: #1a365d;
  --color-gris-claro: #cbd5e0;
  --color-exito: #0a8f5c;
  --color-error: #ff4d4d;
  --color-advertencia: #ff9900;

  /* Typography */
  --font-base: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  --base-font-size: 16px;

  /* Imagen fondo contactanos */
  --img-contact: url("../assets/img/contactanos.webp");

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Apply standardized font to the document */
html {
  font-size: var(--base-font-size);
}

body {
  font-family: var(--font-base);
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
}

/* Ensure form controls and interactive elements inherit the same font */
button,
input,
select,
textarea,
a,
.btn,
.btn-cotizar {
  font-family: inherit;
}

/* Headings should use the same font but slightly heavier weight */
h2,
h3,
h4,
h5,
h6 {
  font-family: inherit;
  color: var(--color-texto-oscuro);
  line-height: 1.2;
  margin: 0 0 0.5rem 0;
}

/* Small elements (nav, labels) keep readable sizing */
nav ul li a {
  font-size: 1.1rem;
}

label {
  font-size: 0.95rem;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ------------------ Layout: Container ------------------ */

/* Header */
header {
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* ------------------ Layout: Header ------------------ */

/* Slim top bar with small contact icons */
.header-top {
  background-color: #333333;
  color: #fff;
  font-size: 15px;
}

/* ------------------ Header Top Contact ------------------ */

.header-top-inner {
  display: flex;
  justify-content: end;
  align-items: center;
  padding: 6px 15px;
}

.header-contact span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 12px;
  color: #fff;
}

.header-contact i {
  width: 18px;
  text-align: center;
  font-size: 16px;
}

/* Links in the top header contact area: keep white and highlight on hover */
.header-contact a,
.header-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 12px;
  color: #fff;
  text-decoration: none;
  transition: color 0.18s ease, transform 0.12s ease;
}

.header-contact a:hover,
.header-contact-link:hover {
  color: var(--color-principal);
  transform: translateY(-1px);
}

.header-contact a i,
.header-contact-link i {
  color: inherit;
}

.header-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 70px;
}

/* ------------------ Header Main / Navigation ------------------ */

.logo {
  max-width: 180px;
}

/* ------------------ Logo ------------------ */

.logo img {
  max-width: 100%;
  height: auto;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 30px;
  position: relative;
}

nav ul li a {
  display: block;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
  padding: 5px 0;
  position: relative;
}

.mobile-only-item {
  display: none;
}

nav ul li a:hover,
nav ul li a.active {
  color: #faca7c;
}

nav ul li a::after {
  content: "";
  position: absolute;
  bottom: 0px;
  left: 0;
  width: 0;
  height: 3px;
  background-color: #f89d0e;
  border-radius: 2px;
  transition: width 0.3s ease;
}

nav ul li a:hover::after,
nav ul li a.active::after {
  width: 100%;
}

/* Botones */
.btn {
  display: inline-block;
  background-color: var(--color-texto-oscuro);
  color: white;
  padding: 10px 20px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s;
}

.btn:hover {
  background-color: #ffbe55;
}

/* Boton cotizar */
/* Boton cotizar moderno */
.btn-cotizar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg,
      var(--color-principal) 0%,
      var(--color-secundario) 100%);
  color: white;
  padding: 10px 24px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(249, 157, 14, 0.4);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.btn-cotizar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom,
      rgba(255, 255, 255, 0.15),
      transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-cotizar:hover {
  background: linear-gradient(135deg, #ffae33 0%, #e69512 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(249, 157, 14, 0.6);
}

.btn-cotizar:hover::before {
  opacity: 1;
}

.btn-cotizar:active {
  transform: translateY(1px);
  box-shadow: 0 2px 10px rgba(249, 157, 14, 0.4);
}

/* Submit button: base + hover returns to primary color */
.submit-btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.18s ease, color 0.18s ease,
    transform 0.12s ease;
  background: transparent;
  color: var(--color-texto-oscuro);
  border: 2px solid var(--color-borde);
}

.submit-btn:hover {
  background-color: var(--color-principal);
  color: #fff;
  transform: translateY(-2px);
  border-color: var(--color-principal);
}

/* Swiper Section */
.carousel {
  margin-bottom: 40px;
  overflow: hidden;
}

.swiper {
  width: 100%;
  height: 500px;
  position: relative;
}

/* Swiper controls*/
.swiper-button-next,
.swiper-button-prev {
  width: 35px;
  height: 40px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.18s ease, transform 0.12s ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  z-index: 30;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-3px);
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 20px;
  color: #f7f7f7 !important;
}

/* Ensure any SVG/icon inside buttons is white */
.swiper-button-next,
.swiper-button-prev {
  color: #f7f7f7 !important;
}

.swiper-button-next svg,
.swiper-button-prev svg,
.swiper-button-next i,
.swiper-button-prev i {
  fill: #f7f7f7 !important;
  color: #f7f7f7 !important;
}

.swiper-pagination {
  bottom: 12px;
}

.swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: rgba(236, 226, 209, 0.45);
  opacity: 1;
  transition: transform 0.2s, background-color 0.2s;
}

.swiper-pagination-bullet-active {
  background: #f7f7f7;
  transform: scale(1.2);
}

.swiper-slide {
  position: relative;
  overflow: hidden;
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.8);
  transition: filter 0.3s ease;
}

.swiper-slide:hover img {
  filter: brightness(1);
}

.slide-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: white;
  padding: 40px 20px;
  text-align: left;
  animation: slideUp 0.6s ease-out;
}

.slide-content h2 {
  font-size: 2.5rem;
  margin: 0 0 10px 0;
  font-weight: bold;
  color: white;
}

.slide-content p {
  font-size: 1.2rem;
  margin: 0;
  opacity: 0.9;
}

/* Services Section */
.services {
  padding: 80px 0;
  background-color: #fff;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 2rem;
  color: #1a365d;
  margin-bottom: 15px;
}

.section-header p {
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

/* Maintenance title inside About Preview rules consolidated below */

.about-preview .container {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
}

.about-preview .maintenance-title {
  font-size: 2.25rem;
  color: var(--color-principal);
  text-align: left;
  font-weight: 700;
  letter-spacing: 0.4px;
  margin: 0 0 8px 0;
  text-transform: none;
}

/* About Preview */
.about-preview {
  padding: 80px 0;
  background-color: var(--color-fondo-secundario);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-text h2 {
  font-size: 2rem;
  text-align: justify;
  color: #1a365d;
  margin-bottom: 20px;
}

.about-text p {
  margin-bottom: 20px;
  text-align: justify;
  color: #666;
}

.about-image {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Projects Preview */
.projects-preview {
  padding: 80px 0;
  background-color: #fff;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.project-card {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-img {
  height: 250px;
  overflow: hidden;
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.project-card:hover .project-img img {
  transform: scale(1.1);
}

.project-info {
  padding: 20px;
  background-color: #fff;
}

.project-info h3 {
  margin-bottom: 10px;
  color: #1a365d;
}

.project-info p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Testimonials */
.testimonials {
  padding: 80px 0;
  background-color: #1a365d;
  color: white;
  text-align: center;
}

.testimonials .section-header h2 {
  color: white;
}

.testimonials .section-header p {
  color: #cbd5e0;
}

.testimonial-slider {
  max-width: 800px;
  margin: 0 auto;
}

.testimonial {
  padding: 30px;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.testimonial-author {
  font-weight: 500;
}

/* CTA Section */
.cta {
  padding: 80px 0;
  background: linear-gradient(rgba(26, 54, 93, 0.9), rgba(26, 54, 93, 0.9)),
    url("https://images.unsplash.com/photo-1541888946425-d81bb19240f5?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80") center/cover no-repeat;
  color: white;
  text-align: center;
}

.cta h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.cta p {
  max-width: 600px;
  margin: 0 auto 30px;
  font-size: 1.1rem;
}

.btn-light {
  background-color: white;
  color: #1a365d;
}

.btn-light:hover {
  background-color: #f7fafc;
}

/* Footer */
footer {
  background-color: #333333;
  color: white;
  padding: 60px 0 30px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.footer-column {
  width: 23%;
}

.footer-column h3 {
  color: white;
  margin-bottom: 20px;
  font-size: 1.3em;
  position: relative;
  padding-bottom: 10px;
}

.footer-column h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background-color: var(--color-principal);
}

.footer-column p,
.footer-column a {
  color: #aaa;
  margin-bottom: 10px;
  display: block;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-column a:hover {
  color: var(--color-principal);
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 0.3s;
}

.social-links a:hover {
  background-color: var(--color-principal);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid #f99d0e;
  padding-top: 20px;
  text-align: center;
  color: #cbd5e0;
  font-size: 14px;
}

/* 9. Animaciones */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 0.8s ease forwards;
}

.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 80px;
  width: 56px;
  height: 56px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  background-color: #128c7e;
  transform: translateY(-4px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

.whatsapp-float i {
  color: white;
}

.scroll-top {
  position: fixed;
  right: 20px;
  bottom: 8px;
  width: 56px;
  height: 56px;
  background: var(--color-principal);
  color: #fff;
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 18px rgba(249, 157, 14, 0.18);
  transition: transform 0.18s ease, opacity 0.18s ease;
  opacity: 0;
  visibility: hidden;
  z-index: 9999;
  border-radius: 50%;
  /* botón circular */
}

/* Mostrar cuando corresponde */
.scroll-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Solo la punta de la flecha: triángulo CSS centrado */
.scroll-top::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-bottom: 14px solid #fff;
  /* color de la punta */
  transform: translateY(-2px);
  display: block;
}

/* Efecto hover */
.scroll-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(249, 157, 14, 0.22);
}

/* Map Section (New) */

.map-section {
  background: var(--color-fondo);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px var(--color-sombra);
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.minimalist-container {
  display: flex;
  flex-direction: column;
}

.minimalist-header {
  padding: 35px 40px;
  text-align: center;
  border-bottom: 1px solid var(--color-borde);
  background: linear-gradient(135deg,
      rgba(249, 157, 14, 0.05) 0%,
      rgba(249, 157, 14, 0.02) 100%);
}

.minimalist-header h3 {
  color: #1a365d;
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.minimalist-content {
  display: flex;
  flex-wrap: wrap;
  min-height: 450px;
}

.map-container {
  flex: 1;
  min-width: 300px;
  position: relative;
}

.map-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.info-container {
  flex: 0 0 550px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.address-highlight {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 25px;
  padding: 15px;
  background: rgba(249, 157, 14, 0.08);
  border-radius: 10px;
  border-left: 4px solid var(--color-principal);
}

.address-icon {
  width: 48px;
  height: 48px;
  background: #e52028;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.description {
  margin-bottom: 30px;
  color: var(--color-texto);
  line-height: 1.7;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-bottom: 35px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 8px;
  background: var(--color-fondo-secundario);
}

.actions-container {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.btn-primary {
  background: var(--color-texto-oscuro);
  color: white;
}

.btn-secondary {
  background: transparent;
  color: var(--color-texto-oscuro);
  border: 2px solid var(--color-texto-oscuro);
}

/* Contact Hero section */
.contact-hero {
  background-image: var(--img-contact);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  padding: 140px 0;
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.contact-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(0.5px);
  z-index: 0;
}

.contact-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      rgba(249, 157, 14, 0.08) 0%,
      rgba(217, 138, 12, 0.04) 100%);
  z-index: 1;
  pointer-events: none;
}

.contact-hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  padding: 0 20px;
}

.contact-hero h1 {
  font-size: 3.2rem;
  font-weight: 700;
  margin-bottom: 15px;
  letter-spacing: -0.5px;
  color: white;
  line-height: 1.2;
}

.contact-hero p {
  font-size: 1.25rem;
  opacity: 0.98;
  max-width: 650px;
  margin: 0 auto;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  font-weight: 300;
  line-height: 1.6;
}

.contact {
  max-width: 1400px;
  margin: 0 auto;
  padding: 100px 20px;
}

.contact-header {
  text-align: center;
  margin-bottom: 70px;
}

/* Contact section */

.contact-body-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 15px;
  padding-top: 60px;
  padding-bottom: 60px;
}

.contacto-container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  box-shadow: 0 10px 30px var(--color-sombra);
  border-radius: 15px;
  overflow: hidden;
  background-color: var(--color-fondo);
}

.info-side {
  flex: 1;
  min-width: 300px;
  background: var(--color-texto-oscuro);
  color: white;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.info-side h2 {
  font-size: 28px;
  margin-bottom: 20px;
  position: relative;
  color: white;
  padding-bottom: 15px;
}

.info-side h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: white;
}

.info-side p {
  font-size: 16px;
  margin-bottom: 30px;
}

.contact-details {
  margin-top: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.contact-item i {
  /* allow icon font (FontAwesome) to apply its own font-family */
  font-size: 18px;
  width: 40px;
  height: 40px;
  background-color: var(--color-principal);
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  line-height: 1;
  font-weight: 900;
  /* ensure solid icon weight when using FontAwesome */
}

.form-side {
  flex: 1;
  min-width: 300px;
  padding: 40px;
  background-color: var(--color-fondo);
}

.form-header {
  margin-bottom: 30px;
}

.form-header h2 {
  font-size: 28px;
  color: var(--color-texto-oscuro);
  margin-bottom: 10px;
}

.form-header p {
  color: var(--color-texto);
  font-size: 16px;
}

.highlight {
  color: var(--color-principal);
  font-weight: 600;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 760px;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  padding: 18px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(26, 54, 93, 0.06);
  border: 1px solid rgba(26, 54, 93, 0.04);
}

.form-group {
  margin-bottom: 20px;
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--color-texto-oscuro);
}

.form-group input,
.form-group textarea {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(26, 54, 93, 0.08);
  border-radius: 10px;
  font-size: 16px;
  transition: all 0.22s cubic-bezier(0.2, 0, 0.08, 1);
  background-color: #f7fbff;
  color: #0f1724;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #a0aec0;
  font-size: 18px;
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 2;
}

.form-group:focus-within .input-icon {
  color: var(--color-principal);
  transform: scale(1.1);
}

.textarea-icon {
  top: 14px;
  transform: none !important;
}

.form-group:focus-within .textarea-icon {
  transform: scale(1.1) !important;
}

.form-group input:hover,
.form-group textarea:hover {
  background-color: #fff;
  border-color: #cbd5e0;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-principal);
  background-color: white;
  box-shadow: 0 0 0 4px rgba(249, 157, 14, 0.15);
  transform: translateY(-1px);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

/* Responsive: two-column layout on larger screens */
@media (min-width: 700px) {
  .contact-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 16px;
    padding: 22px;
    align-items: start;
  }

  /* Make description textarea span full width */
  .contact-form .form-group:nth-of-type(4) {
    grid-column: 1 / -1;
  }

  /* Submit and success message full width */
  .contact-form .submit-btn,
  .contact-form .success-message {
    grid-column: 1 / -1;
  }
}

/* Helper class to force an element to span full width of the form grid */
@media (min-width: 700px) {
  .contact-form .form-group.full-width {
    grid-column: 1 / -1;
  }

  .contact-form .submit-btn.full-width,
  .contact-form .success-message.full-width {
    grid-column: 1 / -1;
    justify-self: stretch;
    max-width: none;
  }
}

.required::after {
  content: "*";
  color: #ff4d4d;
  margin-left: 4px;
}

.submit-btn {
  background: linear-gradient(135deg,
      var(--color-principal) 0%,
      var(--color-secundario) 100%);
  color: white;
  border: none;
  padding: 16px 32px;
  font-size: 16px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-weight: 700;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  /* Push to bottom */
  width: 100%;
  box-shadow: 0 4px 6px rgba(249, 157, 14, 0.3);
}

.submit-btn i {
  margin-right: 12px;
  font-size: 18px;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(249, 157, 14, 0.4);
  background: linear-gradient(135deg, #ffae33 0%, #e69512 100%);
}

.submit-btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 4px rgba(249, 157, 14, 0.2);
}

.char-counter {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 14px;
  color: var(--color-texto);
  text-align: right;
  margin-top: 5px;
}

.char-counter.warning {
  color: #ff9900;
}

.char-counter.error {
  color: #ff4d4d;
}

.success-message {
  background-color: #e7f7ef;
  color: #0a8f5c;
  padding: 15px;
  border-radius: 8px;
  margin-top: 20px;
  display: none;
  align-items: center;
}

.success-message i {
  margin-right: 10px;
  font-size: 20px;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease;
}

.modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-content {
  background-color: var(--color-fondo);
  padding: 0;
  border-radius: 12px;
  width: 90%;
  max-width: 1000px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  position: relative;
  animation: slideIn 0.3s ease;
  max-height: 90vh;
  overflow: visible;
  display: flex;
  min-height: auto;
  /* Allow internal scrolling within the container to avoid clipping */
}

.modal-container {
  display: flex;
  width: 100%;
  max-height: calc(90vh - 32px);
  overflow-y: auto;
  align-items: stretch;
}

/* Ensure each side can scroll if its content is larger than the viewport */
.modal-info-side,
.modal-form-side {
  overflow-y: auto;
}

.modal-info-side {
  flex: 1;
  min-width: 300px;
  background: var(--color-texto-oscuro);
  color: white;
  padding: 40px;
  display: flex;
  flex-direction: column;
  /* Remove justify-content: center to allow full extension spacing */
}

.modal-info-side h2 {
  font-size: 24px;
  margin-bottom: 20px;
  color: white;
  position: relative;
  padding-bottom: 15px;
}

.modal-info-side h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: white;
}

.modal-info-side p {
  font-size: 15px;
  margin-bottom: 30px;
  line-height: 1.6;
}

.modal-social-media {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-social-media h3 {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 25px;
}

.modal-social-media .social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.modal-social-media .social-links a:hover {
  background-color: var(--color-principal);
  border-color: var(--color-principal);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(249, 157, 14, 0.4);
}

.modal-form-side {
  flex: 1;
  min-width: 300px;
  padding: 40px;
  background-color: var(--color-fondo);
  display: flex;
  flex-direction: column;
  /* Removed justify-content: center to let it flow naturally */
}

.modal-close {
  position: absolute;
  right: 20px;
  top: 20px;
  background-color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  font-size: 24px;
  color: var(--color-texto-oscuro);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 2001;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.modal-close:hover {
  background-color: var(--color-principal);
  color: white;
  transform: rotate(90deg);
}

.modal-header {
  margin-bottom: 30px;
  text-align: center;
}

.modal-header h2 {
  font-size: 28px;
  color: var(--color-texto-oscuro);
  margin-bottom: 10px;
}

.modal-header p {
  color: var(--color-texto);
  font-size: 14px;
}

/* About Hero Banner */
.about-hero {
  background-image: url("../assets/img/sobrenosotros.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  padding: 140px 0;
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.about-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(0.5px);
  z-index: 0;
}

.about-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      rgba(249, 157, 14, 0.08) 0%,
      rgba(217, 138, 12, 0.04) 100%);
  z-index: 1;
  pointer-events: none;
}

.about-hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  padding: 0 20px;
}

.about-hero h1 {
  font-size: 3.2rem;
  font-weight: 700;
  margin-bottom: 15px;
  letter-spacing: -0.5px;
  color: white;
  line-height: 1.2;
}

.about-hero p {
  font-size: 1.25rem;
  opacity: 0.98;
  max-width: 650px;
  margin: 0 auto;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  font-weight: 300;
  line-height: 1.6;
}

/* About Page Styles */
.about-section {
  padding: 80px 0;
  background-color: var(--color-fondo);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text-block h3 {
  font-size: 1.8rem;
  color: var(--color-texto-oscuro);
  margin-bottom: 20px;
}

.about-text-block p {
  text-align: justify;
  color: var(--color-texto);
  margin-bottom: 15px;
  line-height: 1.8;
}

.about-image-placeholder {
  min-height: 280px;
  max-width: 100%;
  height: 280px;
  background-color: var(--color-fondo-secundario);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 20px var(--color-sombra);
}

.image-space {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  color: #bbb;
}

.image-space img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-space p {
  color: #999;
  font-size: 14px;
}

/* Experience Section */
.experience-section {
  padding: 60px 0;
  background-color: var(--color-fondo-secundario);
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.experience-card {
  background: var(--color-fondo);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 3px 15px var(--color-sombra);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.experience-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px var(--color-sombra);
}

.exp-image-placeholder {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg,
      var(--color-principal),
      var(--color-secundario));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 36px;
  color: white;
}

.experience-card h4 {
  font-size: 1.3rem;
  color: var(--color-texto-oscuro);
  margin-bottom: 12px;
}

.experience-card p {
  color: var(--color-texto);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Values Section */
.values-section {
  padding: 80px 0;
  background-color: var(--color-fondo);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.value-card {
  background: var(--color-fondo-secundario);
  padding: 35px 25px;
  border-radius: 8px;
  text-align: center;
  transition: all 0.3s;
  border-top: 3px solid transparent;
}

.value-card:hover {
  border-top-color: var(--color-principal);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px var(--color-sombra);
}

.value-icon {
  font-size: 48px;
  color: var(--color-principal);
  margin-bottom: 15px;
  display: inline-block;
}

.value-card h4 {
  font-size: 1.3rem;
  color: var(--color-texto-oscuro);
  margin-bottom: 15px;
}

.value-card p {
  color: var(--color-texto);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Mission and Vision Section */
.mission-vision-section {
  padding: 10px 0;
  background-color: var(--color-fondo-secundario);
}

.mission-card {
  background: var(--color-fondo);
  padding: 40px 30px;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  height: 100%;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.mission-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.mission-card .value-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  color: var(--color-principal);
  background: rgba(249, 157, 14, 0.1);
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.mission-card h4 {
  font-size: 1.5rem;
  color: var(--color-texto-oscuro);
  margin-bottom: 15px;
  font-weight: 700;
}

.mission-card p {
  color: var(--color-texto);
  line-height: 1.6;
  font-size: 1rem;
}

/* Service section - Modern Design */
.service-hero {
  background-image: var(--img-contact);
  /* Fallback img */
  background-image: linear-gradient(rgba(0, 0, 0, 0.473), rgba(0, 0, 0, 0.425)), url("../assets/img/servicios.webp");
  background-size: cover;
  background-position: center;
  padding: 120px 0;
  color: white;
  text-align: center;
  position: relative;
}

.service-hero-inner h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #fff;
}

.service-hero-inner p {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto;
  opacity: 0.9;
}

/* Sección Servicios Layout */
.servicios {
  padding: 80px 0;
  background-color: #f8f9fa;
}

.servicios-header {
  text-align: center;
  margin-bottom: 60px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.titulo-seccion {
  font-size: 2.25rem;
  color: var(--color-texto-oscuro);
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

.subtitulo-seccion {
  font-size: 1.1rem;
  color: var(--color-texto);
  line-height: 1.6;
}

/* Grid Layout Moderno */
.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  padding: 10px;
}

/* Card Design Moderno */
.servicio-card {
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 0, 0, 0.03);
  height: 100%;
}

.servicio-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.servicio-imagen {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.servicio-imagen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.servicio-card:hover .servicio-imagen img {
  transform: scale(1.1);
}

.overlay-icon {
  position: absolute;
  bottom: -20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: var(--color-principal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  z-index: 2;
  transition: transform 0.3s ease;
}

.servicio-card:hover .overlay-icon {
  transform: scale(1.1) rotate(5deg);
}

.servicio-contenido {
  padding: 30px;
  padding-top: 35px;
  /* Espacio para el icono overlay */
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.servicio-nombre {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-texto-oscuro);
  margin-bottom: 12px;
}

.servicio-descripcion {
  color: var(--color-texto);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.servicio-lista {
  list-style: none;
  padding: 0;
  margin: 0 0 25px 0;
}

.servicio-lista li {
  padding: 6px 0;
  font-size: 0.9rem;
  color: #555;
  display: flex;
  align-items: center;
  gap: 10px;
}

.servicio-lista li i {
  color: var(--color-exito);
  font-size: 0.8rem;
}

/* --- New Laminate Effect for Services Page (Unified) --- */
.lamina-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  padding: 20px 0;
}

.lamina-service {
  position: relative;
  height: 450px;
  border-radius: 15px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.lamina-service::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.85) 100%);
  z-index: 1;
  transition: opacity 0.5s ease;
}

.lamina-service img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.lamina-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px;
  z-index: 2;
  color: #fff;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.lamina-content h3 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  transform: translateY(0);
  transition: transform 0.5s ease;
}

.lamina-content p {
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.9;
  margin-bottom: 25px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.5s ease;
}

.lamina-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--color-principal);
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}

.lamina-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--color-principal);
  color: #fff;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Hover Effects */
.lamina-service:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.lamina-service:hover img {
  transform: scale(1.1);
}

.lamina-service:hover .lamina-content {
  transform: translateY(-10px);
}

.lamina-service:hover .lamina-content p {
  max-height: 200px;
  opacity: 1;
}

.lamina-service:hover .lamina-btn {
  opacity: 1;
  transform: translateY(0);
}

.btn-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  background-color: transparent;
  color: var(--color-principal);
  border: 2px solid var(--color-principal);
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-top: auto;
  gap: 8px;
}

.btn-card:hover {
  background-color: var(--color-principal);
  color: #fff;
  transform: translateY(-2px);
}

.btn-card i {
  transition: transform 0.3s ease;
}

.btn-card:hover i {
  transform: translateX(4px);
}