/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  background-color: #f7f9fc;
  color: #333;
  line-height: 1.6;
}

/* Fuentes destacadas */
h1, h2, h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
}

/* Header */
header {
  background: linear-gradient(135deg, #003366, #0055b3);
  color: white;
  text-align: center;
  padding: 60px 20px;
  margin-bottom: 40px;
}

header h1 {
  font-size: 2.8rem;
  margin-bottom: 10px;
}

header p {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* Grid de Servicios */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.service-item {
  background: white;
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e0e0e0;
}

.service-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  border-color: #0055b3;
}

.service-item i {
  font-size: 2.5rem;
  color: #0055b3;
  margin-bottom: 15px;
}

.service-item h3 {
  font-size: 1.3rem;
  color: #003366;
  margin-bottom: 10px;
}

.service-item p {
  font-size: 0.95rem;
  color: #555;
}

/* Sobre Mí */
.about {
  padding: 60px 20px;
  background-color: white;
  margin-top: 40px;
}

.about .container {
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.8;
}

.about h2 {
  text-align: center;
  font-size: 2rem;
  color: #003366;
  margin-bottom: 30px;
}

.about p {
  margin-bottom: 20px;
  font-size: 1.05rem;
}

/* Contacto */
.contact {
  padding: 60px 20px;
  background-color: #f0f4f8;
}

.contact .container {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.contact h2 {
  text-align: center;
  font-size: 2rem;
  color: #003366;
  margin-bottom: 25px;
}

.contact input,
.contact textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
}

.contact textarea {
  resize: vertical;
}

.contact button {
  background: #0055b3;
  color: white;
  padding: 14px 25px;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  cursor: pointer;
  width: 100%;
  font-family: 'Montserrat', sans-serif;
}

.contact button:hover {
  background: #003366;
}

/* Botón de WhatsApp */
.whatsapp-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
  z-index: 1000;
  text-decoration: none;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
  header h1 {
    font-size: 2.2rem;
  }
  header p {
    font-size: 1rem;
  }
  .services-grid {
    grid-template-columns: 1fr;
    padding: 15px;
  }
  .service-item {
    padding: 20px;
  }
}
/* Estilo para la foto de perfil */
/* Contenedor de Sobre Mí - Alineación vertical y horizontal perfecta */
.about-container {
  display: flex;
  align-items: center;        /* Centra verticalmente */
  justify-content: center;    /* Centra horizontalmente */
  gap: 40px;
  max-width: 1000px;
  margin: 60px auto;
  padding: 20px;
  flex-wrap: wrap;
}

.profile-pic {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 4px solid #0055b3;
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
  object-fit: contain;
  background-color: white;
  padding: 5px;
  display: block;
}

.about-text {
  flex: 1;
  min-width: 300px;
  line-height: 1.8;
  font-size: 1.05rem;
  text-align: left;
}

.about-text h2 {
  color: #003366;
  margin-bottom: 20px;
  text-align: left;
}

/* Responsive: En móviles, imagen arriba y texto abajo, todo centrado */
@media (max-width: 768px) {
  .about-container {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  .profile-pic {
    margin: 0 auto;
  }
  .about-text {
    text-align: center;
  }
}

.profile-pic {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 4px solid #0055b3;
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
  object-fit: contain; /* ← Cambio clave */
  background-color: white;
  padding: 5px;
  display: block;
  margin: 0 auto;
}

.about-text {
  flex: 1;
  min-width: 300px;
  line-height: 1.8;
  font-size: 1.05rem;
}

.about-text h2 {
  color: #003366;
  margin-bottom: 20px;
}

/* Responsive: Alinear verticalmente en móviles */
@media (max-width: 768px) {
  .about-container {
    flex-direction: column;
    text-align: center;
  }
  .profile-pic {
    margin: 0 auto;
  }
}
.profile-pic:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}
/* === Navbar del Blog === */
.navbar-blog {
  background: #003366;
  color: white;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.nav-blog-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  height: 50px;
}

.nav-blog-logo {
  color: white;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  padding: 5px 10px;
  background: #0055b3;
  border-radius: 6px;
}

.nav-blog-menu {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.nav-blog-link {
  color: #e0e0e0;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-blog-link:hover {
  color: #6eceda;
  text-shadow: 0 0 2px rgba(0,0,0,0.1);
}

/* Ajuste del header para que no quede debajo del navbar */
header {
  margin-top: 60px; /* Espacio para el navbar fijo */
  padding-top: 40px;
  padding-bottom: 40px;
}
/* Corrección del menú en móvil*/
/* === Navbar Responsive con Menú Hamburguesa === */
.navbar {
  background: #003366;
  color: white;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  height: 50px;
}

.nav-logo {
  color: white;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  padding: 5px 10px;
  background: #0055b3;
  border-radius: 6px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: white;
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

.nav-menu {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: #e0e0e0;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #6eceda;
}

/* --- Responsive: Menú hamburguesa en móviles --- */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 50px;
    flex-direction: column;
    background: #003366;
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    padding: 20px 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu li {
    margin: 15px 0;
  }
}


