/*
Theme Name: SEGMAC
Theme URI: https://www.segmac.com.ar
Author: SEGMAC S.A.
Description: Tema oficial de SEGMAC S.A. - Seguridad, Medio Ambiente y Calidad
Version: 1.0
License: Privado
Text Domain: segmac
*/

/* ========================
   RESET & BASE
======================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Open Sans', sans-serif;
  font-size: 15px;
  color: #444;
  background: #fff;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

/* ========================
   HEADER
======================== */
#header {
  background: #fff;
  border-bottom: 3px solid #2a7aba;
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

#header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

#header .logo img {
  height: 65px;
  width: auto;
}

/* ========================
   NAVEGACIÓN
======================== */
nav ul {
  list-style: none;
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

nav ul li a {
  display: block;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  color: #333;
  border-radius: 3px;
  transition: background 0.2s, color 0.2s;
  letter-spacing: 0.5px;
}

nav ul li a:hover,
nav ul li.current-menu-item a {
  background: #2a7aba;
  color: #fff;
}

/* Hamburger */
.menu-toggle {
  display: none;
  background: #2a7aba;
  color: #fff;
  border: none;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 20px;
  border-radius: 4px;
}

/* ========================
   HERO / BANNER
======================== */
.hero {
  background: linear-gradient(135deg, #2a7aba 0%, #1a5a8a 100%);
  color: #fff;
  padding: 70px 20px;
  text-align: center;
}

.hero h1 {
  font-size: 2.4em;
  font-weight: 700;
  margin-bottom: 15px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.hero p {
  font-size: 1.15em;
  max-width: 700px;
  margin: 0 auto;
  opacity: 0.9;
}

/* ========================
   CONTENIDO PRINCIPAL
======================== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-content {
  padding: 60px 20px;
}

.page-content h2 {
  font-size: 1.8em;
  color: #2a7aba;
  margin-bottom: 20px;
  border-left: 4px solid #2a7aba;
  padding-left: 15px;
}

.page-content p {
  line-height: 1.8;
  margin-bottom: 18px;
  color: #555;
}

/* ========================
   SECCIÓN QUIENES SOMOS
======================== */
.quienes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  max-width: 1100px;
  margin: 60px auto;
  padding: 0 20px;
}

.quienes-grid .texto p {
  line-height: 1.85;
  margin-bottom: 18px;
  color: #555;
}

.quienes-grid .imagen img {
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* ========================
   SERVICIOS
======================== */
.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: 50px auto;
  padding: 0 20px;
}

.servicio-card {
  background: #f8f9fb;
  border: 1px solid #e0e8f0;
  border-top: 4px solid #2a7aba;
  border-radius: 6px;
  padding: 30px 25px;
  transition: box-shadow 0.3s;
}

.servicio-card:hover {
  box-shadow: 0 6px 20px rgba(42,122,186,0.15);
}

.servicio-card h3 {
  color: #2a7aba;
  margin-bottom: 12px;
  font-size: 1.1em;
}

.servicio-card p {
  color: #666;
  line-height: 1.7;
  font-size: 0.95em;
}

/* ========================
   GALERÍA
======================== */
.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
  max-width: 1100px;
  margin: 50px auto;
  padding: 0 20px;
}

.galeria-grid img {
  border-radius: 5px;
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s;
  cursor: pointer;
}

.galeria-grid img:hover {
  transform: scale(1.03);
}

/* ========================
   CLIENTES
======================== */
.clientes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 50px auto;
  padding: 0 20px;
  align-items: center;
}

.cliente-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border: 1px solid #e5e5e5;
  border-radius: 5px;
  transition: box-shadow 0.2s;
}

.cliente-logo:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.cliente-logo img { max-height: 70px; filter: grayscale(40%); }

/* ========================
   CONTACTO
======================== */
.contacto-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  max-width: 1000px;
  margin: 50px auto;
  padding: 0 20px;
}

.contacto-form input,
.contacto-form textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  margin-bottom: 15px;
  font-family: inherit;
  font-size: 14px;
  transition: border 0.2s;
}

.contacto-form input:focus,
.contacto-form textarea:focus {
  outline: none;
  border-color: #2a7aba;
}

.contacto-form textarea { height: 150px; resize: vertical; }

.btn-enviar {
  background: #2a7aba;
  color: #fff;
  border: none;
  padding: 12px 30px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  transition: background 0.2s;
  width: 100%;
}

.btn-enviar:hover { background: #1a5a8a; }

.contacto-info h3 {
  color: #2a7aba;
  margin-bottom: 20px;
  font-size: 1.3em;
}

.contacto-info p {
  margin-bottom: 12px;
  line-height: 1.7;
  color: #555;
}

.contacto-info strong { color: #333; }

/* ========================
   FOOTER
======================== */
#footer {
  background: #1a2a3a;
  color: #ccc;
  text-align: center;
  padding: 30px 20px;
  margin-top: 60px;
  font-size: 14px;
}

#footer a { color: #7ab8e8; }
#footer a:hover { text-decoration: underline; }

/* ========================
   RESPONSIVE
======================== */
@media (max-width: 768px) {
  nav ul { display: none; flex-direction: column; width: 100%; }
  nav ul.open { display: flex; }
  .menu-toggle { display: block; }
  #header .container { flex-wrap: wrap; gap: 10px; }
  .quienes-grid, .contacto-wrapper { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.7em; }
}

/* ========================
   PÁGINA RECURSOS
======================== */
.recursos-lista {
  max-width: 900px;
  margin: 50px auto;
  padding: 0 20px;
}

.recurso-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px 20px;
  border: 1px solid #e0e8f0;
  border-radius: 6px;
  margin-bottom: 12px;
  transition: background 0.2s;
}

.recurso-item:hover { background: #f0f6fb; }

.recurso-item .icon { font-size: 24px; color: #2a7aba; }
.recurso-item a { font-weight: 600; color: #2a7aba; }

/* ========================
   ANTECEDENTES / PROYECTOS
======================== */
.proyectos-lista {
  max-width: 900px;
  margin: 50px auto;
  padding: 0 20px;
}

.proyecto-item {
  border-left: 4px solid #2a7aba;
  padding: 15px 20px;
  margin-bottom: 20px;
  background: #f8f9fb;
  border-radius: 0 6px 6px 0;
}

.proyecto-item h3 { color: #2a7aba; margin-bottom: 8px; }
.proyecto-item p { color: #666; font-size: 0.95em; line-height: 1.7; }

/* Título de sección */
.section-title {
  text-align: center;
  padding: 50px 20px 20px;
}

.section-title h2 {
  font-size: 2em;
  color: #2a7aba;
  margin-bottom: 10px;
}

.section-title p {
  color: #777;
  max-width: 600px;
  margin: 0 auto;
}

.section-divider {
  width: 60px;
  height: 4px;
  background: #2a7aba;
  margin: 15px auto;
  border-radius: 2px;
}
