/* styles.css */

/* Import Google Fonts for headings and body */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&family=Roboto:wght@400;700&display=swap');

:root {
  --primary-color: #2ea3f2;
  --primary-hover: #248ac9;
  --text-color: #333;
  --text-light: #fff;
  --bg-light: #f2f0eb;
  --bg-dark: #3a6351;
  --container-width: 1420px;
  --header-height: 80px;
  --font-primary: 'Inter', sans-serif;
  --font-secondary: 'Roboto', sans-serif;
}

/* Reset */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-secondary);
  color: var(--text-color);
  background-color: var(--bg-light);
  line-height: 1.6;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary-hover);
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 15px;
}

/* Header */
#main-header {
  background-color: #fff;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}


/* 2) Separa el logo de los enlaces */
#main-header .logo {
  /* opcional: un poco de margen para que no quede pegado a la izquierda */
  margin-right: 20px;
}


#main-header .logo img {
  height: 50px;
}

/* 1) Haz que en el header el contenedor sea flexbox */
#main-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#top-menu {
  margin-left: auto;
}


#top-menu ul {
  list-style: none;
  display: flex;
  gap: 20px;
  justify-content: flex-end;
}

#top-menu a {
  font-family: var(--font-primary);
  font-size: 1.05rem;  /* un pelín más grande, opcional */
  font-weight: 700;    /* grosor */
  padding: 10px 8px;   /* ajusta si necesitas más “clicable” */
  color: #d35400;      /* naranja oscuro */}

#top-menu a:hover {
  color: #b84300;
}



/* Hero */
.hero {
  height: calc(100vh - var(--header-height));
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  position: relative;
  text-align: center;
  color: var(--text-light);
padding-top: 80px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
}

.hero .hero-text {
  position: relative;
  z-index: 1;
  max-width: 800px;
  /* fuerza alineación izquierda solo en el texto */
  text-align: left;
  /* opcional: un poco de padding para que no quede pegado al borde */
  padding: 0 2rem;
  /* mantén el max-width si lo tienes */
  max-width: 800px;
  margin: 0 auto;
  margin-top: 20px;
}

.hero h1 {
  font-family: var(--font-primary);
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 1rem;}

.hero h4 {
  font-size: 1.25rem;
  margin-top: 0;
}

/* Sections */
section {
  padding: 60px 0;
  background-color: var(--bg-light);
  text-align: center;
}

/* Buttons */
.btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 10px 20px;
  border-radius: 30px;
  font-family: var(--font-primary);
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: var(--primary-hover);
}

/* Solutions List */
.solutions ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.solutions li {
  background: var(--text-light);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  font-family: var(--font-secondary);
}

/* Contact Form */
.contact form {
  max-width: 600px;
  margin: 0 auto 30px;
  text-align: left;
}

.contact label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
}

.contact input,
.contact textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.contact button[type="submit"] {
  background-color: var(--primary-color);
  color: var(--text-light);
  border: none;
  padding: 10px 20px;
  border-radius: 30px;
  cursor: pointer;
  font-family: var(--font-primary);
}

.contact button[type="submit"]:hover {
  background-color: var(--primary-hover);
}

/* Contact Info */
.contact .contact-info p {
  margin: 5px 0;
}

/* Footer */
#main-footer {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: 20px 0;
  text-align: center;
  font-size: 0.9rem;
}

#main-footer a {
  color: var(--text-light);
}

#main-footer a:hover {
  color: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  .container {
    padding: 0 10px;
  }
  #top-menu ul {
    gap: 10px;
  }
}




/* ===== Sección informativa (feature) ===== */
#feature .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;      /* para móviles: bajen en columna */
  padding: 60px 0;      /* separación arriba y abajo */
}

.feature-text {
  flex: 1 1 350px;      /* crece, pero no menos de 350px */
  max-width: 600px;
  margin-right: 40px;
  text-align: left;
}

.feature-text h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.feature-text p {
  line-height: 1.6;
  margin-bottom: 25px;
}

/* Estilo básico de botón primario */
.btn-primary {
  display: inline-block;
  background-color: #2c3e50;
  color: #fff;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 4px;
  font-weight: 600;
  transition: background-color .2s;
}
.btn-primary:hover {
  background-color: #1a252f;
}

.feature-image {
  flex: 1 1 300px;
  max-width: 500px;
  text-align: right;
}
.feature-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Adaptaciones para pantallas pequeñas */
@media (max-width: 768px) {
  #feature .container {
    flex-direction: column;
    
  }
  .feature-text {
    margin-right: 0;
    margin-bottom: 30px;
    text-align: left;   
  }
  .feature-image {
    text-align: center;
  }
}


/* ===== Bloque destacado de texto ===== */
#highlight {
  background-color: #f5f2eb; /* color de fondo suave */
  padding: 80px 0;           /* espacio arriba y abajo */
}

#highlight .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

#highlight h2 {
  font-size: 2.5rem;    /* tamaño grande */
  line-height: 1.2;
  color: #222;          /* color de texto oscuro */
  margin-bottom: 20px;
  text-align: left;
}

