/* =========================
   RESET GENERAL
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* =========================
   VARIABLES
========================= */
:root {
  --bg-main: #0d0d0d;
  --bg-card: #171717;
  --bg-soft: #222222;
  --primary: #38bdf8;
  --primary-dark: #0ea5e9;
  --accent: #722f37;
  --text-main: #ffffff;
  --text-soft: #cfcfcf;
  --text-muted: #9ca3af;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  --transition: all 0.3s ease;
}

/* =========================
   BODY
========================= */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.7;
}

/* =========================
   TIPOGRAFÍA
========================= */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 700;
}

h1 {
  font-size: 3rem;
  line-height: 1.2;
  letter-spacing: -1px;
}

h1 strong {
  color: var(--primary);
}

h2 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 25px;
}

h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

p {
  color: var(--text-soft);
  font-size: 1rem;
}

small {
  color: var(--text-muted);
}

/* =========================
   HEADER
========================= */
.header {
  background-color: var(--bg-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 25px 40px;
  gap: 20px;
}

.logo img {
  display: block;
  max-width: 180px;
  height: auto;
}

/* =========================
   MENÚ
========================= */
.menu {
  width: 100%;
  background: rgba(114, 47, 55, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 999px;
  padding: 12px 20px;
  box-shadow: var(--shadow);
}

.menu ul {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  gap: 14px;
  flex-wrap: wrap;
}

/* =========================
   LINKS DEL MENÚ
========================= */
.link {
  display: inline-block;
  position: relative;
  padding: 12px 22px;
  color: var(--text-main);
  border-radius: 999px;
  overflow: hidden;
  transition: var(--transition);
  text-decoration: none;
  z-index: 1;
  font-weight: 600;
}

.link::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--primary);
  clip-path: circle(0% at 50% 50%);
  transition: clip-path 0.4s ease;
}

.link:hover {
  color: #000;
}

.link:hover::before {
  clip-path: circle(100% at 50% 50%);
}

/* =========================
   HERO
========================= */
.hero {
  min-height: 520px;
  margin: 30px;
  padding: 60px 50px;
  border-radius: var(--radius-lg);
  background-color: var(--bg-soft);
  background-image: linear-gradient(
    to right,
    rgba(13, 13, 13, 0.92) 0%,
    rgba(13, 13, 13, 0.75) 45%,
    rgba(13, 13, 13, 0.15) 100%
  );
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-texto {
  flex: 1 1 55%;
  background-color: rgba(23, 23, 23, 0.88);
  padding: 30px;
  border-radius: var(--radius-lg);
  max-width: 700px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(4px);
}

.hero-texto h1 {
  max-width: 100%;
}

.hero-imagen {
  flex: 1 1 45%;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 280px;
}

/* =========================
   IMAGEN GIRATORIA
========================= */
.giro-yinyang {
  width: min(100%, 380px);
  aspect-ratio: 1 / 1;
  object-fit: contain;
  display: block;
  animation: girar 12s linear infinite;
  will-change: transform;
  transform-origin: center center;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.3));
  transition: filter 0.4s ease, transform 0.4s ease;
}

.giro-yinyang:hover {
  animation-play-state: paused;
  filter: drop-shadow(0 20px 35px rgba(56, 189, 248, 0.35));
  transform: scale(1.05);
}

@keyframes girar {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* =========================
   SECCIONES
========================= */
.portfolio,
#proyectos,
#Sobremi,
#servicios,
#contacto {
  padding: 70px 40px;
}

