/* ============================ */
/* Sección CONTACTO             */
/* ============================ */

#contacto {
  padding: 0;              /* igual que en #perfil */
  display: flex;
  background-color: #262626;  /* gris oscuro tipo PDF, se ve detrás */
}

.contacto-wrapper {
  display: flex;
  width: 100%;
  height: 100%;
}

.contacto-section {
  display: flex;
  height: 100vh;
  background-color: #262626;
  position: relative;
}

/* izquierda ocupa el 60% */
.contacto-left {
  width: 60vw;
  padding: 80px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 3;
}

/* derecha ocupa el 40% */
.contacto-right {
  width: 40vw;
  background-image: url("../images/contacto.jpg");
  background-size: cover;
  background-position: center;
  filter: brightness(0.85);
}

/* Título */
.contacto-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  text-transform: uppercase;

  font-size: clamp(74px, 9vw, 140px);

  color: #66b058;
  text-shadow:
    0 4px 14px rgba(0,0,0,0.3),
    0 0 18px rgba(255,105,180,0.22),
    0 0 32px rgba(255,105,180,0.18);

  position: relative;
  z-index: 5;
  margin-top: -70px;
  margin-left: 1.5%;
  transform: none;

  transition: transform 0.25s ease;
  margin-bottom: 40px;
}

.contacto-title:hover {
  /* solo zoom suave, sin moverlo */
  transform: scale(1.02);
}


/* Grid de redes */
.contacto-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px 40px;
  max-width: 520px;
  margin-top: 210px;
}


/* 🔥 Link completo (icono + texto clickeables) */
.contacto-link {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  color: #fff;
}

.contacto-link:hover .contacto-text {
  text-decoration: underline;
}

/* Icono redondo */
.contacto-icon {
  width: 65px;
  height: 65px;
  min-width: 65px;
  min-height: 65px;
  border-radius: 50%;
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.45);
}

.contacto-icon i {
  font-size: 1.9rem;
  color: #fff;
}

/* Texto del contacto */
.contacto-text {
  font-size: 1.35rem;
  font-weight: 600;
  color: #fff;
}

/* COLUMNA DERECHA (foto) */
.contacto-right {
  flex: 1;
  background-image: url("../images/contacto.jpg");
  background-size: cover;
  background-position: center;
  filter: brightness(0.9);
}

/* Imagen recortada mobile (abajo a la derecha) */
.contacto-mobile-photo {
  /* en desktop, por si acaso, que no moleste */
  display: none;
}


/* ============================ */
/* Responsive tablet / móvil    */
/* ============================ */

@media (max-width: 900px) {

  /* El section deja de ser flex y pasa a ser un “hero” apilado */
  #contacto {
    display: block;
    position: relative;
    overflow: hidden;
  }

  /* Ocultamos la columna derecha original */
  .contacto-right {
    display: none;
  }

  /* Hero con la foto arriba, pegada al top */
  #contacto::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 115%;
    height: 260px;
    background-image: url("../images/contacto.jpg");
    background-size: cover;
    background-position: center;
    filter: brightness(0.9);
    z-index: 1;
  }

  /* Contenido por encima de la foto */
  .contacto-left {
    position: relative;
    overflow: visible;
    padding: 280px 20px 40px;   /* empuja el contenido debajo de la foto */
    width: 100%;
  }

  /* figura flotante abajo a la derecha (mobile) */
  .contacto-mobile-photo {
    display: block;
    position: absolute;
    bottom: -12px;
    right: -8px;
    width: 68%;
    max-width: 300px;
    z-index: 1;
    pointer-events: none;
    opacity: 0.95;
  }

  .contacto-title {
    font-size: clamp(32px, 9vw, 54px);
    text-align: center;
    margin: 0 0 24px;
    transform: none;
    margin-left: 0;
  }

  .contacto-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    max-width: 100%;
    margin-top: 0;
  }

  .contacto-icon {
    width: 55px;
    height: 55px;
  }

  .contacto-text {
    font-size: 1.05rem;
  }
}

/* 🔥 Ajuste para tablets y pantallas grandes móviles */
@media (min-width: 600px) and (max-width: 1024px) {

  #contacto::before {
    height: 340px;
    width: 120%;
    top: 0;
  }

  .contacto-left {
    padding-top: 360px;
  }

  .contacto-title {
    font-size: clamp(36px, 7vw, 70px);
  }

  .contacto-mobile-photo {
    width: 48%;
    bottom: -10px;
    right: -5px;
    max-width: 320px;
  }
}

/* Afinado para celus muy chicos (tipo iPhone SE) */
@media (max-width: 400px) {

  #contacto::before {
    height: 230px;
  }

  .contacto-left {
    padding: 260px 16px 36px;
  }

  .contacto-mobile-photo {
    width: 87%;
    right: -12px;
    bottom: -3px;
    opacity: 1;
  }

  .contacto-title {
    font-size: clamp(28px, 9vw, 48px);
    margin-bottom: 20px;
  }
}
