body{
  background-color: #0b0b0b;
}
/* === ICONOS DE CONTACTO FOOTER === */

.redes-contacto {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin: 24px 0 0 0;
}
.redes-contacto a {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--gold);
  border-radius: 50%;
  background: var(--black);
  transition: background 0.2s, border 0.2s, transform 0.15s;
  text-decoration: none;
  margin: 0 8px;

}
.redes-contacto i {
  color: var(--gold);
  font-size: 2rem;
  transition: color 0.2s;
}
.redes-contacto a:hover, .redes-contacto a:focus {
  background: var(--gold);
  border-color: var(--gold-dark);
  transform: translateY(-4px) scale(1.08);
  outline: none;
}
.redes-contacto a:hover i, .redes-contacto a:focus i {
  color: var(--black);
}
/* === RESET === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* === TIPOGRAFÍA Y COLORES BASE === */
:root{
  --gold: #D4AF37;
  --gold-dark: #B8860B;
  --black: #0b0b0b;
  --white: #ffffff;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--black) !important;
  color: var(--white);
  line-height: 1.6;
}

/* Make page use full viewport height so footer can stick to bottom when content is short */
html, body {
  height: 100%;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box;
  width: 100vw;
  overflow-x: hidden;
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box;
  width: 100vw;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Dancing Script', cursive;
  color: var(--gold);
  margin-bottom: 10px;
}

/* === HEADER === */
header {
  background-color: var(--black);
  padding: 14px 28px;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  border-bottom: 3px solid var(--gold);
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  backdrop-filter: blur(6px);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.logo-img {
  width: 60px;
  height: auto;
}

.logo {
  font-size: 2rem;
  color: var(--gold);
  font-family: 'Dancing Script', cursive;
  font-style: italic;
}

.menu-toggle {
  background-color: transparent;
  color: var(--white);
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  display: none;
}

nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
}

nav ul li a {
  text-decoration: none;
  color: var(--white);
  font-weight: 600;
  position: relative;
  padding: 6px 4px;
  transition: color 0.25s ease, transform 0.15s ease;
}

nav ul li a::after{
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  bottom: -6px;
  height: 3px;
  width: 60%;
  background: linear-gradient(90deg,var(--gold),var(--gold-dark));
  transition: transform 0.25s ease;
  transform-origin: center;
}

nav ul li a:hover{
  color: var(--gold);
  transform: translateY(-2px);
}

nav ul li a:hover::after{
  transform: translateX(-50%) scaleX(1);
}

/* Responsive: make nav and layout adapt */
nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Make gallery responsive using CSS Grid */
.galeria {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  padding: 0 10px;
}

.proyecto {
  width: 100%;
  max-width: none;
}

/* Estilos específicos para proyectos web: tarjetas coherentes con la paleta */

.proyecto.web {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), #fff);
  border: 1px solid rgba(11,11,11,0.04);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  box-shadow: 0 8px 20px rgba(11,11,11,0.06);
  transition: transform 260ms var(--ease-medium), box-shadow 260ms var(--ease-medium);
}

.proyecto.web:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(11,11,11,0.12);
}

.proyecto.web img {
  width: 100%;
  max-width: 420px;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}

.proyecto.web h3 {
  margin: 6px 0 0 0;
  color: var(--black);
  font-size: 1.05rem;
  text-align: center;
}

.proyecto.web p {
  color: rgba(11,11,11,0.75);
  font-size: 0.95rem;
  margin: 0;
  text-align: center;
}

/* Botón principal para abrir proyectos */
.btn-proyecto {
  display: inline-block;
  align-self: center;
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
  color: var(--black);
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(212,175,55,0.12);
  transition: transform 180ms var(--ease-quick), box-shadow 180ms var(--ease-quick), opacity 180ms var(--ease-quick);
  margin-bottom: 18px;
}

.btn-proyecto:hover,
.btn-proyecto:focus {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(184,134,11,0.14);
  opacity: 0.98;
}

/* Botón de proyectos de diseño */
.btn-proyecto {
  display: inline-block;
  background-color: #bfa14a; /* dorado */
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.6em 1.2em;
  font-size: 1rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(191, 161, 74, 0.08);
}

.btn-proyecto:hover,
.btn-proyecto:focus {
  background-color: #a88c36;
  color: #fff;
  box-shadow: 0 4px 16px rgba(191, 161, 74, 0.18);
  outline: none;
}

