html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #fff;
  color: #333;
  scroll-behavior: smooth;
}

/* ===== HERO ===== */
.hero {
  width: 100vw;
  max-width: 100vw;
  min-width: 100%;
  margin: 0;
  padding: 0;
  height: 100vh;
  background: url('Fondoini.png') no-repeat center top / cover;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .4);
}

.hero h1,
.hero p,
.cta-links {
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s, transform .7s;
}

.hero.visible h1,
.hero.visible p,
.hero.visible .cta-links {
  opacity: 1;
  transform: none;
}

.hero h1 {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.cta-links {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.btn {
  background: #fff;
  color: #ffb34d;
  padding: 10px 25px;
  border-radius: 25px;
  font-weight: bold;
  text-decoration: none;
  border: 2px solid transparent;
  transition: .3s;
}

.btn:hover {
  transform: translateY(-2px);
  background: #f6fbff;
  color: #28a745;
  border-color: #cde3ff;
}

.linkedin-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: #0a66c2;
  padding: 9px 14px;
  border-radius: 25px;
  font-weight: 700;
  text-decoration: none;
  transition: .3s;
}

.linkedin-badge:hover {
  transform: translateY(-2px);
  background: #f6fbff;
  box-shadow: 0 0 8px rgba(10, 102, 194, .3);
}

/* ===== SECCIONES GENERALES ===== */
section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: auto;
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: bold;
  color: #ffb34d;
  margin-bottom: 30px;
}

/* ===== SOBRE ===== */
#sobre {
  max-width: 900px;          /* centra el contenido dentro de la sección */
  margin: 0 auto;            /* centrado horizontal */
  display: flex;
  flex-direction: column;    /* una tarjeta debajo de la otra */
  gap: 30px;                 /* separación entre tarjetas */
}

.sobre-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .08);
  width: 100%;               /* ocupa el ancho disponible del contenedor */
}

.text-highlight {
  font-weight: 700;
  color: #ffb34d; /* naranja de la página */
}


.badge {
  display: inline-block;
  background: #000;
  color: #ffb34d;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: .9rem;
  margin-bottom: 12px;
}

.sobre-text p {
  color: #555;
  line-height: 1.7;
  font-size: 1.05rem;
}

@media (max-width: 980px) {
  #sobre {
    grid-template-columns: 1fr;
  }
}

/* ===== SERVICIOS ===== */
.services-grid {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.service-item {
  background: #fff;
  border-radius: 12px;
  width: 280px;
  height: 320px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .15);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform .3s, box-shadow .3s;
}

.service-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
}

.service-item img {
  max-width: 150px;
  max-height: 150px;
  object-fit: contain;
  margin: auto;
}

.service-item h3 {
  font-size: 1.2rem;
  color: #ffb34d;
  margin: 10px 0 5px;
}

.service-item p {
  font-size: .95rem;
  color: #444;
}

/* ===== HABILIDADES ===== */
.skills-card {
  background: #ffffff3d;
  border-radius: 16px;
  border: 1px solid #eee;
  padding: 24px 24px 28px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;   /* centra todas las píldoras */
  gap: 10px 16px;            /* espacio entre filas y columnas */
}

.skill-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: 999px;
  background: #fff7e6;              /* fondo suave naranja */
  border: 1px solid #ffb34d33;      /* borde naranja muy suave */
  color: #b86805;                   /* texto naranja oscuro */
  font-size: .9rem;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .04);
}

/* píldoras principales (opcional) */
.skill-pill.main {
  background: #ffb34d;
  border-color: #ffb34d;
  color: #fff;
  font-weight: 600;
}

/* ===== PROYECTOS ===== */
.projects {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.project {
  width: 300px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}

.project:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
}

.project img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.project-info {
  padding: 15px;
}

.project-info h3 {
  color: #ffb34d;
  margin-bottom: 10px;
}

.project-info p {
  color: #444;
  font-size: .95rem;
}

/* Píldoras dentro de proyectos */
.project-tags {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.skill-pill-mini {
  background: #fff7e6;
  border-color: #ffb34d;
  color: #b96b00;
  font-size: .75rem;
  padding: 4px 10px;
  box-shadow: none;
}

/* ===== CONTACTO ===== */
.contact {
  background: #f4f4f4;
  text-align: center;
  padding: 60px 20px;
}

.contact a {
  display: inline-block;
  background: #ffb34d;
  color: #fff;
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: background .3s;
}

.contact a:hover {
  background: #ff9f1a;
}

/* ===== FOOTER ===== */
footer {
  background: #000;
  color: #fff;
  padding: 40px 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
}

footer .col {
  flex: 1 1 300px;
}

footer h3 {
  color: #ffb34d;
  font-size: 1.1rem;
  margin-bottom: 10px;
}

footer a {
  color: #fff;
  text-decoration: none;
}

footer a:hover {
  color: #ffb34d;
}

.social {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.social img {
  width: 28px;
  height: 28px;
  filter: brightness(0) invert(1);
  transition: .3s;
}

.social img:hover {
  transform: scale(1.15);
  filter: brightness(1) saturate(3);
}

.footer-bottom {
  background: #ffb34d;
  text-align: center;
  padding: 10px;
  font-size: .9rem;
  color: #fff;
}

/* ===== LOGO FLOTANTE ===== */
.floating-logo {
  position: fixed;
  top: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background: #000;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: .3s;
  box-shadow: 0 0 10px rgba(255, 255, 255, .1);
  z-index: 999;
}

.floating-logo:hover {
  transform: scale(1.1);
  box-shadow: 0 0 25px rgba(255, 255, 255, .4);
}

.floating-logo img {
  width: 35px;
  height: 35px;
}

/* ===== ANIMACIONES SCROLL ===== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s, transform .7s;
}

.fade-in.visible {
  opacity: 1;
  transform: none;
}
