
/***************** Estilos Generales *****************/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Lato', sans-serif;
  color: #4d4d4d;
  line-height: 1.2;
  margin: 0;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

.section {
  padding: 60px 0;
}

.padding-section {
  padding-bottom: 60px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 50px;
  align-items: center;
}

.container-2 {
  width: 90%;
  max-width: 900px;
  margin: auto;
}

.service-reverse {
  grid-template-areas: "text image";
}

.service-reverse > div:first-child {
  grid-area: image;
}

.service-reverse > div:last-child {
  grid-area: text;
}

.center-y {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.center-text {
  text-align: center;
}

.spacing-top {
  margin-top: 80px;
}

.section-title {
  font-family: 'Poppins', sans-serif;
  font-size: 2.5rem;
  font-weight: 900;
  font-style: italic;
  color: #0056b4;
  margin-bottom: 1.2rem;
  margin-top: 0;
}

.section p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.section h4 {
  font-size: 1.2rem;
  font-weight: 900;
}

.section hr {
  width: 60%;
  height: 4px;
  border: none;
  background: #c8002d;
  margin-top: 30px;
}

/***************** ANIMACIONES AL HACER SCROLL *****************/
/* Las clases reveal-* las agrega el JS, así que sin JS todo se ve normal */

.reveal-img,
.reveal-text > * {
  opacity: 0;
  transition: opacity .9s ease, transform .9s cubic-bezier(.22, .61, .36, 1);
}

/* 1° la imagen */
.reveal-img {
  transform: translateY(30px);
}

/* 2° los textos, uno tras otro (--i lo asigna el JS) */
.reveal-text > * {
  transform: translateY(20px);
  transition-delay: calc(.4s + var(--i, 0) * .12s);
}

/* la línea roja se dibuja de izquierda a derecha */
.reveal-text > hr {
  transform: scaleX(0);
  transform-origin: left;
}

.is-visible .reveal-img,
.is-visible .reveal-text > * {
  opacity: 1;
  transform: none;
}

/* Uso interno del JS: arma el estado oculto sin que se vea un parpadeo */
.reveal-no-transition .reveal-img,
.reveal-no-transition .reveal-text > *,
.reveal-no-transition .reveal-item,
.reveal-no-transition .reveal-item .line,
.reveal-no-transition .reveal-fade {
  transition: none !important;
}

/* Solo fade, sin movimiento (para elementos que ya usan transform) */
.reveal-fade {
  opacity: 0;
  transition: opacity .9s ease;
  transition-delay: calc(var(--i, 0) * .2s);
}

.reveal-fade.is-visible {
  opacity: 1;
}

/* Misión, Visión y Valores */
.reveal-item {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s ease, transform .9s cubic-bezier(.22, .61, .36, 1);
  transition-delay: calc(var(--i, 0) * .2s);
}

.reveal-item .line {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .8s cubic-bezier(.22, .61, .36, 1);
  transition-delay: calc(.5s + var(--i, 0) * .2s);
}

.reveal-item.is-visible,
.reveal-item.is-visible .line {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal-item,
  .reveal-item .line {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .reveal-fade {
    opacity: 1;
    transition: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-img,
  .reveal-text > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* NAVBAR */

.navbar {
  background: #fff;
  border-bottom: 1px solid #ddd;
  position: sticky;
  top: 0;
  z-index: 999;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.logo img {
  height: 40px;
}

.nav-menu {
  display: flex;
  gap: 40px;
}

.nav-menu a {
  position: relative;
  text-decoration: none;
  color: #0056b4;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  padding: 4px 0;
  transition: opacity .3s ease;
  animation: nav-entrada .6s ease backwards; /* entrada al cargar */
}

/* Entrada escalonada */
.nav-menu a:nth-child(1) { animation-delay: .10s; }
.nav-menu a:nth-child(2) { animation-delay: .20s; }
.nav-menu a:nth-child(3) { animation-delay: .30s; }
.nav-menu a:nth-child(4) { animation-delay: .40s; }

@keyframes nav-entrada {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

/* Subrayado deslizante (usa el rojo de la marca) */
.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: #c8002d;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}

.nav-menu a:hover::after,
.nav-menu a:focus-visible::after {
  transform: scaleX(1);
}

/* Atenuar los demás links (solo donde hay mouse) */
@media (hover: hover) {
  .nav-menu:hover a:not(:hover) {
    opacity: .5;
  }
}

/* Respeta a quien prefiere menos movimiento */
@media (prefers-reduced-motion: reduce) {
  .nav-menu a {
    animation: none;
  }

  .nav-menu a,
  .nav-menu a::after {
    transition: none;
  }
}

.menu-toggle {
  display: none;
  border: none;
  background: transparent;
  font-size: 2rem;
  cursor: pointer;
  color: #0056b4;
}

/***************** HERO *****************/

.hero {
  background-image: url('../img/home-hero-portada.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  padding: 30px 20px;
  overflow: hidden;
}

.empresa {
  background-image: url('../img/empresa-hero-portada.jpg');  
}

.servicios {
  background-image: url('../img/servicios-hero-portada.jpg');  
}

.obras {
  background-image: url('../img/obras-hero-portada.jpg');  
}

.contacto {
  background-image: url('../img/contacto-hero-portada.jpg');  
}

.equipos {
  background-image: url('../img/servicios-hero-maquinas.jpg');  
}


.hero-subtitle {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 500;
  font-style: italic;
  margin-top: 0;
}

.hero-subtitle-home {
  color: #c8002d;
  font-size: 2rem;
  font-weight: 700;
  font-style: italic;
  margin-top: 0;
}

.hero h1 {
  font-size: 3rem;
  /*line-height: 1.1;*/
  font-family: 'Poppins', sans-serif;
  font-weight: 900;
  font-style: italic;
  color: white;
  margin-top: 0;
}

.hero-image img {
  max-height: 600px;
  margin: auto;
  display: block;
}

/* Animaciones de entrada del hero */
.hero-subtitle-home,
.hero-subtitle,
.hero h1 {
  animation: hero-texto .9s cubic-bezier(.22, .61, .36, 1) backwards;
}

.hero-subtitle-home,
.hero-subtitle {
  animation-delay: .5s;
}

.hero h1 {
  animation-delay: .7s;
}

.hero-image img {
  animation: hero-maquina 1.1s cubic-bezier(.22, .61, .36, 1) .9s backwards;
}

@keyframes hero-texto {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
}

@keyframes hero-maquina {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-subtitle-home,
  .hero-subtitle,
  .hero h1,
  .hero-image img {
    animation: none;
  }
}

/***************** VIDEO HOME *****************/

.video-hero {
  position: relative;
  height: 500px;
  overflow: hidden;
}

.video-hero video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.video-overlay h2 {
  color: white;
  font-size: 3rem;
  font-family: 'Poppins', sans-serif;
  text-shadow: 2px 2px 10px rgba(0,0,0,.5);
}

/***************** WORKS *****************/

.works-section {
  background-image: url('../img/empresa-hero-carpeta.jpg');
  background-size: cover;
  background-position: center;
  height: 500px;
  position: relative;
}

.works-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.35);
  display: flex;
  align-items: center;
}

.white {
  color: white;
}

.btn-outline {
  display: inline-block;
  padding: 15px 40px;
  border: 4px solid #0056b4;
  color: white;
  text-decoration: none;
  font-weight: 700;
  transition: .3s;
}

.btn-outline:hover {
  background: #0056b4;
}

/***************** GALLERY *****************/

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;

  justify-items: center; /* centra las imágenes */
}

.gallery-item {
  width: 100%;
  max-width: 350px;

  border-radius: 10px;
  cursor: pointer;
  transition: transform .3s;
}

.gallery-item:hover {
  transform: scale(1.03);
}

/* TABLET */
@media (max-width: 992px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* MOBILE */
@media (max-width: 576px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/***************** MODAL *****************/

.modal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.75);
  display:none;
  justify-content:center;
  align-items:center;
  z-index:9999;
}

.modal.active{
  display:flex;
}

.modal-card{
  width:90%;
  max-width:500px;
  height:80vh;
  background:#fff;
  border-radius:18px;
  overflow:hidden;
  position:relative;
  display:flex;
  flex-direction:column;
}

.modal-image-wrapper{
  height:60%;
  overflow:hidden;
}

.modal-image-wrapper img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.modal-info{
  height:40%;
  padding:25px;
  overflow-y:auto;
}

.modal-info h3{
  margin:0 0 10px;
  font-size:1.5rem;
}

.modal-info p{
  line-height:1.6;
  color:#555;
}

.close-modal{
  position:absolute;
  top:15px;
  right:20px;
  font-size:32px;
  color:#fff;
  cursor:pointer;
  z-index:10;
}

/***************** STARTS *****************/

.stats-section {
  padding: 60px 0;
}

.stats-grid {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
}

.stat-item h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 4rem;
  font-weight: 900;
  font-style: italic;
  color: #0056b4;
  margin-bottom: 20px;
}

.stat-item p {
  font-size: 1.2rem;
  line-height: 1.5;
  color: #4d4d4d;
}

.stat-item strong {
  font-style: italic;
  font-weight: 900;
}


.line {
  width: 60%;
  height: 4px;
  background: #c8002d;
  margin-top: 30px;
}


/***************** SOCIAL *****************/

.container-social {
  width: 90%;
  max-width: 960px;
  margin: auto;
}

.social-section {
  background: linear-gradient(
    to bottom,
    #ffffff 0%,
    #ffffff 50%,
    #333333 50%,
    #333333 100%
  );

  padding: 0;
}

.social-box {
  background: #0056b4;
  min-height: 360px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
  padding: 50px;
}

.social-link {
  color: white;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  transition: .3s;
}

.social-link:hover {
  transform: translateY(-5px);
}

/***************** FOOTER *****************/

.footer {
  background: #333;
  color: white;
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 50px;
}

.footer h4 {
  margin-bottom: 20px;
  font-size: 1.4rem;
}

.footer p {
  margin-bottom: 15px;
}

.footer a {
  color: white;
  text-decoration: none;
}

.footer hr {
  height: 1.5px;
  border: none;
  background: #777;
  margin-bottom: 12px;
}

.copy {
  text-align: center;
  margin-top: 50px;
}



/***************** MISION VISION VALORES *****************/

.mvv-section {
  padding: 90px 0;
}

.mvv-grid {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
}

.mvv-item h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 2.5rem;
  font-style: italic;
  font-weight: 900;
  color: #0056b4;
  margin-bottom: 25px;
  line-height: 1;
}

.mvv-item p {
  font-family: 'Lato', sans-serif;
  font-size: 1.2rem;
  line-height: 1.5;
  color: #4d4d4d;
  max-width: 320px;
}

/* RESPONSIVE */

@media (max-width: 992px) {

  .grid-2,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .service-reverse {
    grid-template-areas:
    "image"
    "text";
  }

  .hero h1 {
    font-size: 2.8rem;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    padding: 30px;
    border-top: 1px solid #ddd;
  }

  .nav-menu.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  /* El subrayado mide solo el texto, no todo el ancho del menú */
  .nav-menu a {
    align-self: flex-start;
  }

  .video-overlay h2 {
    font-size: 2rem;
    text-align: center;
    padding: 0 20px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .stat-item h2 {
    font-size: 4rem;
  }

  .mvv-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .mvv-item h2 {
    font-size: 3rem;
  }

  .mvv-item p {
    max-width: 100%;
  }
    
}

/***************** CONTACTO *****************/

.contact-section {
  padding-top: 60px;
}

/* TOP */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 70px;
}

/* LEFT BOX */

.contact-box {
  background: #0056b4;
  color: white;
  min-height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 50px;
}

.contact-box h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 3rem;
  font-weight: 900;
  font-style: italic;
  margin-bottom: 20px;
}

.contact-box p {
  font-size: 1.6rem;
  line-height: 1.5;
}

/***************** FORM *****************/

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: none;
  background: #ececec;

  padding: 25px;

  font-size: 1.2rem;
  font-family: 'Lato', sans-serif;

  border-radius: 10px;
  outline: none;
}

