/* ===================================================
   COICI - Corporación Tecnológica de Servicios Industriales
   CSS Principal - Fiel al diseño original WordPress
   =================================================== */

/* Google Fonts - Kanit (igual al original) */
@import url('https://fonts.googleapis.com/css2?family=Kanit:ital,wght@0,100;0,400;0,600;0,700;1,400;1,700&display=swap');

/* ---- Variables ---- */
:root {
  --accent: #e8a901;
  --accent-hover: #c58f00;
  --dark: #02050e;
  --text: #858586;
  --heading: #040d19;
  --white: #ffffff;
  --light-bg: #FCFCFC;
  --border: #EBEBEB;
  --footer-bg: #02050e;
  --nav-bg: #ffffff;
  --nav-link: #000000;
  --nav-hover: #666666;
  --submenu-bg: #F2F2F2;
  --submenu-link: #5f5f5f;
  --header-height: 90px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background-color: var(--light-bg); }
body {
  font-family: 'Kanit', Arial, Tahoma, sans-serif;
  font-size: 14px;
  line-height: 22px;
  color: var(--text);
  background-color: var(--light-bg);
  min-width: 320px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .25s; }
a:hover { color: var(--accent-hover); text-decoration: underline; }
ul { list-style: none; }
h1,h2,h3,h4,h5,h6 { font-family: 'Kanit', Arial, sans-serif; color: var(--heading); margin-bottom: 15px; }
h1 { font-size: 25px; line-height: 25px; font-weight: 400; }
h2 { font-size: 32px; line-height: 32px; font-weight: 600; }
h3 { font-size: 28px; line-height: 30px; font-weight: 100; }
h4 { font-size: 18px; line-height: 22px; font-weight: 400; }
h5 { font-size: 16px; line-height: 21px; font-weight: 700; }
h6 { font-size: 14px; line-height: 21px; font-weight: 400; }
p { margin-bottom: 15px; }

/* ---- Layout ---- */
.wrapper { max-width: 1240px; margin: 0 auto; overflow: hidden; box-shadow: 0 0 15px rgba(0,0,0,.06); background: var(--light-bg); }
.container { max-width: 1220px; margin: 0 auto; padding: 0 20px; position: relative; }
.clearfix::after { content: ''; display: table; clear: both; }

/* ==============================
   HEADER / TOP BAR
   ============================== */
#header-wrapper {
  background-image: url('/images/header.jpg');
  background-repeat: no-repeat;
  background-position: top center;
  background-size: cover;
  position: relative;
}

#top-bar {
  background-color: var(--nav-bg);
  border-bottom: 1px solid #F2F2F2;
  position: relative;
  z-index: 100;
}

#top-bar.sticky {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 700;
  box-shadow: 0 2px 5px rgba(0,0,0,.1);
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  padding: 0 20px;
  max-width: 1220px;
  margin: 0 auto;
}

/* Logo */
.logo a {
  display: flex;
  align-items: center;
  height: 60px;
}
.logo img {
  max-height: 55px;
  width: auto;
}

/* Nav */
nav#main-nav ul {
  display: flex;
  align-items: center;
  gap: 0;
}
nav#main-nav ul li {
  position: relative;
}
nav#main-nav ul li > a {
  display: block;
  font-family: 'Kanit', Arial, sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: var(--nav-link);
  line-height: 60px;
  padding: 15px 0;
  white-space: nowrap;
  border-right: 1px solid #eee;
  text-decoration: none;
  transition: color .25s;
  position: relative;
}
nav#main-nav ul li > a span {
  display: block;
  padding: 0 20px;
  line-height: 60px;
}
nav#main-nav ul li > a::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--nav-hover);
  opacity: 0;
  transition: opacity .25s;
}
nav#main-nav ul li:hover > a,
nav#main-nav ul li.active > a {
  color: var(--nav-hover);
}
nav#main-nav ul li:hover > a::after,
nav#main-nav ul li.active > a::after {
  opacity: 1;
}
nav#main-nav ul li:last-child > a { border-right: none; }

/* Submenu */
nav#main-nav ul li .submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--submenu-bg);
  min-width: 240px;
  z-index: 300;
  box-shadow: 2px 2px 5px rgba(0,0,0,.08);
  flex-direction: column;
  gap: 0;
}
nav#main-nav ul li:hover .submenu { display: flex; }
nav#main-nav ul li .submenu li { width: 100%; }
nav#main-nav ul li .submenu li a {
  display: block;
  font-size: 14px;
  line-height: 1.4;
  padding: 10px 20px;
  color: var(--submenu-link);
  border-bottom: 1px solid rgba(0,0,0,.05);
  border-right: none;
  white-space: normal;
}
nav#main-nav ul li .submenu li a::after { display: none; }
nav#main-nav ul li .submenu li a:hover {
  color: #2e2e2e;
  background: rgba(0,0,0,.06);
  text-decoration: none;
}

