/* Reset y base */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f4f6f9;
  color: #333;
}

.container {
  width: 90%;
  max-width: 1000px;
  margin: auto;
}

header {
  background: #1e293b;
  color: white;
  padding: 20px 0;
  text-align: center;
}

header h1 {
  margin: 0;
}

header nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.intro {
  font-size: 1em;
  margin-top: 8px;
}

/* Hero subtítulos */
.hero h2 {
  font-size: 2.4em;
  font-weight: 700;
}

.hero p {
  font-size: 1.2em;
  margin-bottom: 25px;
}

/* Sección contenido landing */
.content h3 {
  font-size: 1.5em;
  margin-top: 40px;
}

.content ul {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.content ul li {
  margin-bottom: 12px;
  font-size: 1.1em;
}

/* Hero landing */
.landing .hero {
  border-radius: 0;        /* sin bordes redondeados */
  margin-top: 0;           /* pegado arriba */
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  padding: 80px 20px;
}

.landing .hero h2 {
  font-size: 2.2em;
  margin-bottom: 15px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s forwards;
  animation-delay: 0.2s;
}

.landing .hero p {
  font-size: 1.2em;
  margin-bottom: 25px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s forwards;
  animation-delay: 0.4s;
}

.landing .hero .btn-primary {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s forwards;
  animation-delay: 0.6s;
  display: inline-block;
}

.landing .content h3 {
  font-size: 1.5em;
  margin-top: 40px;
}

.landing .content ul li {
  margin-bottom: 12px;
  font-size: 1.1em;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s forwards;
}

/* Delay para cada elemento usando nth-child */
.landing .content ul li:nth-child(1) { animation-delay: 0.2s; }
.landing .content ul li:nth-child(2) { animation-delay: 0.4s; }
.landing .content ul li:nth-child(3) { animation-delay: 0.6s; }

.hero {
  text-align: center;
  padding: 80px 20px;
  background: white;
}


.btn, .btn-primary, .btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: 0.3s;
}

.btn-primary {
  background: linear-gradient(90deg, #2563eb, #1d4ed8);
  color: #ffffff;
  font-weight: bold;
  box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
  transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary:hover {
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
  transform: translateY(-4px);
}

.btn-secondary {
  background-color: #eee;
  color: #333;
  border: 1px solid #ccc;
  transition: transform 0.3s, background-color 0.3s;
}

.btn-secondary:hover {
  background-color: #ddd;
  transform: translateY(-2px);
}

form {
  background: white;
  padding: 30px;
  margin: 40px 0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.form-group {
  margin-bottom: 20px;
  position: relative;
}

.form-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

input, select {
  width: 100%;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
  transition: 0.3s;
}

input:focus, select:focus {
  outline: none;
  border-color: #2563eb;
}

.input-error {
  border-color: #d93025;
}

.error {
  color: #d93025;
  font-size: 0.85em;
  margin-top: 2px;
}

.tooltip {
  cursor: pointer;
  font-size: 0.9em;
  color: #555;
  margin-left: 5px;
}

.resultado-box, .historial-item {
  border: 1px solid #bbb;
  border-radius: 8px;
  padding: 12px;
  background-color: #f3f3f3;
  margin-top: 12px;
  transition: 0.5s;
}

.historial-item {
  margin-bottom: 10px;
  background-color: #f9f9f9;
}

.fade-in {
  animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px);} 
  to { opacity: 1; transform: translateY(0);} 
}

/* Animaciones generales */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

footer {
  text-align: center;
  padding: 20px 0;
  background: #1e293b;
  color: white;
  margin-top: 40px;
}

/* Responsive */
@media(max-width: 600px) {
  .form-row {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}
.info {
  background: white;
  padding: 30px;
  margin-top: 40px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.info ul {
  margin-top: 15px;
}

.info li {
  margin-bottom: 10px;
}

.header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header nav {
display: flex;
align-items: center;
}

header nav a:hover {
  opacity: 0.8;
}

/* Cards herramientas */

.tools {
  margin-top: 60px;
  text-align: center;
}

.cards {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.card {
  background: white;
  padding: 30px;
  border-radius: 12px;
  flex: 1;
  min-width: 260px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.06);
  transition: transform 0.25s, box-shadow 0.25s;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

.card h3 {
  margin-top: 0;
}


/* CTA */

.cta {
  margin-top: 60px;
  background: #2563eb;
  color: white;
  padding: 60px 20px;
  text-align: center;
}

.cta .btn-primary {
  background: white;
  color: #2563eb;
  margin-top: 15px;
}

.cta .btn-primary:hover {
  transform: translateY(-3px);
}

.resultado-box {

background: white;
padding: 25px;
margin-top: 30px;
border-radius: 10px;
box-shadow: 0 3px 10px rgba(0,0,0,0.08);

}

.resultado-box h3 {

margin-top: 15px;
font-size: 1.4em;

}


/* GRID DE ARTICULOS */

.articles-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
gap:20px;
margin-top:30px;
}

.article-card {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.article-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
  background: #f9fafb;
}

.article-card .btn-article {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 16px;
  background: #1a73e8;
  color: white;
  border-radius: 6px;
  font-size: 0.9em;
  text-decoration: none;
  transition: background 0.3s, transform 0.3s;
}

.article-card .btn-article:hover {
  background: #1558b0;
  transform: translateY(-2px);
}
.article-card h3{
margin-top:0;
font-size:18px;
}

.article-card a{
text-decoration:none;
color:#1a73e8;
}

.article-card p{
color:#555;
font-size:14px;
}


nav {
display: flex;
gap: 18px;
flex-wrap: wrap;
}

nav a {
text-decoration: none;
color: white;
font-weight: 500;
}