#highlight p {
  font-size: 1.125rem;  /* tamaño mediano */
  color: #444;
  text-align: left;
}

/* Ajustes responsive */
@media (max-width: 768px) {
  #highlight {
    padding: 60px 0;
  }
  #highlight h2 {
    font-size: 2rem;
  }
  #highlight p {
    font-size: 1rem;
  }
}


/* ===== Sección “Condiciones críticas” ===== */
#critical-conditions .container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 80px 0;
}

.feature-large-image {
  flex: 1 1 400px;
  max-width: 600px;
  margin-right: 40px;
}
.feature-large-image img {
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.feature-large-content {
  flex: 1 1 350px;
  max-width: 600px;
}
.feature-large-content h3 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #222;
}
.btn-outline {
  display: inline-block;
  text-decoration: none;
  border: 2px solid #2c3e50;
  color: #2c3e50;
  padding: 10px 22px;
  border-radius: 4px;
  font-weight: 600;
  transition: background-color .2s, color .2s;
  margin-bottom: 30px;
}
.btn-outline:hover {
  background-color: #2c3e50;
  color: #fff;
}

.features-grid {
  margin-top: 40px;
}
.feature-item {
  margin-bottom: 30px;
}
.feature-item h4 {
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: #222;
}
.feature-item p {
  line-height: 1.6;
  color: #555;
}

/* Responsive */
@media (max-width: 768px) {
  #critical-conditions .container {
    flex-direction: column;
  }
  .feature-large-image,
  .feature-large-content {
    margin-right: 0;
  }
  .btn-outline {
    margin-bottom: 20px;
  }
}



/* ===== Sección “Qué ofrece Suntinel” ===== */
#offer {
  background-color: #f5f2eb;
  padding: 80px 0;
}

#offer .container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}

/* Card principal grande */
.offer-main-card {
  background-color: #fff;
  padding: 40px 30px;
  border-radius: 16px;
  flex: 1 1 300px;
  max-width: 450px;
  margin-right: 40px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.offer-main-card h3 {
  font-size: 1.75rem;
  margin-bottom: 16px;
  color: #222;
}
.offer-main-card p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 24px;
  color: #444;
}
/* Botón outline */
.offer-main-card .btn-outline {
  display: inline-block;
  text-decoration: none;
  border: 2px solid #2c3e50;
  color: #2c3e50;
  padding: 10px 24px;
  border-radius: 4px;
  font-weight: 600;
  transition: background-color .2s, color .2s;
}
.offer-main-card .btn-outline:hover {
  background-color: #2c3e50;
  color: #fff;
}

/* Grid de cards pequeñas */
.offer-cards-grid {
  flex: 1 1 400px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  grid-gap: 20px;
}
.offer-card {
  background-color: #fff;
  padding: 24px 20px;
  border-radius: 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.offer-card h4 {
  font-size: 1.125rem;
  margin-bottom: 8px;
  color: #222;
}
.offer-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #555;
}

/* Responsive: en móvil apilar todo */
@media (max-width: 768px) {
  #offer .container {
    flex-direction: column;
  }
  .offer-main-card {
    margin-right: 0;
    margin-bottom: 30px;
  }
}


/* ===== Sección “Sobre Suntinel” ===== */
.info-footer {
  background-color: #f5f2eb;
  padding: 80px 0;
}
.info-footer .container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

/* Columna texto */
.info-footer-about {
  flex: 1 1 300px;
  max-width: 400px;
  margin-right: 40px;
}
.info-footer-about h3 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #222;
}
.info-footer-about strong {
  display: block;
  margin-bottom: 8px;
  color: #222;
}
.info-footer-about p {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
}

/* Columna enlaces */
.info-footer-nav {
  flex: 1 1 200px;
  max-width: 200px;
}
.info-footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.info-footer-nav li {
  margin-bottom: 12px;
}
.info-footer-nav a {
  text-decoration: underline;
  color: #444;
  font-size: 0.95rem;
  transition: color .2s;
}
.info-footer-nav a:hover {
  color: #222;
}

/* Columna imagen */
.info-footer-image {
  flex: 1 1 300px;
  max-width: 350px;
  text-align: right;
}
.info-footer-image img {
  width: 100%;
  height: auto;
  border-radius: 16px;
}

/* Responsive */
@media (max-width: 768px) {
  .info-footer .container {
    flex-direction: column;
    text-align: left;
  }
  .info-footer-about,
  .info-footer-nav,
  .info-footer-image {
    margin-right: 0;
    margin-bottom: 30px;
    max-width: 100%;
  }
  .info-footer-image {
    text-align: center;
  }
}

/* ===== Barra inferior ===== */
#bottom-bar {
  background-color: #2c3e50;
  color: #fff;
  text-align: center;
  padding: 15px 0;
  font-size: 0.9rem;
}
#bottom-bar p {
  margin: 0;
  line-height: 1.4;
}


.dashboard-card {
  width: 100%;
}

@media (min-width: 992px) {
  .row > .col-lg-3 {
    flex: 0 0 auto;
    width: 25%;
  }
}