/* Hamburger */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 28px;
  color: #2991d6;
  line-height: 1;
  padding: 5px;
}

/* ==============================
   SUBHEADER (page title banner)
   ============================== */
#subheader {
  padding: 100px 0;
  text-align: center;
}
#subheader .title {
  font-family: 'Kanit', Arial, sans-serif;
  font-size: 70px;
  line-height: 70px;
  font-weight: 400;
  color: var(--accent);
  margin: 0;
}

/* ==============================
   CONTENT AREA
   ============================== */
#content {
  background: var(--light-bg);
  padding-top: 0;
}

.section {
  position: relative;
  padding: 80px 0 30px;
}
.section.border-top {
  border-top: 1px solid rgba(0,0,0,.1);
}
.section-inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==============================
   COLUMNS GRID
   ============================== */
.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -1%;
}
.col { padding: 0 1%; box-sizing: border-box; margin-bottom: 40px; }
.col-1-2 { width: 50%; }
.col-1-3 { width: 33.333%; }
.col-2-3 { width: 66.666%; }
.col-1-4 { width: 25%; }
.col-3-4 { width: 75%; }
.col-full { width: 100%; }
.col-2-5 { width: 40%; }
.col-3-5 { width: 60%; }

/* ==============================
   TABS (Misión / Visión / Calidad)
   ============================== */
.tabs-container {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}
.tabs-nav {
  min-width: 180px;
  border-right: 1px solid rgba(0,0,0,.1);
}
.tabs-nav ul { display: flex; flex-direction: column; gap: 0; }
.tabs-nav ul li a {
  display: block;
  padding: 12px 20px;
  color: var(--submenu-link);
  font-size: 14px;
  font-weight: 400;
  border-bottom: 1px solid rgba(0,0,0,.05);
  transition: all .2s;
}
.tabs-nav ul li a:hover,
.tabs-nav ul li.active a {
  color: var(--accent);
  background: rgba(232,169,1,.06);
  text-decoration: none;
}
.tabs-content { flex: 1; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.tab-panel h2 { margin-bottom: 20px; }

/* ==============================
   SEPARATOR IMAGE
   ============================== */
.section-separator {
  text-align: center;
  margin: 10px 0 30px;
}
.section-separator img { display: inline-block; }

/* ==============================
   CLIENTS GRID
   ============================== */
.clients-grid {
  display: flex;
  flex-wrap: wrap;
}
.client-item {
  width: 25%;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0,0,0,.06);
  transition: all .25s;
}
.client-item:hover { background: rgba(232,169,1,.07); }
.client-item img {
  max-width: 130px;
  max-height: 75px;
  width: auto;
  height: auto;
  filter: grayscale(60%);
  transition: filter .25s;
}
.client-item:hover img { filter: grayscale(0%); }

/* ==============================
   FANCY HEADING
   ============================== */
.fancy-heading {
  text-align: center;
  margin-bottom: 30px;
}
.fancy-heading h2 { color: var(--heading); }
.fancy-heading .icon-top {
  display: block;
  font-size: 36px;
  color: var(--accent);
  margin-bottom: 10px;
}

/* ==============================
   ZOOM BOX (sidebar image card)
   ============================== */
.zoom-box { position: relative; overflow: hidden; }
.zoom-box img { width: 100%; }
.zoom-box .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.8);
}

/* ==============================
   SERVICE LISTS
   ============================== */
.service-block { margin-bottom: 30px; }
.service-block h4 {
  color: var(--heading);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}
.service-block ul {
  list-style: disc;
  padding-left: 20px;
  color: var(--text);
}
.service-block ul li { margin-bottom: 4px; line-height: 22px; }

/* ==============================
   CONTACT PAGE
   ============================== */
.contact-info h2 { margin-bottom: 20px; }
.contact-info p { margin-bottom: 8px; line-height: 24px; }
.contact-info p strong { color: var(--heading); }

/* ==============================
   FORM STYLES
   ============================== */