/* Responsive tweaks for project cards */
@media (max-width: 640px) {
  .proyecto.web img {
    height: 140px;
  }
  .btn-proyecto { padding: 9px 12px; font-size: 0.95rem; }
}

/* Hero responsiveness */
.hero-content {
  gap: 24px;
}

.hero-texto h2 {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
}

.hero-imagen img {
  max-width: 60%;
  width: 100%;
  height: auto;
}

/* Make images and media fluid */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Navbar mobile behaviour */
@media (max-width: 768px) {
  .navbar {
    padding: 10px 18px;
  }

  .logo {
    font-size: 1.6rem;
  }

  .menu-toggle {
    display: block;
    font-size: 1.6rem;
    background: transparent;
    border: none;
    margin-left: auto;
    margin-right: 14px;
    z-index: 1200;
    align-self: center;
  }

  nav ul {
    position: absolute;
    top: 64px;
    /* align menu to the right of the header with small gap */
    right: 14px;
    /* width responsive but constrained so it doesn't take full viewport */
    width: clamp(240px, 40%, 420px);
    background: var(--black);
    flex-direction: column;
    padding: 0 20px;
    gap: 12px;
    box-shadow: 0 12px 34px rgba(0,0,0,0.18);
    overflow: hidden;
    max-height: 0;
    /* slide in from the right */
    transform-origin: top right;
    transform: translateX(8px) scale(0.98);
    opacity: 0;
    transition: transform 260ms cubic-bezier(.2,.9,.2,1), opacity 220ms ease, max-height 350ms ease;
    /* Prevent pointer events when menu is closed to avoid accidental clicks */
    pointer-events: none;
    z-index: 1200;
  }

    nav ul.active {
      /* Use remaining viewport height under the header so menu never overflows screen */
      max-height: calc(100vh - 64px);
      padding: 14px 20px;
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
      transform: translateX(0) scale(1);
      opacity: 1;
      /* enable pointer events when menu is active */
      pointer-events: auto;
      border-top-left-radius: 12px;
      border-bottom-left-radius: 12px;
    }

  nav ul li a {
    color: var(--white);
    padding: 12px 10px;
    font-size: 0.98rem;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    display: block;
    max-width: 100%;
    margin: 0 auto;
  }

  nav ul li a:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 4px;
  }

  main {
    padding-top: 88px;
  }
  /* Reduce section padding for small screens */
  section {
    padding: 28px 14px;
    margin: 14px auto;
  }

  .hero {
    padding: 80px 14px 40px;
  }

  .hero-content {
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
  }

  .hero-imagen img {
    max-width: 220px;
    margin: 0 auto 18px;
  }

  .contenedor-sobre-mi, .tarjetas-formacion, .contenedor-formacion, .contenedor-contacto {
    gap: 18px;
  }

  .formacion-card {
    max-width: 100%;
  }

  .formulario input, .formulario textarea {
    width: 100%;
  }

  .creditos {
    margin-left: 0;
  }
}

/* Wider screens: use horizontal spacing */
@media (min-width: 769px) {
  nav ul {
    display: flex !important;
  }
}

/* === MAIN === */
main {
  padding: 100px 0 60px 0;
  flex: 1 0 auto;
  margin: 0 !important;
  box-sizing: border-box;
  width: 100vw;
}

/* Typographic scale (responsive) */
html { font-size: 16px; }
body { font-size: clamp(14px, 1.6vw, 18px); }

h1.logo { font-size: clamp(1.4rem, 4vw, 2.2rem); }
h1, h2, h3 { font-size: clamp(1.3rem, 4.2vw, 2.4rem); }
h2 { font-size: clamp(1.2rem, 3.6vw, 2rem); }
h3 { font-size: clamp(1rem, 3vw, 1.4rem); }

/* Smooth subtle animations */
:root{ --ease-quick: 180ms; --ease-medium: 350ms; --ease-slow: 600ms; }

/* fade up for sections and project cards */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--ease-medium) ease, transform var(--ease-medium) ease;
}
.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}

/* buttons subtle hover translate already exists, add smoother transition */
.btn-cta { transition: transform var(--ease-quick) ease, box-shadow var(--ease-quick) ease; }

/* nav links micro animation */
nav ul li a { transition: color var(--ease-quick) ease, transform var(--ease-quick) ease; }

/* small tweak for hero text animation */
.hero-texto { transition: opacity var(--ease-medium) ease, transform var(--ease-medium) ease; }
.hero-texto.reveal { opacity: 0; transform: translateY(8px); }
.hero-texto.reveal.is-visible { opacity: 1; transform: translateY(0); }

