body {
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    background: #ffffff;
    color: #111;
}

/* NAVBAR */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
    border-bottom: 1px solid #eee;
}

.logo {
    font-size: 1.25rem;
    font-weight: 600;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #555;
    font-size: 0.95rem;
}

.btn-primary.small {
    padding: 0.6rem 1.1rem;
}

/* HERO SECTION */
.hero {
    height: fit-content;
    
    margin: 4rem auto;
    padding: 0 5%;
    display: flex;
    flex-direction: column;
    justify-content: center;  /* Centra verticalmente en pantallas grandes */
}

/* TÍTULO PRINCIPAL */
.hero-title {
    font-size: clamp(2.5rem, 8vw, 7rem); /* Responsive */
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    overflow-wrap: break-word;
}

/* SUBTÍTULO */
.hero-subtitle {
    max-width: 100%;          /* Evita que sea más ancho que el contenedor */
    width: 100%;              
    color: #666;
    font-size: clamp(1rem, 2vw, 1.8rem); /* Responsive */
    margin-bottom: 3rem;
    max-width: 700px;  /* Controla que no se haga demasiado ancho */
    overflow-wrap: break-word;
    word-break: break-word;
}

/* BUTTONS */
.btn-primary {
    background: #2f55d4;
    color: #fff;
    padding: 0.8rem 1.8rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: clamp(0.9rem, 2.2vw, 1rem);  /* Responsive */
    display: inline-block;
    transition: 0.3s;
    margin-right: 1rem;
}

.btn-primary:hover {
    background: #1f3e9c;
}

.btn-secondary {
    background: white;
    border: 1px solid #ccc;
    padding: 0.8rem 1.8rem;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    font-size: clamp(0.9rem, 2.2vw, 1rem);  /* Responsive */
    margin-left: 1rem;
    transition: 0.3s;
}


.btn-secondary:hover {
    background: #f5f5f5;
}

/* ICONS */
.hero-icons {
    margin-top: 3rem;
    display: flex;
    gap: 1.5rem;
}

.hero-icons img {
    width: 28px;
    opacity: 0.75;
    transition: 0.3s;
}

.hero-icons img:hover {
    opacity: 1;
}



/* PROJECTS SECTION */
.projects-section {
    max-width: 1100px;
    margin: 5rem auto;
    padding: 0 3rem;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.section-description {
    color: #666;
    margin-bottom: 3rem;
    font-size: 1.15rem;
}

/* Cards grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Responsive grid */
@media (max-width: 900px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .nav-links{
        display: none;
    }
}

/* Card */
.project-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.project-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

/* Content */
.project-content {
    padding: 1.8rem;
}

.project-content h3 {
    font-size: 1.45rem;
    margin-bottom: .6rem;
}

.project-content p {
    color: #666;
    margin-bottom: 1.4rem;
    line-height: 1.5;
}

/* TAGS */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 1.4rem;
}

.tags span {
    background: #eee;
    padding: .35rem .7rem;
    border-radius: 6px;
    font-size: .85rem;
    color: #444;
}

/* BUTTONS */
.btn-secondary-outline {
    display: inline-block;
    border: 1px solid #ccc;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: .2s ease;
}

.btn-secondary-outline:hover {
    background: #f5f5f5;
}

/* SKILLS SECTION */
.skills-section {
    max-width: 1100px;
    margin: 6rem auto;
    padding: 0 3rem;
}

.skills-section .section-title {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.skills-section .section-description {
    color: #666;
    font-size: 1.15rem;
    margin-bottom: 3rem;
}

/* GRID */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Responsive */
@media (max-width: 900px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
}

/* CARD */
.skill-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: 0.2s ease;
}

.skill-card:hover {
    transform: translateY(-4px);
}

/* ICON */
.skill-icon {
    font-size: 2rem;
    background: #eef0ff;
    color: #4663e0;
    display: inline-flex;
    padding: 0.9rem;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.skill-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.skill-card p {
    color: #666;
    line-height: 1.5;
}


/* GENERAL LAYOUT */
.contact-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: auto;
  }
  
  .contact-header {
    text-align: center;
    margin-bottom: 50px;
  }
  
  .contact-header h2 {
    font-size: 42px;
    font-weight: 800;
  }
  
  .contact-header p {
    color: #555;
    max-width: 650px;
    margin: 10px auto 0;
    font-size: 18px;
  }
  
  /* GRID */
  .contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
  }
  
  .contact-card, .freelance-card {
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  }
  
  /* FORM */
  .form-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
  }
  
  .form-card .subtitle {
    color: #777;
    margin-bottom: 20px;
  }
  
  form .form-row {
    display: flex;
    gap: 20px;
  }
  
  .form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    flex: 1;
  }
  
  .form-group label {
    font-weight: 600;
    margin-bottom: 6px;
  }
  
  input, textarea {
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #dcdcdc;
    font-size: 15px;
  }
  
  textarea {
    height: 120px;
    resize: none;
  }
  
  .send-btn {
    background: #1A4DD8;
    color: white;
    padding: 12px 22px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
  }
  /* INFO CARD */
.info-card {
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
  
  max-width: 450px;
}

.info-card .info-item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
  flex-wrap: wrap; /* Evita desbordes */
}

.img-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 2rem 0;
}

.img-icon {
  background-color: #1f3e9c;
  border-radius: 50%;
  width: clamp(85px, 10vw, 125px);   /* Responsive */
  height: clamp(85px, 10vw, 125px);  /* Responsive */
}

.img-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;   /* Recorta sin deformar */
    border-radius: 50%;  /* Mantiene círculo */
    display: block;
}

.icon-box {
  width: clamp(35px, 7vw, 40px);
  height: clamp(35px, 7vw, 40px);
  background: #E8EDFF;
  color: #1A4DD8;
  font-size: clamp(16px, 3vw, 20px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.info-card h4 {
  margin: 0;
  font-size: clamp(15px, 3.2vw, 17px);
  font-weight: 600;
}

.info-card p {
  margin: 2px 0 0;
  color: #555;
  font-size: clamp(13px, 2.8vw, 15px);
}

/* FREELANCE CARD */
.freelance-card {
  background: #2254D8;
  color: white;
  padding: 2rem;
  border-radius: 10px;
 
  max-width: 450px;
}

.freelance-card h3 {
  margin-bottom: 8px;
  font-size: clamp(18px, 4vw, 22px);
}

.freelance-card p {
  font-size: clamp(13px, 3vw, 15px);
  line-height: 1.5;
}

/* GRID → versión responsive */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr; /* Una columna en móvil/tablet */
    max-width: 450px;
    margin: 0 auto;
  }

  .info-card,
  .freelance-card {
   
  }
}

/* FOOTER */
.footer {
  width: 100%;
  padding: 3rem 1rem;
  text-align: center;
  color: #777;
  font-size: 0.95rem;
}

.footer-line {
  width: 100%;
  height: 1px;
  background: #e5e5e5;
  margin: 0 auto 1.5rem auto;
}
  