/* ---- Reset Básico y Estilos Globales ---- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary-color: #c0392b;
  --primary-dark: #a93226;
  --accent-color: #e74c3c;
  --dark-color: #333;
  --light-color: #fff;
  --bg-gradient-start: #fdeeee;
  --bg-gradient-end: #f4f4f4;
  --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  font-family: var(--font-main);
  line-height: 1.6;
  background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end));
  color: var(--dark-color);
  scroll-behavior: smooth;
}

.container {
  max-width: 1100px;
  margin: auto;
  overflow: hidden;
  padding: 0 20px;
}

/* ---- Header y Navegación ---- */
.main-header {
  background: var(--dark-color);
  color: var(--light-color);
  padding: 1rem 0;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.main-header h1 {
  font-size: 2rem;
}

.main-header nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center; /* Para alinear el nuevo botón */
}

.main-header nav a {
  color: var(--light-color);
  text-decoration: none;
  margin: 5px 15px;
  padding: 5px 10px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.main-header nav a:hover {
  color: var(--accent-color);
  background: rgba(231,76,60,0.1);
}

/* Estilo para el botón de Iniciar Sesión */
.main-header nav a.btn-login {
  background: transparent;
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
  font-weight: bold;
  padding: 8px 18px;
}

.main-header nav a.btn-login:hover {
  background: var(--accent-color);
  color: var(--light-color);
}


/* ---- Hero Section ---- */
.hero {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: var(--light-color);
  padding: 4rem 1rem;
  text-align: center;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
}

.hero h2 {
  font-size: 2.7rem;
  margin-bottom: 1rem;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.2);
}

.hero p {
  font-size: 1.2rem;
  max-width: 650px;
  margin: 0 auto 2rem auto;
}

/* Hero buttons centrados */
.hero-buttons {
  margin-top: 2rem;
  text-align: center;
}


/* ---- Botones ---- */
.btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.btn-primary {
  background: linear-gradient(to right, var(--accent-color), var(--primary-color));
  color: var(--light-color);
  border: none;
}

.btn-secondary {
  background: var(--light-color);
  color: var(--dark-color);
  border: 1px solid var(--light-color);
  margin-left: 10px;
}

/* ---- Secciones ---- */
#about {
  padding: 3rem 1rem;
  text-align: center;
}

#about h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

/* ---- Formularios ---- */
.form-container {
  background: var(--light-color);
  padding: 3rem;
  margin: 3rem auto;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  max-width: 550px;
  transition: transform 0.3s ease;
}

.form-container:hover {
  transform: translateY(-3px);
}

.form-container h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--primary-color);
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: bold;
  color: var(--dark-color);
}

.form-group input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 6px rgba(192,57,43,0.2);
}

.submit-btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 6px;
  background: linear-gradient(to right, var(--primary-color), var(--primary-dark));
  color: var(--light-color);
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

/* ---- Footer ---- */
.main-footer {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--dark-color);
  color: var(--light-color);
  margin-top: 3rem;
  border-top: 4px solid var(--primary-color);
  box-shadow: 0 -4px 10px rgba(0,0,0,0.05);
}

/* ---- AI Section ---- */
.ai-section {
  background: #fff; /* Fondo blanco para esta sección */
  padding: 4rem 0;
  text-align: center;
}

.ai-section h3 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.ai-section p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.7;
}

.ai-section img {
  margin-top: 2rem;
  max-width: 500px;
  width: 100%;
  border-radius: 50%;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.ai-section img:hover {
  transform: scale(1.05);
}

/* ---- About Section ---- */
.about-section {
  background: linear-gradient(135deg, #fff, #ffecec);
  padding: 4rem 1rem;
  border-radius: 12px;
}

.about-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.about-text {
  flex: 1 1 500px;
}

.about-text h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.7;
}

.about-image {
  flex: 1 1 400px;
  text-align: center;
}

.about-image img {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.12);
  transition: transform 0.3s ease;
}

.about-image img:hover {
  transform: scale(1.05);
}