.contact-form textarea {
  min-height: 220px;
  resize: none;
}

.contact-form button {
  height: 70px;

  border: none;
  background: #d6003d;

  color: white;

  font-family: 'Poppins', sans-serif;
  font-size: 1.4rem;
  font-weight: 900;
  font-style: italic;

  border-radius: 10px;

  cursor: pointer;
  transition: .3s;
}

.contact-form button:hover {
  opacity: .9;
}

/* INFO CARD */

.info-card {
  background: white;
  text-align: center;
  padding: 30px;
  margin-bottom: 60px;
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
}

.info-card h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 2.5rem;
  font-weight: 900;
  font-style: italic;
  color: #0056b4;
  margin-bottom: 10px;
}

.info-card p {
  font-size: 1.5rem;
  font-weight: 600;
  color: #4d4d4d;
}

/* INFO GRID */

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;

  margin-bottom: 80px;
}

.emails {
  grid-template-columns: repeat(2, 1fr);
}

/* ITEMS */

.info-item h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.75rem;
  font-style: italic;
  font-weight: 700;
  color: #0056b4;
  margin-bottom: 20px;
}

.info-item span {
  display: block;
  font-size: 1.35rem;
  color: #4d4d4d;
  line-height: 1.5;
}

/***************** SOCIAL *****************/

