/* Estilos generales y reset */
:root {
    --primary-color: #1e3a8a;
    --secondary-color: #3b82f6;
    --accent-color: #10b981;
    --dark-color: #1f2937;
    --light-color: #f9fafb;
    --text-color: #374151;
    --text-light: #6b7280;
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html {
    scroll-behavior: smooth;
    font-size: 16px;
  }
  
  body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
  }
  
  h1, h2, h3, h4 {
    line-height: 1.2;
    font-weight: 700;
  }
  
  a {
    text-decoration: none;
    color: inherit;
  }
  
  img {
    max-width: 100%;
    height: auto;
  }
  
  .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
  }
  
  /* Botones */
  .btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    border: none;
  }
  
  .btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
  
  .btn-primary:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  }
  
  .btn-secondary {
    background-color: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
  }
  
  .btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
  }
  
  .btn-skill {
    background-color: var(--accent-color);
    color: white;
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
  }
  
  .btn-skill:hover {
    background-color: #059669;
  }
  
  /* Header */
  header {
    position: fixed;
    width: 100%;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
  }
  
  header.scrolled {
    padding: 0.5rem 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
  }
  
  header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
  }
  
  nav {
    display: flex;
    gap: 1.5rem;
  }
  
  nav a {
    position: relative;
    padding: 0.5rem 0;
    font-weight: 500;
    color: var(--text-color);
  }
  
  nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
  }
  
  nav a:hover::after {
    width: 100%;
  }
  
  /* Hero Section */
  #hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('img/01.jpg') no-repeat center center/cover;
    color: white;
    text-align: center;
    padding-top: 80px;
  }
  
  #hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
  }
  
  .subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
  }
  
  /* Quien soy Section */
  #quien-soy {
    padding: 6rem 0;
    background-color: white;
    
  }
  
  .profile-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
  }
  
  .profile-img {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  }
  
  .profile-img img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
  }
  
  .profile-img:hover img {
    transform: scale(1.03);
  }
  
  .profile-info h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
  }
  
  .profile-info p {
    margin-bottom: 2rem;
    color: var(--text-light);
  }
  
  .details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .detail-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
  }
  
  .detail-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
  }
  
  /* Hobbies Section */
  /* Hobbies Section */
#mis-hobbies {
    padding: 6rem 0;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('img/hobbies-bg.jpg') no-repeat center center/cover;
    color: white;
    position: relative;
  }
  
  .hobbies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    position: relative;
    z-index: 2;
  }
  
  .hobby-card {
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  
  /* Overlay para mejor legibilidad */
  .hobby-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    transition: all 0.4s ease;
    z-index: 1;
  }
  
  .hobby-card:hover::before {
    background: rgba(31, 83, 160, 0.7);
  }
  
  .hobby-card > * {
    position: relative;
    z-index: 2;
  }
  
  /* Imágenes de fondo para cada hobby */
  .hobby-card:nth-child(1) {
    background-image: url('img/dota.jpg');
  }
  
  .hobby-card:nth-child(2) {
    background-image: url('img/friends.jpg');
  }
  
  .hobby-card:nth-child(3) {
    background-image: url('img/TEC.jpg');
  }
  
  .hobby-card:nth-child(4) {
    background-image: url('img/joji+.jpg');
  }
  
  .hobby-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  }
  
  .hobby-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    transition: all 0.3s ease;
  }
  
  .hobby-card:hover .hobby-icon {
    transform: rotate(15deg) scale(1.1);
    background-color: var(--accent-color);
    color: white;
  }
  
  .hobby-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  }
  
  .hobby-card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    max-width: 90%;
    margin: 0 auto 1.5rem;
  }
  
  /* Habilidades Section */
#mis-habilidades {
    padding: 6rem 0;
    background-color: white;
  }
  
  .skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
  }
  
  .skill-card {
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: white;
    background-size: cover;
    background-position: center;
  }
  
  .skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.8) 100%);
    z-index: 1;
  }
  
  .skill-card > * {
    position: relative;
    z-index: 2;
  }
  
  /* Imágenes de fondo para cada carta */
  .skill-card:nth-child(1) {
    background-image: url('img/ccna.jpg');
  }
  
  .skill-card:nth-child(2) {
    background-image: url('img/itess.jpg');
  }
  
  .skill-card:nth-child(3) {
    background-image: url('img/python.png');
  }
  
  .skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  }
  
  .skill-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .skill-header i {
    font-size: 2rem;
    color: white;
  }
  
  .skill-header h3 {
    font-size: 1.6rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  }
  
  .skill-card p {
    margin-bottom: 1.5rem;
    color: rgba(255,255,255,0.9);
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  }
  
  .skill-bar {
    height: 8px;
    background-color: rgba(255,255,255,0.2);
    border-radius: 4px;
    margin-bottom: 1.5rem;
    overflow: hidden;
  }
  
  .skill-level {
    height: 100%;
    background-color: var(--accent-color);
    border-radius: 4px;
    position: relative;
  }
  
  .skill-level::after {
    content: attr(style);
    position: absolute;
    right: 10px;
    top: -25px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
  }
  
  .btn-skill {
    background-color: var(--accent-color);
    color: white;
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
  }
  
  .btn-skill:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-2px);
  }
  
  /* Contacto Section */
  #contacto {
    padding: 6rem 0;
    background-color: #f0f7ff;
  }
  
  .contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
  }
  
  .contact-info h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
  }
  
  .contact-info p {
    margin-bottom: 2rem;
    color: var(--text-light);
  }
  
  .social-links {
    display: flex;
    gap: 1.5rem;
  }
  
  .social-links a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
  }
  
  .social-links a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
  }
  
  .contact-form {
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  }
  
  .form-group {
    margin-bottom: 1.5rem;
  }
  
  .form-group input,
  .form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-family: inherit;
    transition: all 0.3s ease;
  }
  
  .form-group input:focus,
  .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
  }
  
  .form-group textarea {
    resize: vertical;
    min-height: 120px;
  }
  
  /* Footer */
  footer {
    background-color: var(--dark-color);
    color: white;
    padding: 3rem 0 1.5rem;
    text-align: center;
  }
  
  footer p {
    margin-bottom: 1.5rem;
  }
  
  .footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
  }
  
  .footer-links a {
    color: #9ca3af;
    transition: color 0.3s ease;
  }
  
  .footer-links a:hover {
    color: white;
  }
  
  /* Efectos y animaciones */
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .fade-in {
    animation: fadeIn 1s ease forwards;
  }
  
  /* Responsive Design */
  @media (max-width: 992px) {
    .profile-container,
    .contact-container {
      grid-template-columns: 1fr;
    }
    
    .profile-img {
      max-width: 500px;
      margin: 0 auto;
    }
    
    .contact-info {
      text-align: center;
    }
    
    .social-links {
      justify-content: center;
    }
  }
  
  @media (max-width: 768px) {
    html {
      font-size: 14px;
    }
    
    header .container {
      flex-direction: column;
      gap: 1rem;
    }
    
    nav {
      gap: 1rem;
    }
    
    #hero h1 {
      font-size: 2.5rem;
    }
    
    .subtitle {
      font-size: 1.2rem;
    }
  }
  
  @media (max-width: 576px) {
    .hobbies-grid,
    .skills-grid {
      grid-template-columns: 1fr;
    }
    
    .details {
      grid-template-columns: 1fr;
    }
    
    .btn {
      width: 100%;
    }
  }