

:root {
  --bg: #ffffff;           /* Fondo blanco */
  --bg-light: #f4f8f7;     /* Fondo claro para tarjetas */
  --primary: #53b3b9;      /* Verde agua principal */
  --accent: #7ee787;       /* Verde menta para acentos */
  --text: #34495e;         /* Texto gris oscuro */
  --subtext: #6c757d;      /* Texto secundario gris */
  --card: #e9f5f4;         /* Fondo de tarjetas en tono suave */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


body {
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background: var(--primary);
  color: #fff;
}

/* Contenedor nombre + animación */
.logo {
  display: flex;
  align-items: center;
  gap: 8px; /* espacio pequeño entre texto e imagen */
}

/* Animación pequeña */
#animacion {
  width: 40px;
  height: 40px;
}

#imagen {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Navegación */
nav a {
  margin-left: 15px;
  color: white;
  text-decoration: none;
}

nav a:hover {
  color: var(--accent);
}

.hero {
  padding: 6rem 5%;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero h1 span {
  color: var(--accent);
  font-family: "Source Code Pro", monospace;
}

.hero p {
  max-width: 700px;
  margin: auto;
  color: var(--subtext);
  font-size: 1.1rem;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  margin-top: 2rem;
  background: var(--primary);
  color: #fff;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s;
}

.btn:hover {
  opacity: 0.8;
}

section {
  padding: 4rem 5%;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 2rem;
  font-weight: 700;
  border-left: 4px solid var(--primary);
  padding-left: 1rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 200px;
  background: transparent;
  padding: 1.5rem;
  /* border-radius: 10px; */
  /* border: 1px solid #cfd8dc; */
  transition: 0.3s;
}

.card:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
}

footer {
  text-align: center;
  padding: 2rem 5%;
  border-top: 1px solid #30363d;
  color: var(--subtext);
  margin-top: 3rem;
}
/* Estilos para las páginas de proyectos */
.project-detail {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.project-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid #e0e0e0;
}

.project-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #7ee787;
}

.project-meta {
  font-size: 1.1rem;
  color: #53b3b9;
  font-style: italic;
}

.project-content {
  line-height: 1.8;
}

.project-overview {
  margin-bottom: 3rem;
}

.project-overview h2 {
  color: #7ee787;
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

.project-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.detail-section {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid var(--primary);
}

.detail-section h3 {
  color: var(--accent);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.detail-section ul {
  list-style-type: none;
  padding-left: 0;
}

.detail-section li {
  color:#34495e;
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
}

.detail-section li:before {
  content: "▸";
  color: var(--primary);
  position: absolute;
  left: 0;
}

.project-links {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid #e0e0e0;
}

.project-links .btn {
  margin: 0 0.5rem;
}

/* Estilos para las tarjetas de proyectos en index.html */
.card-links {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-secondary {
  background: transparent;
  color: #3498db;
  border: 2px solid #3498db;
  padding: 0.5rem 1rem;
  text-decoration: none;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: #3498db;
  color: white;
}

/* Responsive */
@media (max-width: 768px) {
  .project-detail {
    padding: 1rem;
  }
  
  .project-header h1 {
    font-size: 2rem;
  }
  
  .project-details {
    grid-template-columns: 1fr;
  }
  
  .card-links {
    flex-direction: column;
  }
  
  .card-links .btn,
  .card-links .btn-secondary {
    text-align: center;
  }
}
/* Formulario de automatización */
.form-card {
  max-width: 600px;
  margin: 0 auto;
}

.automation-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 0.9rem;
  color: var(--subtext);
  margin-bottom: 0.3rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  background: var(--bg);
  border: 1px solid #30363d;
  border-radius: 6px;
  padding: 0.6rem 0.8rem;
  color: var(--text);
  font-family: inherit;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--subtext);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
}

select {
  cursor: pointer;
}

/* Blog section */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.blog-post {
  border: 1px solid #ddd;
  padding: 15px;
  border-radius: 8px;
  background-color: #fff;
}

.blog-post h3 {
  margin-bottom: 10px;
}

.blog-post a {
  display: inline-block;
  margin-top: 10px;
  color: #007bff;
  text-decoration: none;
}