/* ================================================= */
/* ==== CÓDIGO MOVIDO DESDE EL HTML (INICIO) ==== */
/* ================================================= */

/* Sección destacada con imagen */
.feature-section {
  background: #fff;
  padding: 4rem 0;
}

.feature-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.feature-text {
  flex: 1 1 500px;
}

.feature-text h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.feature-text p {
  font-size: 1.1rem;
  line-height: 1.7;
}

.feature-image {
  flex: 1 1 400px;
}

.feature-image img {
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Tarjetas de características */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem; 
}

.card {
  background: #fff;
  padding: 2rem;
  text-align: center;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card i {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.card h4 {
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

/* ================================================= */
/* ==== CÓDIGO MOVIDO DESDE EL HTML (FIN) ==== */
/* ================================================= */


/* =================================== */
/* ==== ESTILOS SECCIÓN CONTACTO ==== */
/* =================================== */
.contact-section {
  background: var(--light-color); /* Fondo blanco para contrastar */
  padding: 4rem 1rem;
  text-align: center;
  border-top: 1px solid #eee; /* Una línea sutil de separación */
}

.contact-section h3 {
  font-size: 2.2rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.contact-section p {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 2.5rem auto; /* Centrado y con espacio */
  line-height: 1.7;
}

.contact-info-wrapper {
  display: flex;
  flex-wrap: wrap; /* Para que en móvil se ponga uno debajo del otro */
  justify-content: center;
  gap: 2rem; /* Espacio entre las tarjetas */
}

.contact-info-item {
  background: linear-gradient(135deg, var(--bg-gradient-start), #fff);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  flex-basis: 300px; /* Ancho base de cada tarjeta */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-info-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.contact-info-item i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.contact-info-item h4 {
  font-size: 1.2rem;
  color: var(--dark-color);
  margin-bottom: 0.5rem;
}

.contact-info-item p {
  font-size: 1.1rem;
  color: #555;
  font-weight: 500;
  margin-bottom: 0; /* Reseteamos el margen de p dentro de la tarjeta */
}


/* -------------------
   RESPONSIVE DESIGN
------------------- */
@media (max-width: 992px) {
  .hero h2 { font-size: 2rem; }
  .hero p { font-size: 1rem; }
  .about-container { flex-direction: column; text-align: center; }
  .about-text h3 { font-size: 1.8rem; }
  .about-text p { font-size: 1rem; }
  .ai-section h3 { font-size: 2rem; }
  .ai-section p { font-size: 1rem; }
  .ai-section img { max-width: 350px; }
  
  /* Media queries que faltaban (del style) */
  .feature-container {
    flex-direction: column;
    text-align: center;
  }
  .feature-text, .feature-image {
    flex: 1 1 100%;
  }
  .feature-text h3 {
    font-size: 1.8rem;
  }
  .feature-text p {
    font-size: 1rem;
  }
}

@media (max-width: 600px) {
  .main-header .container { flex-direction: column; text-align: center; }
  .main-header h1 { margin-bottom: 10px; }
  .main-header nav { flex-direction: column; width: 100%;}
  /* Estilos para el botón login en móvil */
  .main-header nav a.btn-login {
    margin-top: 10px;
    background: var(--accent-color);
    color: var(--light-color);
  }

  .hero { padding: 2.5rem 1rem; }
  .hero h2 { font-size: 1.6rem; }
  .hero p { font-size: 0.95rem; line-height: 1.5; }
  .form-container { padding: 2rem; }
  .about-text h3 { font-size: 1.5rem; }
  .about-text p { font-size: 0.95rem; }
  .ai-section h3 { font-size: 1.6rem; }
  .ai-section p { font-size: 0.95rem; }
  .ai-section img { max-width: 250px; }

  /* Media queries que faltaban (del style) */
  .feature-section {
    padding: 2rem 1rem;
  }
  .feature-text h3 {
    font-size: 1.5rem;
  }
  .feature-text p {
    font-size: 0.95rem;
    line-height: 1.5;
  }
  .card {
    padding: 1.5rem;
  }
  .card i {
    font-size: 2.5rem;
  }
}