/* ==========================================================
   CEL Ontinyent — main stylesheet
   ========================================================== */

:root {
  --primary-color: #15375a;
  --secondary-color: #2b5f91;
  --text-color: #377da1;
  --text-dark: #1f2332;
  --white-color: #ffffff;
  --highlight-color: #37bcdb;
  --bg-light: #f8f9fa;
  --bg-grey: #f6f6f6;
  --grey-block: #c4c4c4;
  --dark-block: #4a4a4a;

  --font-heading: 'Lexend Deca', sans-serif;
  --font-body: 'Roboto', sans-serif;

  --transition: all 0.3s ease;
  --border-radius: 10px;
  --box-shadow: 0 10px 30px rgba(21, 55, 90, 0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--white-color);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary-color);
  margin-bottom: 1rem;
}

a { text-decoration: none; color: var(--highlight-color); transition: var(--transition); }
a:hover { color: var(--primary-color); }

img { max-width: 100%; height: auto; display: block; }

/* ===== Layout ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.section { padding: 80px 0; }
.section-bg-light { background-color: var(--bg-light); }

.row { display: flex; flex-wrap: wrap; margin: -15px; }
.col-25 { width: 25%; padding: 15px; }
.col-33 { width: 33.333%; padding: 15px; }
.col-50 { width: 50%; padding: 15px; }
.col-66 { width: 66.666%; padding: 15px; }

@media (max-width: 992px) {
  .col-25, .col-33 { width: 50%; }
  .col-66 { width: 100%; }
}
@media (max-width: 768px) {
  .col-25, .col-33, .col-50, .col-66 { width: 100%; }
}

.text-center { text-align: center; }
.text-left   { text-align: left; }
.align-items-center { align-items: center; }
.mt-15 { margin-top: 15px; }
.mt-30 { margin-top: 30px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.px-15 { padding-left: 15px; padding-right: 15px; }
.px-40 { padding-left: 40px; padding-right: 40px; }
.text-primary    { color: var(--primary-color); }
.text-highlight  { color: var(--highlight-color); }
.lead { font-size: 1.1rem; line-height: 1.8; }

/* ===== Header / nav ===== */
.header {
  background-color: var(--white-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 15px 0;
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo img { height: 50px; }

.nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
  align-items: center;
}
.nav-menu li a {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.nav-menu li a:hover, .nav-menu li a.active { color: var(--highlight-color); }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 2px solid var(--primary-color);
  border-radius: 4px;
  padding: 2px 4px;
}
.lang-switch .lang-opt {
  font-size: 13px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 2px;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.lang-switch .lang-opt:hover { color: var(--highlight-color); }
.lang-switch .lang-opt.active {
  background: var(--primary-color);
  color: var(--white-color);
  cursor: default;
}
.lang-switch .lang-opt.active:hover { color: var(--white-color); }
.lang-sep { color: var(--primary-color); font-weight: 400; opacity: 0.6; }

@media (max-width: 768px) {
  .nav-container { flex-direction: column; gap: 15px; }
  .nav-menu { flex-wrap: wrap; justify-content: center; gap: 15px; }
}

/* ===== Page header (breadcrumb) ===== */
.page-header {
  background-color: var(--primary-color);
  background-image: url('images/banner2-opacity.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
  padding: 100px 0 50px;
  color: var(--white-color);
}
.page-header::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(21, 55, 90, 0.85);
}
.page-header-content { position: relative; z-index: 2; }
.page-header h1 { color: var(--white-color); font-size: 2.5rem; margin-bottom: 10px; }

.breadcrumb { display: flex; list-style: none; gap: 10px; font-size: 14px; }
.breadcrumb li a { color: var(--highlight-color); }
.breadcrumb li.active { color: var(--white-color); }
.breadcrumb li + li::before { content: '/'; color: var(--highlight-color); margin-right: 10px; }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--primary-color);
  color: var(--white-color);
  border-radius: var(--border-radius);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 2px solid var(--primary-color);
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
  font-size: 14px;
}
.btn:hover { background-color: transparent; color: var(--primary-color); }

.btn-highlight {
  background-color: var(--highlight-color);
  border-color: var(--highlight-color);
  color: var(--white-color) !important;
}
.btn-highlight:hover { background-color: transparent; color: var(--highlight-color) !important; }

.btn-light {
  background: var(--white-color);
  color: var(--primary-color);
  border-color: var(--white-color);
}
.btn-light:hover { background: transparent; color: var(--white-color); }

