:root {
  --color-bg: #f5f7fa;
  --color-primary: #4f46e5;
  --color-secondary: #6a11cb;
  --color-text: #333;
  --color-card: #ffffff;
  --font-main: 'Segoe UI', sans-serif;
}

/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

/* Contenedor general */
.container {
  max-width: 960px;
  margin: auto;
  padding: 2rem;
}

/* Hero */
.hero {
  background: 
    linear-gradient(135deg, rgba(106,17,203,0.7), rgba(79,70,229,0.7)), 
    url('fondo.jpg'); /* coloca aquí la ruta de tu imagen */
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
  padding: 4rem 2rem;
  animation: fadeIn 2s ease;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.btn {
  background: white;
  color: var(--color-primary);
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.3s ease, background 0.3s ease;
}

.btn:hover {
  transform: scale(1.05);
  background: #eaeaea;
}

/* Secciones */
.section {
  padding: 3rem 2rem;
}

.section h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  color: var(--color-primary);
}

/* Sobre Nosotros */
.about-card {
  background: var(--color-card);
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  padding: 2rem;
  text-align: center;
  animation: fadeInUp 1s ease;
}

.about-card p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-top: 1rem;
}

/* Portafolio */
.grid {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.card {
  background: var(--color-card);
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  padding: 1rem;
  max-width: 280px;
  text-align: center;
  animation: fadeInUp 1s ease;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 1rem;
}

/* Cotización */
.form-card {
  background: var(--color-card);
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  padding: 2rem;
  max-width: 500px;
  margin: auto;
  text-align: center;
  animation: fadeInUp 1s ease;
}

.form-group {
  display: flex;
  align-items: center;
  margin: 1rem 0;
  border-bottom: 1px solid #eee;
  padding: 0.5rem;
}

.form-group i {
  margin-right: 10px;
  color: var(--color-primary);
  animation: pulse 2s infinite;
}

form input, form select, form textarea {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  padding: 0.5rem;
  background: transparent;
}

form textarea {
  resize: none;
}

form button {
  width: 100%;
  margin-top: 1rem;
}

/* Footer */
footer {
  background: rgba(79,70,229,0.7);
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  color: #ffffff;
}

/* Animaciones */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0% { transform: scale(1); color: var(--color-primary); }
  50% { transform: scale(1.2); color: var(--color-secondary); }
  100% { transform: scale(1); color: var(--color-primary); }
}

/* Modal */
.modal {
  display: none; 
  position: fixed; 
  z-index: 1000; 
  padding-top: 60px; 
  left: 0; top: 0;
  width: 100%; height: 100%;
  overflow: auto; 
  background-color: rgba(0,0,0,0.8);
}

.modal .close {
  position: absolute;
  top: 20px; right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

.carousel-container {
  position: relative;
  margin: auto;
  max-width: 80%;
}

.carousel-slide img {
  width: 100%;
  border-radius: 10px;
  animation: fadeIn 0.5s ease;
}

.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  padding: 16px;
  margin-top: -22px;
  color: rgb(255, 255, 255);
  font-weight: bold;
  font-size: 30px;
  transition: 0.3s;
  user-select: none;
}

.prev { left: 0; }
.next { right: 0; }

.prev:hover, .next:hover {
  color: var(--color-primary);
}