section {
  padding: 60px 0;
  background-color: #fff;
  margin: 0 auto 0 auto;
  border-radius: 0;
  max-width: 100vw;
  box-shadow: none;
  text-align: center;
}

/* === HERO === */
.hero {
  background: linear-gradient(135deg, var(--black) 30%, rgba(212,175,55,0.12) 100%);
  color: #fff;
  padding: 120px 20px 60px;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1100px;
  margin: auto;
}

.hero-texto {
  flex: 1 1 500px;
}

.hero-texto h2 {
  color: #ffffff;
  font-size: 3rem;
  margin-bottom: 20px;
}

.hero-texto p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.btn-cta {
  background-color: var(--gold);
  color: var(--black);
  padding: 12px 24px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 6px 18px rgba(212,175,55,0.12);
}

.btn-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(184,134,11,0.14);
}

.hero-imagen img {
  max-width: 300px;
  border-radius: 50%;
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

/* === SOBRE MÍ === */
.sobre-mi {
  background-color: #ffffff;
  padding: 100px 20px;
}

  .contenedor-sobre-mi {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1100px;
    margin: auto;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

.texto-sobre-mi {
  flex: 1 1 500px;
}

.texto-sobre-mi h2 {
  margin-bottom: 20px;
  font-size: 3rem;
  color: var(--black);
  text-align: center;
}

.texto-sobre-mi p {
  margin-bottom: 20px;
  font-size: 1.1rem;
  color: #444;
}

.texto-sobre-mi .btn-cta {
  display: inline-block;
  margin-top: 10px;
  background-color: var(--gold);
  color: var(--black);
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  transition: transform 0.15s ease;
}

.texto-sobre-mi .btn-cta:hover {
  transform: translateY(-3px);
}

.grafico-sobre-mi img {
  max-width: 320px;
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* === FORMACIÓN === */
.formacion {
  background-color: #ffffff;
  padding: 100px 20px;
  text-align: center;
}

.contenedor-formacion {
  max-width: 1100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  text-align: center;
}

.contenedor-formacion h2 {
  color: var(--black);
  font-size: 2.4rem;
  margin-bottom: 20px;
}

.contenedor-formacion h3 {
  color: var(--gold);
  font-size: 1.6rem;
}

.formacion p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 40px;
}

  .tarjetas-formacion {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    text-align: center;
  }

.formacion-card {
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  flex: 1;
  margin: 10px;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.formacion-card:hover {
  transform: translateY(-5px);
}

.formacion-card img {
  width: 100%;
  max-height: 150px;
  object-fit: contain;
  margin-bottom: 20px;
}

.formacion-card h3 {
  color: var(--gold);
  font-size: 1.2rem;
  margin-bottom: 10px;
}

/* === PROYECTOS === */
.proyectos {
  padding: 60px 20px;
  background-color: #f8f9fa;
  text-align: center;
}

.proyectos h2 {
  font-size: 2.2rem;
  margin-bottom: 30px;
  color: var(--black);
}

.filtros {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
}

.filtro {
  padding: 10px 20px;
  background-color: #f0f0f0;
  color: var(--black);
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.25s ease;
  font-weight: 500;
}

.filtro:hover,
.filtro.activo {
  background-color: var(--black);
  color: var(--gold);
}

  .galeria {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 0 10px;
    text-align: center;
  }

  .proyecto {
    width: calc(33.333% - 20px);
    max-width: 300px;
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

.proyecto:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

.proyecto img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.proyecto h3 {
  margin: 15px 10px 5px;
  font-size: 1.2rem;
  color: #111;
}

.proyecto p {
  font-size: 0.95rem;
  padding: 0 15px 20px;
  color: #555;
  line-height: 1.4;
}

/* === CONTACTO + FOOTER === */
.contacto-footer {
  background-color: var(--black);
  color: #fff;
  width: 100vw !important;
  min-height: 350px;
  margin: 0 !important;
  margin-top: auto !important;
  box-sizing: border-box;
  border: none !important;
  box-shadow: none !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  left: 0 !important;
  right: 0 !important;
  margin-bottom: -100px;
}

.contenedor-contacto {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 40px;
  margin-bottom: 0%;
}

.formulario, .info-contacto {
  flex: 1 1 300px;
}

.formulario h2,
.info-contacto h3 {
  margin-bottom: 20px;
  color: #fff;
}

.formulario form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.formulario input,
.formulario textarea {
  padding: 12px;
  border: 1px solid rgba(212,175,55,0.08);
  border-radius: 8px;
  font-size: 1rem;
  background: #0f0f0f;
  color: #fff;
}

.formulario textarea {
  resize: vertical;
  min-height: 120px;
}

.formulario button {
  background-color: var(--gold);
  color: var(--black);
  border: none;
  padding: 12px;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.15s ease;
}

.formulario button:hover {
  transform: translateY(-3px);
}

.info-contacto p {
  margin: 10px 0;
  font-size: 0.95rem;
  color: #ccc;
}

.redes {
  margin-top: 20px;
}

.redes a {
  color: #fff;
  margin-right: 15px;
  font-size: 1.5rem;
  transition: color 0.3s;
}

.redes a:hover {
  color: var(--gold);
}

.creditos {
  text-align: center;
  margin-top: 32px;
  font-size: 0.95rem;
  border-top: none;
  padding-top: 12px;
  padding-bottom: 0;
  color: #ccc;
  width: 100%;
  background: transparent;
}

/* Footer typography and sizing */
.contacto-footer, .creditos {
  font-size: clamp(13px, 1.8vw, 15px);
}

/* Menu toggle animation when open */
#menu-toggle {
  transition: transform 220ms cubic-bezier(.2,.9,.2,1);
}

#menu-toggle[aria-expanded="true"] {
  transform: rotate(90deg) scale(1.05);
}

/* Carrusel Modal */
.carrusel-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
}
.carrusel-modal.activo {
  display: flex;
}
.carrusel-contenido {
  position: relative;
  background: #fff;
  border-radius: 12px;
  padding: 1.5em;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  max-width: 90vw;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.carrusel-cerrar {
  position: absolute;
  top: 12px; right: 18px;
  font-size: 2rem;
  color: #bfa14a;
  cursor: pointer;
  font-weight: bold;
}
.carrusel-nav {
  background: #bfa14a;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 2rem;
  width: 48px; height: 48px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  opacity: 0.85;
  transition: background 0.2s;
}
.carrusel-prev { left: 10px; }
.carrusel-next { right: 10px; }
.carrusel-nav:hover { background: #a88c36; }
#carrusel-img {
  max-width: 70vw;
  max-height: 60vh;
  border-radius: 8px;
  margin: 0 60px;
  box-shadow: 0 2px 16px rgba(191,161,74,0.12);
}
.carrusel-indicadores {
  margin-top: 1em;
  text-align: center;
}
.carrusel-indicadores span {
  display: inline-block;
  width: 12px; height: 12px;
  margin: 0 4px;
  background: #bfa14a;
  border-radius: 50%;
  opacity: 0.4;
  cursor: pointer;
  transition: opacity 0.2s;
}
.carrusel-indicadores .activo {
  opacity: 1;
}

/* === MEDIA QUERY (UNIFICADO) === */
@media (max-width: 1024px) {
  .proyecto {
    width: calc(50% - 20px);
    margin-left: auto;
    margin-right: auto;
  }
  .galeria {
    justify-content: center;
    align-items: center;
  }
}

@media (max-width: 600px) {
  .proyecto {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  .galeria {
    justify-content: center;
    align-items: center;
  }
  .contenedor-sobre-mi, .tarjetas-formacion {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
}

/* HABILIDADES - estilos coherentes con otras secciones */
.habilidades {
  background: #f8f8f8;
  padding: 60px 0 50px 0;
}

.contenedor-habilidades {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.habilidades h2 {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 600;
  color: #222;
  margin-bottom: 10px;
  font-family: 'Dancing Script', cursive;
}

.separador {
  width: 60px;
  border: 2px solid #d4af37;
  margin: 0 auto 32px auto;
  border-radius: 2px;
  background: #d4af37;
}

.habilidades-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
}

.skill-group {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  padding: 28px 24px 18px 24px;
  min-width: 220px;
  max-width: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow .2s;
  border: 1.5px solid #ececec;
}

.skill-group:hover {
  box-shadow: 0 4px 18px rgba(212,175,55,0.13);
  border-color: #d4af37;
}

.icono-skill {
  margin-bottom: 12px;
}

.icono-skill img {
  width: 38px;
  height: 38px;
  display: block;
}

.skill-group h3 {
  font-size: 1.15rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  margin-bottom: 12px;
  text-align: center;
  color: #d4af37;
}

.skill-group ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

.skill-group li {
  font-size: 1rem;
  color: #444;
  margin-bottom: 6px;
  font-family: 'Poppins', sans-serif;
}

/* ...existing code... */