.btn-dark {
  background-color: #15375a;
  border-color: #15375a;
  color: var(--white-color);
}
.btn-dark:hover { background-color: transparent; color: #15375a; }

.btn-block { width: 100%; }

/* ===== Section title ===== */
.section-title { margin-bottom: 50px; }
.section-title span {
  color: var(--highlight-color);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 10px;
}
.section-title h2 { font-size: 2.5rem; color: var(--primary-color); }
.section-title.text-center { text-align: center; }

.eyebrow {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  font-size: 14px;
  color: var(--text-dark);
}
.eyebrow-line {
  width: 30px;
  height: 2px;
  background-color: currentColor;
  margin-right: 15px;
}
.eyebrow--light { color: var(--white-color); }

/* ===== Feature cards ===== */
.feature-card {
  background: var(--white-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  height: 100%;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); }

.feature-image img { width: 100%; height: auto; display: block; }
.feature-content { padding: 30px 20px; position: relative; }
.feature-content h4 { margin-bottom: 15px; font-size: 1.25rem; font-weight: 600; }
.feature-content p { color: var(--text-color); margin-bottom: 20px; }

.feature-card--bordered {
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  padding: 40px 30px;
  border-radius: 0;
  border-top: 2px solid transparent;
}
.feature-card--bordered:hover { border-top-color: var(--highlight-color); }

.feature-card--mini { box-shadow: none; border: 1px solid #eee; }

.feature-badge,
.feature-arrow {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 2px solid var(--primary-color);
  font-family: monospace;
  color: var(--primary-color);
  font-weight: 700;
  line-height: 1.1;
}
.feature-badge { width: 44px; height: 44px; font-size: 15px; margin-bottom: 30px; }
.feature-arrow { width: 24px; height: 24px; font-size: 9px; border-width: 1px; margin-left: 10px; }

.feature-title {
  color: var(--primary-color);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
}
.feature-text { color: var(--text-color); font-size: 14px; margin-bottom: 30px; line-height: 1.6; }
.feature-link {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  text-transform: uppercase;
}

.solutions-block { padding-top: 20px; }
.solutions-title { color: var(--text-dark); font-size: 1.25rem; font-weight: 700; margin-bottom: 25px; }

/* ===== Lists ===== */
.custom-list {
  list-style: none;
  margin-top: 0;
  margin-bottom: 30px;
}
.custom-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 20px;
  color: var(--text-color);
  font-size: 14px;
  line-height: 1.6;
}
.custom-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: #4DAF40;
  font-weight: bold;
}

