
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #191934, #5e5e7a);
    color: #e2e2e2;
    text-align: center;
}

header {
    padding: 10px 0px;
    background: linear-gradient(135deg, #191934, #3a3a5a);
}

h1 {
    font-family: 'Montserrat', sans-serif;
    color: #c4c6ff;
    font-size: 3em;
    margin-bottom: 0px;
}

p {
    color: #ffe6ff;
    font-size: 1.2em;
}

.whatsapp-btn img {
    width: 60px;
    height: 60px;
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1000;
}

section {
    padding: 60px 20px;
}

h2 {
    font-family: 'Montserrat', sans-serif;
    color: #c4c6ff;
    font-size: 2.2em;
    margin-bottom: 40px;
}

.servicios-grid, .portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: auto;
}

.servicio-card, .item {
    color: #c4c6ff;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.servicio-card:hover, .item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

footer {
    background: #191934;
    padding: 50px 20px;
    color: #e2e2e2;
}

footer a {
    color: #25D366;
    text-decoration: none;
    font-weight: bold;
}

footer a img {
    width: 20px;
    vertical-align: middle;
    margin-right: 8px;
}

#servicios {
    padding: 80px 20px;
    background: rgba(255, 255, 255, 0.02);
}

.servicios-row {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.servicio-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    width: 300px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.servicio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.1);
}

.servicio-card img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
    object-fit: cover;
    height: 180px;
}

.servicio-card h3 {
    font-family: 'Montserrat', sans-serif;
    color: #c4c6ff;
    margin-bottom: 10px;
}

.servicio-card p {
    color: #ffe6ff;
    font-size: 0.95em;
}
.servicio-card a {
    text-decoration: none;
}

.servicio-card h3 {
    font-family: 'Montserrat', sans-serif;
    color: #c4c6ff;
    margin-bottom: 10px;
    transition: color 0.3s ease;
    text-decoration: none;
}

.servicio-card h3:hover {
    color: #ffe6ff; /* cambia sutilmente el color al pasar el mouse */
}

#portfolio {
  text-align: center;
  padding: 80px 20px;
  background: #252545; /* tu estilo oscuro */
}

#portfolio h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  color: #c4c6ff;
  margin-bottom: 40px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
  gap: 50px;
  justify-items: center;
}

.item {
  width: 100%;
  max-width: 380px;
  
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.item img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* evita deformar imagen */
  border-radius: 15px;
  transition: transform 0.4s ease;
}

.item:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.item:hover img {
  transform: scale(1.1);
}

.back-top-btn {
    margin: 40px 0;
}

.back-top-btn a {
    display: inline-block;
    padding: 12px 25px;
    background: linear-gradient(135deg, #c4c6ff, #ffe6ff);
    color: #191934;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.back-top-btn a:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

/* --- Estilo para el modal de imágenes --- */
.image-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
}

.image-modal img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
  animation: zoomIn 0.3s ease;
}

.image-modal .close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.image-modal .close-btn:hover {
  color: #ccc;
}

@keyframes zoomIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

#portfolio {
  text-align: center;
  color: #cfcaff;
}

.portfolio-grid {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 4rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.portfolio-item {
  background: rgba(255, 255, 255, 0.05); /* “cuadrado invisible” */
  border-radius: 20px;
  padding: 20px;
  transition: transform 0.3s ease;
}

.portfolio-item:hover {
  transform: translateY(-5px);
}

.portfolio-item img {
  width: 350px;
  border-radius: 12px;
  display: block;
  margin-bottom: 15px;
}

.btn-prototipo {
  display: inline-block;
  background: linear-gradient(90deg, #0daad1, #e70590);
  color: #ffffff;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-prototipo:hover {
  background: linear-gradient(90deg, #c2a8ff, #e8d5ff);
  transform: scale(1.05);
}
