/* =====================================================
   CONTACTO - PORTAFOLIO DE RONNY FELIZ
   ===================================================== */

:root {
  --azul-oscuro: #2b4cb8;
  --azul-claro: #4d94ff;
  --verde-resalte: #00ff99;
  --fondo-principal: #0e1421;
  --texto-claro: #ffffff;
  --gris-suave: #b3b3b3;
  --sombra-suave: 0 4px 20px rgba(0, 0, 0, 0.4);
  --transicion: 0.3s ease;
}

/* ---------- Reset ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ---------- Base ---------- */
body {
  font-family: 'Poppins', sans-serif;
  color: var(--texto-claro);
  background: radial-gradient(circle at top, #1a1a1c, #101016);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* ---------- HEADER ---------- */
header {
  background: linear-gradient(90deg, var(--azul-oscuro), var(--azul-claro));
  color: white;
  text-align: center;
  padding: 15px 0;
  position: relative;
  box-shadow: var(--sombra-suave);
  z-index: 10;
  transition: all 0.4s ease;
}

header h1 {
  font-size: 2rem;
  font-weight: 700;
  text-shadow: 0 0 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.4s ease, text-shadow 0.4s ease;
}

header h1:hover {
  transform: scale(1.15) translateY(-5px);
  text-shadow: 0 0 20px var(--verde-resalte);
}

/* ---------- NAVEGACIÓN ---------- */
nav {
  margin-top: 15px;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

nav ul li a {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 12px;
  font-weight: 500;
  backdrop-filter: blur(4px);
  transition: all 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
  background: var(--verde-resalte);
  color: var(--azul-oscuro);
  transform: translateY(-3px);
  box-shadow: 0 0 15px rgba(0, 255, 160, 0.5);
}

/* ---------- MAIN ---------- */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: radial-gradient(circle at 20% 20%, #11131a, #0c0e13);
  padding: 60px 20px;
  position: relative;
}

main::before {
  content: "";
  position: absolute;
  top: -50px;
  left: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(0, 255, 200, 0.15), transparent 70%);
  animation: moverLuz 10s infinite alternate;
  z-index: 0;
}

@keyframes moverLuz {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(60vw, 40vh); }
}

/* ---------- INTRO ---------- */
.contacto-intro {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
  margin-bottom: 40px;
}

.contacto-intro h2 {
  color: var(--verde-resalte);
  font-size: 2rem;
  margin-bottom: 12px;
  text-shadow: 0 0 10px rgba(0, 255, 200, 0.3);
  transition: transform 0.4s ease, text-shadow 0.4s ease;
}

.contacto-intro h2:hover {
  transform: scale(1.15) translateY(-5px);
  text-shadow: 0 0 20px var(--verde-resalte);
}

.contacto-intro p {
  color: var(--gris-suave);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.contacto-intro p:hover {
  color: var(--verde-resalte);
}

/* ---------- TARJETAS DE CONTACTO ---------- */
.contacto-contenedor {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 90%;
  max-width: 500px;
}

.info-card {
  background: var(--fondo-principal);
  border: 2px solid transparent;
  border-radius: 14px;
  padding: 24px 28px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

.info-card:hover {
  border-color: var(--verde-resalte);
  transform: translateY(-4px);
  box-shadow: 0 0 25px rgba(0, 255, 160, 0.2);
}

.info-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.info-card h3 {
  color: var(--verde-resalte);
  font-size: 1rem;
  margin-bottom: 8px;
}

.info-card a {
  display: block;
  color: var(--gris-suave);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  margin-bottom: 4px;
}

.info-card a:hover {
  color: var(--verde-resalte);
}

/* ---------- FOOTER ---------- */
footer {
  background: linear-gradient(90deg, var(--azul-oscuro), var(--azul-claro));
  color: #fff;
  text-align: center;
  padding: 20px 10px;
  box-shadow: var(--sombra-suave);
}

footer p {
  margin-bottom: 10px;
  font-size: 0.9rem;
}

footer ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
}

footer ul li a {
  color: white;
  text-decoration: none;
  transition: color var(--transicion);
  font-size: 0.95rem;
}

footer ul li a:hover {
  color: var(--verde-resalte);
}

/* ---------- HAMBURGUESA ---------- */
.hamburger {
  display: none;
  position: absolute;
  top: 18px;
  right: 20px;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 18px;
  cursor: pointer;
  z-index: 20;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

#menu-toggle { display: none; }

#menu-toggle:checked + .hamburger span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
#menu-toggle:checked + .hamburger span:nth-child(2) {
  opacity: 0;
}
#menu-toggle:checked + .hamburger span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

#menu-toggle:checked ~ nav ul {
  display: flex;
}

/* ---------- ANIMACIONES ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-title {
  animation: slideUp 1.2s ease forwards;
}
.animate-text {
  animation: floatUp 1.2s ease-in-out infinite alternate;
}

@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
@keyframes floatUp {
  from { transform: translateY(0); }
  to   { transform: translateY(-10px); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.highlight-hover:hover {
  color: var(--verde-resalte);
  transition: color 0.4s ease;
}

/* ---------- DARK MODE ---------- */
body.dark-mode {
  background-color: #0f111a;
  color: #e4e4e4;
}
body.dark-mode header {
  background-color: rgba(25, 28, 39, 0.95);
}
body.dark-mode nav ul li a {
  color: #9fcfff;
}
body.dark-mode footer {
  background-color: #11131c;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  .hamburger { display: flex; }

  nav ul {
    display: none;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.95);
    position: absolute;
    top: 70px;
    right: 0;
    width: 100%;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
  }

  nav ul li { margin: 10px 0; }

  nav ul li a {
    width: 80%;
    margin: auto;
    text-align: center;
    font-size: 1rem;
  }

  .contacto-contenedor { width: 100%; }
}