.contact-form-wrapper { background: rgba(22,24,35,.02); padding: 30px; }
.form-row { display: flex; gap: 20px; margin-bottom: 15px; }
.form-group { flex: 1; display: flex; flex-direction: column; }
.form-group.full { flex: 0 0 100%; width: 100%; }
.form-group label {
  font-size: 13px;
  color: var(--text);
  margin-bottom: 4px;
}
.form-group input,
.form-group textarea,
.form-group select {
  font-family: 'Kanit', Arial, sans-serif;
  font-size: 14px;
  color: #626262;
  background: rgba(255,255,255,1);
  border: 1px solid var(--border);
  padding: 10px 14px;
  width: 100%;
  transition: all .2s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  color: #1982c2;
  background: rgba(233,245,252,1) !important;
  border-color: #d5e5ee;
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* Captcha */
.captcha-box {
  background: #f9f9f9;
  border: 1px solid var(--border);
  padding: 14px 18px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.captcha-box .captcha-question {
  font-size: 15px;
  font-weight: 600;
  color: var(--heading);
  white-space: nowrap;
}
.captcha-box input {
  width: 80px;
  padding: 8px 10px;
  font-size: 15px;
  border: 1px solid var(--border);
  text-align: center;
}
.captcha-error { color: #e74c3c; font-size: 12px; display: none; }

.btn-submit {
  font-family: 'Kanit', Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 13px 30px;
  cursor: pointer;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: background .25s;
}
.btn-submit:hover { background: var(--accent-hover); }

.form-message {
  padding: 12px 20px;
  margin-top: 15px;
  font-size: 14px;
  display: none;
}
.form-message.success { background: #7dcc68; color: #fff; display: block; }
.form-message.error { background: #e74c3c; color: #fff; display: block; }

/* ==============================
   HISTORY SECTION
   ============================== */
.history-section { margin-top: 50px; }
.history-section h2 { text-align: center; }

/* ==============================
   FOOTER
   ============================== */
#footer {
  background-color: var(--footer-bg);
  color: #80848E;
}
#footer a { color: #d4d5da; }
#footer a:hover { color: #eaecf0; }
#footer h1,#footer h2,#footer h3,#footer h4,#footer h5,#footer h6 { color: #ffffff; }

.footer-action {
  border-bottom: 1px solid rgba(255,255,255,.1);
  text-align: center;
  padding: 30px 20px;
}
.footer-action h3 { color: #fff; margin: 0; font-weight: 100; font-size: 22px; }

.footer-copy {
  padding: 25px 20px;
  text-align: center;
}
.copyright { color: #80848E; font-size: 13px; }
.copyright a { color: #d4d5da; }
.copyright a:hover { color: var(--accent); }

/* ==============================
   UTILITIES
   ============================== */
.text-center { text-align: center; }
.text-justify { text-align: justify; }
.mb-0 { margin-bottom: 0; }
.mb-20 { margin-bottom: 20px; }
.mt-30 { margin-top: 30px; }
.pt-80 { padding-top: 80px; }
.pb-40 { padding-bottom: 40px; }

.divider-line {
  border: none;
  border-top: 1px solid rgba(0,0,0,.1);
  margin: 30px 0;
}

/* ==============================
   RESPONSIVE
   ============================== */
@media (max-width: 1239px) {
  nav#main-nav { display: none; position: absolute; top: 100%; right: 0; width: 300px; background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.12); z-index: 500; }
  nav#main-nav.open { display: block; }
  nav#main-nav ul { flex-direction: column; }
  nav#main-nav ul li > a { line-height: 1.4; padding: 14px 20px; border-right: none; border-bottom: 1px solid #eee; font-size: 16px; }
  nav#main-nav ul li > a span { padding: 0; line-height: inherit; }
  nav#main-nav ul li > a::after { display: none; }
  nav#main-nav ul li .submenu { position: static; box-shadow: none; display: none; background: #f5f5f5; }
  nav#main-nav ul li.open-sub .submenu { display: flex; }
  nav#main-nav ul li .submenu li a { padding-left: 30px; }
  .menu-toggle { display: block; }
  #top-bar { position: relative; }
  #subheader .title { font-size: 42px; line-height: 42px; }
}

@media (max-width: 767px) {
  .col-1-2, .col-1-3, .col-2-3, .col-1-4, .col-3-4, .col-2-5, .col-3-5 { width: 100%; }
  .tabs-container { flex-direction: column; }
  .tabs-nav { border-right: none; border-bottom: 1px solid rgba(0,0,0,.1); width: 100%; }
  .tabs-nav ul { flex-direction: row; flex-wrap: wrap; }
  .clients-grid .client-item { width: 50%; }
  .form-row { flex-direction: column; gap: 0; }
  h2 { font-size: 24px; line-height: 24px; }
  h3 { font-size: 20px; line-height: 24px; }
  #subheader { padding: 60px 0; }
  #subheader .title { font-size: 32px; line-height: 36px; }
  .section { padding: 50px 0 20px; }
}

@media (max-width: 480px) {
  .clients-grid .client-item { width: 50%; }
  .top-bar-inner { height: 65px; }
  .logo img { max-height: 40px; }
}
