body {
  font-family: 'Raleway', sans-serif;
  background-color: #f8fafc;
  color: #1e293b;
  scroll-behavior: smooth;
}

/* === HERO === */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
}
.video-container {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}
#hero-video {
  width: 100%; height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}
.video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}
.overlay-content {
  position: relative;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  text-align: center;
}
.hero-title {
  font-family: 'Lobster', cursive;
  font-size: 3.2em;
}
.hero-subtitle {
  font-size: 1.4em;
  margin-bottom: 30px;
}

/* === SOBRE MÍ === */
.about { background:#0b1524; color:#e8f1f2; padding:100px 0; }
.about .section-title { color:#33c1c9; font-family:'Lobster', cursive; }
.about-subtitle span { color:#00d4ff; }
.img-me { width:240px; height:240px; border-radius:50%; border:4px solid #00d4ff; box-shadow:0 0 20px rgba(0,212,255,0.3); transition:.3s; }
.img-me:hover { transform:scale(1.05); }

/* === PORTFOLIO === */
.portfolio {
  background: #757373;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.portfolio-title {
  font-family: 'Lobster', cursive;
  font-size: 2.8em;
  color: #f1f1f1;
  margin-bottom: 60px;
}

/* === PANEL IZQUIERDO === */
.side-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 180px;
  height: 100%;
  background: linear-gradient(180deg, #2e2e2e, #444);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  z-index: 3;
}
.icon-skill img { width: 70px; transition: transform 0.3s; }
.icon-skill p { color: #fff; margin-top: 5px; font-size: 14px; }
.icon-skill:hover { transform: scale(1.1); }

/* === SLIDES === */
.owl-carousel .item figure {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
.owl-carousel .item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 12px;
}
.owl-carousel .item h2 {
  margin-top: 20px;
  font-family: 'Raleway', sans-serif;
  color: #2b3036;
  font-weight: 600;
}

/* BOTÓN VER MÁS */
.btn-vermas {
  display: inline-block;
  margin-top: 10px;
  background: #397d83;
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 600;
}
.btn-vermas:hover {
  background: #2f5e62;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  /* Panel lateral se vuelve fila */
  .side-panel {
    position: relative;
    width: 100%;
    height: auto;
    flex-direction: row;
    justify-content: space-around;
    gap: 10px;
    padding: 10px 0;
  }
  .icon-skill img { width: 45px; }
  .icon-skill p { font-size: 12px; }

  /* Centrar contenido del portafolio */
  .portfolio {
    padding: 60px 10px;
  }
  .owl-carousel .item img {
    height: 200px;
    object-fit: cover;
  }
  .owl-carousel .item figure {
    margin: auto;
    max-width: 320px;
  }
  .portfolio-title {
    font-size: 2.2em;
    margin-bottom: 40px;
  }
}


/* === PANEL DERECHO FIJO === */
.side-panel-fixed {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: #0e172a;
  border-left: 3px solid #00bcd4;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 15px;
  gap: 20px;
  z-index: 1000;
  transition: right 0.3s ease;
}
.side-panel-fixed .toggle-btn {
  display: none;
  position: absolute;
  left: -25px;
  top: 50%;
  transform: translateY(-50%);
  background: #000;
  color: #fff;
  padding: 5px;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
}
.exp-icon {
  color: #cfd8dc;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: 0.3s;
}
.exp-icon i { font-size: 22px; color: #00bcd4; margin-bottom: 5px; }
.exp-icon:hover i { color: #00e5ff; transform: scale(1.2); }
.exp-icon span { font-size: 12px; }

/* Celulares: panel derecho oculto y desplegable */
@media (max-width: 768px) {
  .side-panel-fixed {
    right: -90px;
  }
  .side-panel-fixed.open {
    right: 0;
  }
  .side-panel-fixed .toggle-btn {
    display: block;
  }

  .side-panel {
    position: relative;
    width: 100%;
    height: auto;
    flex-direction: row;
    padding: 20px 0;
    background: #333;
    justify-content: center;
    flex-wrap: wrap;
  }
  .icon-skill img { width: 50px; }
}

/* === VIDRIO === */
.glass-section {
  background: url('https://images.unsplash.com/photo-1504384308090-c894fdcc538d?auto=format&fit=crop&w=1600&q=80') no-repeat center/cover fixed;
  position: relative;
  padding: 120px 20px;
  text-align: center;
  color: #fff;
}
.title-glass { font-family:'Lobster', cursive; font-size:3em; color:#00e5ff; margin-bottom:10px; }
.subtitle-glass { font-size:1.2em; color:#d0f0f7; margin-bottom:40px; }
.glass-content { background:rgba(255,255,255,0.1); border:1px solid rgba(255,255,255,0.2); backdrop-filter:blur(10px); border-radius:15px; padding:40px; max-width:900px; margin:auto; line-height:1.8; }

/* === FOOTER === */
.footer-modern {
  background: linear-gradient(180deg, #0e172a 0%, #1a253b 100%);
  color: #e0f7fa;
  padding: 80px 20px;
  text-align: center;
}
.footer-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 20px 0;
  flex-wrap: wrap;
}
.btn-contact {
  background: #00bcd4;
  color: #fff;
  padding: 12px 25px;
  border-radius: 25px;
  text-decoration: none;
}
.btn-outline {
  border: 2px solid #00bcd4;
  color: #00bcd4;
  padding: 12px 25px;
  border-radius: 25px;
  text-decoration: none;
}
.footer-copy {
  margin-top: 30px;
  color: #90a4ae;
  font-size: 0.9em;
}