.lead-list { color: var(--text-color); margin-bottom: 20px; line-height: 1.8; }
.divider { border: 0; height: 1px; background: #ddd; margin: 20px 0; }

/* ===== Hero (home) ===== */
.hero-replica { background-color: #fff; padding: 80px 0; overflow: hidden; }
.hero-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.hero-left { flex: 1; min-width: 300px; padding-right: 40px; }
.hero-text-blocks { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.hero-block {
  background-color: var(--grey-block);
  color: var(--white-color);
  font-size: 80px;
  font-weight: 700;
  padding: 5px 20px;
  line-height: 1;
  margin: 0;
  text-transform: uppercase;
}
.hero-block--accent { color: var(--highlight-color); }
.hero-subtitle {
  background-color: var(--dark-block);
  color: var(--white-color);
  font-size: 20px;
  padding: 10px 20px;
  margin: 15px 0 0 0;
}

.hero-logo-graphic {
  margin-top: 50px;
  position: relative;
  height: 250px;
  width: 500px;
  max-width: 100%;
}
.octo { position: absolute; }
.octo-1 { left: 19px;  top: 87px; width: 150px; opacity: 0.55; z-index: 1; }
.octo-2 { left: 91px;  top: 0;    width: 220px; opacity: 0.57; z-index: 2; }
.octo-3 { left: 209px; top: 39px; width: 170px; opacity: 0.76; z-index: 3; }
.octo-4 { left: 342px; top: 85px; width: 110px; opacity: 0.78; z-index: 4; }

.hero-gif { mix-blend-mode: multiply; opacity: 0.8; max-width: 100%; height: auto; }

@media (max-width: 768px) {
  .hero-block { font-size: 50px; }
  .hero-left { padding-right: 0; }
}

/* ===== Intro section ===== */
.section--intro { padding-top: 100px; padding-bottom: 50px; }
.intro-block { max-width: 550px; }
.intro-title { font-size: 2.5rem; color: var(--secondary-color); margin-bottom: 25px; line-height: 1.3; }
.intro-block p { color: var(--text-color); margin-bottom: 20px; font-size: 15px; line-height: 1.8; }

.section--cards { padding-top: 50px; padding-bottom: 100px; }
.cards-row { margin: 0 -15px; }

/* ===== Banner split (50/50 photo) ===== */
.banner-split {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  min-height: 500px;
}
.banner-split__text {
  flex: 1;
  min-width: 300px;
  background: linear-gradient(90deg, #153759 0%, #37BDDB 100%);
  padding: 100px 10%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.banner-split__inner { max-width: 500px; margin-left: auto; }
.banner-split__inner h2 {
  font-size: 2.8rem;
  color: var(--white-color);
  margin-bottom: 25px;
  line-height: 1.2;
}
.banner-split__inner p {
  color: var(--white-color);
  font-size: 15px;
  line-height: 1.8;
  opacity: 0.9;
}
.banner-split__image {
  flex: 1;
  min-width: 300px;
  background-image: url('images/photovoltaic.jpg');
  background-size: cover;
  background-position: center;
}

/* ===== CTA banner ===== */
.section--cta-banner { padding: 100px 0; }
.cta-banner {
  background-color: #124c82;
  background-image: url('images/fondo-2.jpg');
  background-blend-mode: overlay;
  background-size: cover;
  background-position: center;
  padding: 100px 40px;
  text-align: center;
}
.cta-banner__questions {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  margin-bottom: 50px;
  gap: 20px;
}
.cta-banner__questions h3 {
  color: var(--white-color);
  font-size: 1.8rem;
  max-width: 450px;
  line-height: 1.4;
  text-align: center;
}

/* ===== Partners ===== */
.section--partners { padding: 20px 0 100px; text-align: center; }
.partners-title { color: var(--primary-color); margin-bottom: 50px; font-size: 2rem; }
.partners-list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
}
.partners-list img { height: 60px; max-width: 200px; object-fit: contain; }

/* ===== Talks (services) ===== */
.section--talks { background-color: var(--bg-grey); padding: 100px 0; }
.talks-image {
  border-radius: 5px;
  max-width: 100%;
  height: auto;
  box-shadow: var(--box-shadow);
  margin: 0 auto 30px;
}

.cta-title { font-size: 1.3rem; margin-bottom: 20px; color: var(--primary-color); }

/* ===== Forms ===== */
.contact-form {
  background: var(--white-color);
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 5px; color: var(--text-color); }
.form-control {
  width: 100%;
  padding: 15px;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  font-family: var(--font-body);
  font-size: 16px;
  transition: var(--transition);
}
.form-control:focus { outline: none; border-color: var(--highlight-color); }
textarea.form-control { min-height: 150px; resize: vertical; }

.form-check { display: flex; align-items: flex-start; gap: 10px; }
.form-check input { margin-top: 5px; }
.form-check label { font-size: 14px; color: var(--text-color); margin: 0; }

.radio-group { display: flex; gap: 20px; flex-wrap: wrap; }
.radio-group label { color: var(--text-color); display: inline-flex; align-items: center; gap: 6px; }

.alert {
  padding: 15px 20px;
  border-radius: 5px;
  margin-bottom: 20px;
  font-size: 15px;
}
.alert-success { background: #e8f7ee; color: #1d693a; border: 1px solid #b6dcc6; }
.alert-error   { background: #fbeaea; color: #8c1c1c; border: 1px solid #e7b8b8; }

.info-card {
  border: 1px solid #eee;
  padding: 40px 20px;
  border-radius: var(--border-radius);
}
.info-card h4 { color: var(--primary-color); }
.info-card p, .info-card a { color: var(--text-color); }
.info-icon { color: var(--primary-color); margin-bottom: 15px; display: flex; justify-content: center; }

.map-wrapper {
  border-radius: 20px;
  overflow: hidden;
  height: 100%;
  min-height: 400px;
  box-shadow: var(--box-shadow);
}
.map-wrapper iframe { width: 100%; height: 100%; min-height: 500px; border: 0; display: block; }

/* ===== Register page ===== */
.register-title { color: var(--primary-color); margin-bottom: 20px; }
.register-icon { font-size: 30px; color: var(--highlight-color); margin-bottom: 40px; }
.register-notice { color: var(--text-color); font-size: 15px; margin-bottom: 20px; }
.register-aside { width: 100%; border-radius: 20px; box-shadow: var(--box-shadow); }

/* ===== Misc ===== */
.split-section { display: flex; align-items: center; }
.rounded-img { border-radius: 20px; max-width: 80%; }
.shadow { box-shadow: var(--box-shadow); }

.link-arrow { font-weight: 600; font-size: 14px; text-transform: uppercase; }

/* ===== Footer ===== */
.footer {
  background-color: #000;
  color: var(--white-color);
  padding: 80px 0 0;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 50px;
}
.footer-col { flex: 1; min-width: 250px; }

.footer-logo { max-width: 180px; margin-bottom: 30px; }

.footer-title {
  color: var(--white-color);
  margin-bottom: 25px;
  font-size: 1.1rem;
  font-weight: 600;
}
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 15px; }
.footer-links a { color: var(--highlight-color); font-size: 14px; }
.footer-links a:hover { color: var(--white-color); }

.footer-contact { list-style: none; padding: 0; }
.footer-contact li {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
  color: var(--white-color);
  font-size: 14px;
}
.footer-contact a { color: var(--highlight-color); }
.contact-icon {
  border: 1px solid var(--highlight-color);
  color: var(--highlight-color);
  padding: 5px;
  border-radius: 3px;
  display: inline-flex;
}

.footer-social {
  display: flex;
  gap: 15px;
  margin-top: 25px;
}
.footer-social img { width: 40px; opacity: 0.85; transition: var(--transition); }
.footer-social a:hover img { opacity: 1; }

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 25px 0;
  font-size: 13px;
  color: var(--white-color);
}
