/*
Theme Name: IES Solution OnePage
Theme URI: https://example.com/
Author: ChatGPT (generated)
Description: Tema one-page para IES Solution basado en el HTML proporcionado. Incluye navegación fija y secciones ancladas.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ies-solution-onepage
*/

/* === Base reset-ish === */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

:root{
  --start: 200;
  --end: 240;
  --lightness: 55%;
  --base-chroma: 0.25;
  --primary-blue: oklch(50% 0.25 230);
  --light-blue: oklch(85% 0.15 230);
  --dark-blue: oklch(35% 0.2 230);
}

body{
  margin:0;
  padding:0;
  min-height:100vh;
  font-family: 'Geist', system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color:#1a2332;
  background: linear-gradient(135deg, #ffffff 0%, #e8f4f8 100%);
}

/* Subtle grid background */
body::before{
  --size: 45px;
  --line: rgba(0, 80, 160, 0.08);
  content: '';
  height: 100vh;
  width: 100vw;
  position: fixed;
  background:
    linear-gradient(90deg, var(--line) 1px, transparent 1px var(--size)) 50% 50%/var(--size) var(--size),
    linear-gradient(var(--line) 1px, transparent 1px var(--size)) 50% 50%/var(--size) var(--size);
  mask: linear-gradient(-20deg, transparent 50%, white);
  top: 0;
  pointer-events: none;
  z-index: -1;
}

main{ width:100%; }

/* === Typography === */
h1{
  margin:0;
  line-height:0.9;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
  -webkit-background-clip:text;
  background-clip:text;
  color: transparent;
  font-size: clamp(2.2rem, 6vw, 5rem);
}

h2{
  margin:0 0 1rem 0;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-blue) 30%, var(--dark-blue) 100%);
  -webkit-background-clip:text;
  background-clip:text;
  color: transparent;
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.subtitle{
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  margin-top: 2rem;
  opacity: 0.75;
  font-weight: 400;
  line-height: 1.4;
  color: #2d3748;
}

/* === Navigation === */
nav.ies-nav{
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 2px solid var(--primary-blue);
  box-shadow: 0 2px 10px rgba(0, 60, 120, 0.1);
}

nav.ies-nav ul{
  display:flex;
  justify-content:center;
  gap: 3rem;
  padding: 1.25rem 1.5rem;
  margin:0;
  list-style:none;
  flex-wrap: wrap;
}

nav.ies-nav a{
  color: var(--dark-blue);
  text-decoration:none;
  font-weight: 650;
  font-size: 1.05rem;
  position: relative;
  padding: 0.5rem 1rem;
  transition: all .25s ease;
}

nav.ies-nav a::after{
  content:'';
  position:absolute;
  bottom:0;
  left:50%;
  width:0;
  height:2px;
  background: var(--primary-blue);
  transform: translateX(-50%);
  transition: width .25s ease;
}

nav.ies-nav a:hover{ color: var(--primary-blue); }
nav.ies-nav a:hover::after{ width:80%; }

/* === Layout Sections === */
header.ies-hero{
  min-height: 100vh;
  display:flex;
  align-items:center;
  padding: 6rem 5rem 0 5rem;
}

@media (max-width: 700px){
  header.ies-hero{ padding: 6rem 1.5rem 0 1.5rem; }
  nav.ies-nav ul{ gap: 1rem; }
}

section.content-section{
  min-height: 100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  padding-top: 6rem;
}

.content-block{
  max-width: 1200px;
  padding: 2rem;
  text-align:center;
}

.content-block p{
  font-size: 1.15rem;
  line-height: 1.8;
  opacity: 0.86;
  max-width: 820px;
  margin: 1.5rem auto;
  color: #2d3748;
}

/* === Highlight box === */
.highlight-box{
  background: rgba(230, 240, 255, 0.8);
  border-left: 4px solid var(--primary-blue);
  padding: 2rem;
  margin: 2rem auto;
  border-radius: 8px;
  max-width: 900px;
  box-shadow: 0 4px 15px rgba(0, 60, 120, 0.1);
}

/* === Stats grid === */
.stats-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.stat-number{
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-blue);
  line-height: 1;
}

.stat-label{
  font-size: 1rem;
  opacity: 0.75;
  margin-top: 0.5rem;
  color: #2d3748;
}

/* === Service list (scroll color effect simplified) === */
ul.service-list{
  font-weight: 700;
  padding: 0;
  margin: 0;
  list-style: none;
  text-align: left;
  max-width: 1000px;
}

#servicios{
  min-height: 100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  padding: 6rem 5rem 3rem 5rem;
}

#servicios > h2{
  position: sticky;
  top: calc(50% - 0.5lh);
  align-self:flex-start;
  margin-right: 3rem;
}

@media (max-width: 900px){
  #servicios{ flex-direction: column; padding: 6rem 1.5rem 3rem 1.5rem; }
  #servicios > h2{ position: static; margin: 0 0 2rem 0; }
  ul.service-list{ text-align:center; }
}

ul.service-list li{
  font-size: clamp(1.25rem, 3vw, 2.25rem);
  line-height: 1.35;
  margin: 0.5rem 0;
  color: var(--dark-blue);
  opacity: 0.9;
}

ul.service-list li:last-child{
  background: linear-gradient(135deg, var(--primary-blue) 30%, var(--dark-blue) 100%);
  -webkit-background-clip:text;
  background-clip:text;
  color: transparent;
}

/* === Cards grid === */
.service-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  list-style:none;
  padding:0;
}

.service-card{
  padding: 2.5rem;
  border: 2px solid rgba(0, 80, 160, 0.2);
  border-radius: 12px;
  background: rgba(255,255,255,0.9);
  transition: all .25s ease;
  cursor: default;
  box-shadow: 0 4px 15px rgba(0, 60, 120, 0.08);
  text-align:left;
}

.service-card:hover{
  transform: translateY(-8px);
  border-color: var(--primary-blue);
  box-shadow: 0 15px 40px rgba(0, 60, 120, 0.2);
  background: rgba(255,255,255,1);
}

.service-card h3{
  font-size: 1.55rem;
  margin: 0 0 1rem 0;
  color: var(--primary-blue);
  font-weight: 800;
}

.service-card p{
  opacity: 0.8;
  font-size: 1rem;
  margin: 0;
  line-height: 1.6;
  color: #2d3748;
}

/* === Footer === */
footer.ies-footer{
  padding: 3rem 1.5rem;
  opacity: 0.7;
  text-align:center;
  color:#2d3748;
}