.social-footer {
  background: #333;
  color: white;
  max-width: 960px;
  text-align: center;
  padding: 50px;
  margin: 0 auto;
}

.social-footer h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 2.5rem;
  font-style: italic;
  font-weight: 700;
  margin-bottom: 15px;
}

.social-footer p {
  font-size: 1.25rem;
}

/* RESPONSIVE */

@media (max-width: 992px) {

  .contact-grid,
  .info-grid,
  .emails {
    grid-template-columns: 1fr;
  }

  .contact-box h2 {
    font-size: 3rem;
  }

  .info-card h3 {
    font-size: 2.2rem;
  }

  .social-footer h3 {
    font-size: 2.5rem;
  }

  .info-item span {
    word-break: break-word;
  }
}

/***************** SECCION TUNELERAS *****************/

/* Título principal en cursiva como en la imagen */
.title {
    font-size: 2rem;
    font-weight: 900;
    font-style: italic;
    color: #4d4d4d;
    margin-bottom: 25px;
    line-height: 1.2;
}

/* Subtítulo destacado en negrita */
.subtitle {
    font-size: 1.25rem;
    font-weight: 700;
    color: #4d4d4d;
    margin-bottom: 30px;
    line-height: 1.5;
}

/* Bloque de características */

.features-title {
    font-size: 1rem;
    font-weight: 700;
    color: #4d4d4d;
    margin-bottom: 15px;
}