/* =========================
   TARJETAS / PROJECT
========================= */
.project,
.event,
.mylife {
  background: linear-gradient(145deg, #171717, #1f1f1f);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 30px;
  transition: var(--transition);
}

.project:hover,
.event:hover,
.mylife:hover {
  transform: translateY(-5px);
}

.project {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
  justify-content: space-between;
}

.project-details {
  flex: 1 1 350px;
}

.project-details ul {
  margin-top: 15px;
  padding-left: 20px;
  display: block;
}

.project-details li {
  margin-bottom: 10px;
  color: var(--text-soft);
}

.project-imageContainer {
  flex: 1 1 350px;
  text-align: center;
}

.project-image {
  max-width: 100%;
  width: 100%;
  max-width: 500px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

/* =========================
   EXPERIENCIA
========================= */
.event {
  margin-top: 20px;
  text-align: center;
}

.event-imageContainer {
  margin-bottom: 20px;
}

.event-image {
  max-width: 100%;
  width: 100%;
  max-width: 500px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.event-title {
  margin-bottom: 12px;
}

.event-description {
  margin-bottom: 18px;
  max-width: 800px;
  margin-inline: auto;
}

.event-url {
  display: inline-block;
  background: var(--primary);
  color: #000;
  padding: 12px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: var(--transition);
}

.event-url:hover {
  background: var(--primary-dark);
  transform: scale(1.05);
}

/* =========================
   SOBRE MÍ
========================= */
.mylife {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
}

.mylife-imageContainer {
  flex: 1 1 320px;
  text-align: center;
}

.mylife-imageContainer img {
  width: 100%;
  max-width: 380px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.mylife div {
  flex: 1 1 350px;
}

/* =========================
   CONTACTO
========================= */
.contact {
  background: linear-gradient(135deg, #04d9ff, #38bdf8);
  color: #000;
  border-radius: var(--radius-lg);
  margin: 30px;
  box-shadow: var(--shadow);
}

.form-email {
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: center;
  width: 100%;
  max-width: 700px;
  margin: auto;
}

.form-email p {
  color: #111;
  font-weight: 500;
}

.form-email input[type="text"] {
  padding: 14px 18px;
  border: none;
  border-radius: var(--radius-sm);
  width: 100%;
  font-size: 1rem;
  outline: none;
}

.form-email input[type="submit"] {
  padding: 14px 18px;
  border: none;
  border-radius: var(--radius-sm);
  background: #000;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.form-email input[type="submit"]:hover {
  transform: scale(1.03);
  background: #111;
}

/* =========================
   REDES SOCIALES
========================= */
.social {
  padding: 30px 20px;
  text-align: center;
}

.social-link {
  display: inline-block;
  width: 55px;
  height: 55px;
  margin: 8px;
  border-radius: 50%;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: var(--transition);
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
  transform: translateY(-4px) scale(1.08);
  border-color: var(--primary);
}

.social-link.facebook {
  background-image: url('../68747470733a2f2f6c696e6b732e7061706172656163742e636f6d2f743469.png');
}

.social-link.instagram {
  background-image: url('../Gemini_Generated_Image_9nail9nail9nail9.png');
}

.social-link.github {
  background-image: url('../github-white-icon.webp');
}

.social-link.linkedin {
  background-image: url('../linkendin.avif');
}

.social-link.whatsapp {
    background-image: url('../whats.png') !important; /* Los dos puntos son vitales */
}
/* =========================
   FOOTER
========================= */
.footer {
  text-align: center;
  padding: 25px 20px;
  background-color: #0a0a0a;
  color: var(--text-muted);
  font-size: 0.95rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 992px) {
  .hero {
    min-height: auto;
    padding: 50px 35px;
    gap: 30px;
  }

  h1 {
    font-size: 2.4rem;
  }

  .hero-texto {
    flex: 1 1 60%;
  }

  .hero-imagen {
    flex: 1 1 40%;
  }

  .giro-yinyang {
    width: 280px;
  }
}

@media (max-width: 768px) {
  .header {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }

  .menu {
    border-radius: 30px;
  }

  .menu ul {
    flex-direction: column;
    gap: 10px;
  }

  .hero {
    min-height: auto;
    margin: 20px;
    padding: 35px 25px;
    flex-direction: column;
    text-align: center;
  }

  .hero-texto {
    max-width: 100%;
    padding: 24px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-imagen {
    width: 100%;
    margin-top: 10px;
  }

  .giro-yinyang {
    width: 220px;
  }

  .portfolio,
  #proyectos,
  #Sobremi,
  #servicios,
  #contacto {
    padding: 50px 20px;
  }

  .project,
  .mylife {
    flex-direction: column;
    text-align: center;
  }

  .project-details ul {
    text-align: left;
  }

  h2 {
    font-size: 1.7rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.7rem;
    line-height: 1.3;
  }

  .hero {
    padding: 30px 20px;
  }

  .hero-texto {
    padding: 20px;
  }

  .link {
    padding: 10px 18px;
    font-size: 0.95rem;
  }

  .form-email input[type="text"],
  .form-email input[type="submit"] {
    font-size: 0.95rem;
  }

  .social-link {
    width: 48px;
    height: 48px;
  }

  .giro-yinyang {
    width: 180px;
  }
}