/* Lista de viñetas */
.features-list {
    list-style-type: none; /* Quitamos los puntos por defecto para darles mejor estilo */
    padding-left: 5px;
}

.features-list li {
    font-size: 1rem;
    color: #4d4d4d;
    line-height: 1.6;
    margin-bottom: 12px;
    position: relative;
    padding-left: 25px;
}

/* Viñeta personalizada (punto estético) */
.features-list li::before {
    content: "•";
    color: #444444;
    font-size: 1.3rem;
    position: absolute;
    left: 5px;
    top: -2px;
}

/* Adaptación para pantallas pequeñas (móviles) */
@media (max-width: 480px) {
    .title {
        font-size: 1.8rem;
    }
    .subtitle {
        font-size: 1rem;
    }
    .features-list li {
        font-size: 0.95rem;
    }
}

/***************** TIPOS DE PILOTES *****************/

.pilotes-types {
    padding-bottom: 60px 0;
}

.section-card-title {
    background: #fff;
    padding: 30px;
    text-align: center;
    margin-bottom: 60px;
    box-shadow: 0 4px 12px rgba(0,0,0,.12);
}

.section-card-title h2 {
    margin: 0;
    font-family: 'Lato', sans-serif;
    font-size: 2.5rem;
    font-style: italic;
    font-weight: 900;
    color: #4d4d4d;
}

.pilotes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
}

.pilote-item h3 {
    font-family: 'Lato', sans-serif;
    font-size: 1.75rem;
    font-style: italic;
    font-weight: 900;
    color: #4d4d4d;
    line-height: 1.35;
    margin-bottom: 25px;
}

.pilote-item p {
    font-family: 'Lato', sans-serif;
    font-size: 1.2rem;
    line-height: 1.5;
    color: #4d4d4d;
}

/* RESPONSIVE */

@media (max-width: 992px) {

    .pilotes-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .section-card-title h2 {
        font-size: 1.8rem;
    }

    .pilote-item h3 {
        font-size: 1.6rem;
    }

    .pilote-item p {
        font-size: 1.1rem;
    }
}

/***************** Últimas Obras *****************/

/* GRID */

.obras-recientes {
   margin-top: 60px;
}

.obras-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

/* CARD */

.obra-card {
    display: flex;
    flex-direction: column;
}

/* IMAGEN */

.obra-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #ddd;
    margin-bottom: 15px;
}

.obra-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* TITULO */

.obra-card h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    font-style: italic;
    color: #4d4d4d;
}

/* LINEA */

.obra-card .line {
    margin-bottom: 30px;
}

/* TEXTO */

.obra-card p {
    font-family: 'Lato', sans-serif;
    font-size: 1.2rem;
    line-height: 1.5;
    color: #4d4d4d;
    margin-bottom: 30px;
}

/* BOTON */

.obra-btn {
    display: inline-block;
    width: fit-content;

    background: #d6003d;
    color: white;

    padding: 12px 22px;

    text-decoration: none;

    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-style: italic;

    transition: .3s;
}

.obra-btn:hover {
    transform: translateY(-2px);
}

/* RESPONSIVE */

@media (max-width: 992px) {

    .obras-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .obra-card h4 {
        font-size: 1.7rem;
    }

    .obra-card p {
        font-size: 1.1rem;
    }
}

/***************** Galería de Imágenes *****************/

.gallery-section {
    padding: 60px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.gallery-card {
    display: block;
    overflow: hidden;
}

.gallery-card img {
    width: 100%;
    aspect-ratio: 1 / 1;

    object-fit: cover;
    display: block;

    transition: .4s;
}

.gallery-card:hover img {
    transform: scale(1.05);
}

/* TABLET: 2 columnas (aplica a Servicios y Obras, que comparten .gallery-grid) */
@media (max-width: 992px) {

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* MÓVIL: 1 columna */
@media (max-width: 576px) {

    .gallery-grid {
        grid-template-columns: 1fr;
    }
}


/***************** GALERÍA DE VIDEOS *****************/

.videos-section {
    padding-bottom: 60px;
}

/* GRID */

.videos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
}

/* VIDEO */

.video-card {
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

.video-card iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
    display: block;
}



/* HOVER */

.video-card {
    transition: .3s;
}

.video-card:hover {
    transform: translateY(-4px);
}

/* RESPONSIVE */

@media (max-width: 992px) {

    .videos-grid {
        grid-template-columns: 1fr;
    }
}

/* RESPONSIVE - CONTACTO */

@media (max-width: 768px) {

  .contact-section {
    padding-top: 35px;
  }

  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 25px;
    margin-bottom: 45px;
  }

  /* Evita que los elementos desborden el contenedor */
  .contact-grid > * {
    min-width: 0;
    width: 100%;
  }

  .contact-box {
    min-height: auto;
    padding: 45px 20px;
  }

  .contact-box h2 {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
    max-width: 100%;
  }

  .contact-box p {
    font-size: 1.15rem;
    line-height: 1.5;
  }

  .contact-form {
    width: 100%;
    min-width: 0;
    gap: 16px;
  }

  .contact-form input,
  .contact-form textarea {
    width: 100%;
    min-width: 0;
    padding: 17px;
    font-size: 1rem;
  }

  .contact-form textarea {
    min-height: 160px;
  }

  .contact-form button {
    height: 58px;
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {

  .contact-box {
    padding: 35px 15px;
  }

  .contact-box h2 {
    font-size: 1.7rem;
  }

  .contact-box p {
    font-size: 1.05rem;
  }

}

/* Responsive área de RRSS */

/* RESPONSIVE - REDES SOCIALES */
@media (max-width: 768px) {

  /* BLOQUE AZUL */
  .social-box.container-social {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 60px 12px;
    min-height: 180px;

    display: flex;
    flex-wrap: nowrap;
    justify-content: space-evenly;
    align-items: center;
    gap: 8px;
  }

  .social-link {
    flex: 0 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .social-link svg {
    width: clamp(38px, 12vw, 50px);
    height: auto;
  }

  /* BLOQUE GRIS OSCURO - SOLO CONTACTO */
  .social-footer {
    width: 100vw;
    max-width: none;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    padding: 35px 20px;
    box-sizing: border-box;
  }

  .social-footer h3 {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 12px;
  }

  .social-footer p {
    font-size: 1.05rem;
    line-height: 1.4;
  }
}