/* ============================================
   TOOLTIC - CSS MODERNO
   ============================================ */

/* ============================================
   1. CUSTOM PROPERTIES (Variables CSS)
   ============================================ */
:root {
  /* Colores */
  --color-primary: #5e97c0;
  --color-primary-light: #63a3c8;
  --color-primary-dark: #4a7a9f;
  --color-secondary: #fe969a;
  --color-accent: #fc7d81;
  
  --color-dark: #30373b;
  --color-text: #4f4f4f;
  --color-text-light: #808080;
  --color-text-muted: #949494;
  --color-border: #eaeaea;
  --color-bg: #dfeffc;
  --color-bg-light: #f8f8f8;
  --color-white: #ffffff;
  
  /* Espaciado */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  
  /* Tipografía */
  --font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-size-base: 1rem;
  --font-size-sm: 0.875rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 2rem;
  --font-size-4xl: 2.5rem;
  
  /* Transiciones */
  --transition-fast: 200ms ease-in-out;
  --transition-base: 300ms ease-in-out;
  --transition-slow: 500ms ease-in-out;
  
  /* Sombras */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;
  
  /* Max Width */
  --container-max: 1200px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-base);
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ============================================
   3. UTILITIES
   ============================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-header--left {
  text-align: left;
}

.section-header__label {
  display: inline-block;
  font-size: var(--font-size-sm);
  font-weight: 400;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-xs);
}

.section-header__title {
  font-size: clamp(1.75rem, 4vw, 2.125rem);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.3;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-size: var(--font-size-base);
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
  cursor: pointer;
  text-align: center;
  border: 2px solid transparent;
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: var(--color-white);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(94, 151, 192, 0.3);
}

.btn--secondary {
  background: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-white);
}

.btn--secondary:hover {
  background: transparent;
  color: var(--color-white);
  transform: translateY(-2px);
}

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

.btn--light:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ============================================
   4. HEADER
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: all var(--transition-base);
}

.header__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) 0;
}

.header__logo img {
  height: 50px;
  width: auto;
}

/* Navigation */
.nav__list {
  display: flex;
  gap: var(--space-lg);
  align-items: center;
}

.nav__link {
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  padding: var(--space-xs) 0;
  position: relative;
  transition: color var(--transition-base);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--transition-base);
}

.nav__link:hover,
.nav__link--active {
  color: var(--color-primary);
}

.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
}

/* Mobile Toggle */
.header__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 30px;
  height: 24px;
  z-index: 1001;
}

.header__toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--color-dark);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.header__toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.header__toggle.active span:nth-child(2) {
  opacity: 0;
}

.header__toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ============================================
   5. HERO SLIDER
   ============================================ */
.hero {
  position: relative;
  height: 600px;
  margin-top: 70px;
  overflow: hidden;
}

.hero__slider {
  position: relative;
  height: 100%;
}

.hero__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity var(--transition-slow);
  display: flex;
  align-items: center;
}

.hero__slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(94, 151, 192, 0.8) 0%, rgba(99, 163, 200, 0.6) 100%);
}

.hero__slide--active {
  opacity: 1;
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  color: var(--color-white);
  max-width: 600px;
  animation: fadeInUp 0.8s ease-out;
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

.hero__subtitle {
  font-size: var(--font-size-xl);
  font-weight: 400;
  margin-bottom: var(--space-xl);
  opacity: 0.95;
}

/* Slider Controls */
.hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  z-index: 10;
  transition: all var(--transition-base);
  cursor: pointer;
}

.hero__arrow:hover {
  background: var(--color-white);
  transform: translateY(-50%) scale(1.1);
}

.hero__arrow--prev {
  left: var(--space-md);
}

.hero__arrow--next {
  right: var(--space-md);
}

.hero__dots {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--space-sm);
  z-index: 10;
}

.hero__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all var(--transition-base);
}

.hero__dot--active {
  background: var(--color-white);
  width: 32px;
  border-radius: var(--radius-full);
}

/* ============================================
   6. INTRO SECTION
   ============================================ */
.intro {
  background: var(--color-bg);
  padding: var(--space-3xl) 0;
}

.intro__content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.intro__title {
  font-size: clamp(1.5rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
  line-height: 1.4;
}

.intro__text {
  font-size: var(--font-size-lg);
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ============================================
   7. SERVICES SECTION
   ============================================ */
.services {
  padding: var(--space-3xl) 0;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
}

.service-card {
  text-align: center;
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.service-card__icon {
  margin: 0 auto var(--space-lg);
  width: 170px;
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.service-card__title {
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}

.service-card__text {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ============================================
   8. CTA BANNER
   ============================================ */
.cta-banner {
  position: relative;
  padding: var(--space-3xl) 0;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(94, 151, 192, 0.85) 0%, rgba(99, 163, 200, 0.75) 100%);
}

.cta-banner__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--color-white);
  max-width: 700px;
  margin: 0 auto;
}

.cta-banner__title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  margin-bottom: var(--space-md);
  line-height: 1.3;
}

.cta-banner__text {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-xl);
  opacity: 0.95;
}

/* ============================================
   9. WHY US SECTION
   ============================================ */
.why-us {
  padding: var(--space-3xl) 0;
}

.why-us__wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.why-us__text {
  font-size: var(--font-size-base);
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
}

.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.feature {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.feature img {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
}

.feature h3 {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--color-primary);
}

.why-us__image {
  display: flex;
  justify-content: center;
}

.why-us__image img {
  max-width: 100%;
  height: auto;
}

/* ============================================
   10. PARTNERS SECTION
   ============================================ */
.partners {
  padding: var(--space-3xl) 0;
  background: var(--color-bg-light);
}

.partners__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-xl);
  align-items: center;
  justify-items: center;
}

.partner {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity var(--transition-base);
}

.partner:hover {
  opacity: 1;
}

.partner img {
  max-width: 120px;
  height: auto;
}

/* ============================================
   11. FOOTER
   ============================================ */
.footer {
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.8);
  padding: var(--space-3xl) 0 var(--space-lg);
}

.footer__content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer__logo {
  max-width: 200px;
  filter: brightness(0) invert(1);
}

.footer__title {
  font-size: var(--font-size-base);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.footer__link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-base);
}

.footer__link:hover {
  color: var(--color-white);
}

.footer__link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.footer__social {
  display: flex;
  gap: var(--space-md);
}

.footer__social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.7);
  transition: all var(--transition-base);
}

.footer__social a:hover {
  background: var(--color-white);
  color: var(--color-primary);
  transform: translateY(-3px);
}

.footer__bottom {
  text-align: center;
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   12. ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   13. RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  /* Header Mobile */
  .header__toggle {
    display: flex;
  }
  
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--color-white);
    box-shadow: var(--shadow-xl);
    padding: 80px var(--space-xl) var(--space-xl);
    transition: right var(--transition-base);
    z-index: 1000;
  }
  
  .nav.active {
    right: 0;
  }
  
  .nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-lg);
  }
  
  .nav__link {
    font-size: var(--font-size-lg);
  }
  
  /* Hero */
  .hero {
    height: 500px;
  }
  
  .hero__arrow {
    width: 40px;
    height: 40px;
  }
  
  .hero__arrow--prev {
    left: var(--space-sm);
  }
  
  .hero__arrow--next {
    right: var(--space-sm);
  }
  
  /* Services */
  .services__grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  
  /* Why Us */
  .why-us__wrapper {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  
  .why-us__image {
    order: -1;
  }
  
  .features {
    grid-template-columns: 1fr;
  }
  
  /* Partners */
  .partners__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }
  
  /* Footer */
  .footer__content {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .features {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   PÁGINAS INTERNAS - Estilos Adicionales
   ============================================ */

/* ============================================
   PAGE HERO (Para about, services, contact)
   ============================================ */
.page-hero {
  position: relative;
  height: 300px;
  margin-top: 70px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(94, 151, 192, 0.85) 0%, rgba(99, 163, 200, 0.75) 100%);
}

.page-hero__title {
  position: relative;
  z-index: 2;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--color-white);
  text-align: center;
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-intro {
  padding: var(--space-3xl) 0;
}

.about-intro__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  margin-top: var(--space-xl);
}

.about-intro__col p {
  font-size: var(--font-size-base);
  line-height: 1.8;
  color: var(--color-text-light);
  margin-bottom: var(--space-md);
}

.about-intro__col p:last-child {
  margin-bottom: 0;
}

/* What We Do Section */
.what-we-do {
  padding: var(--space-3xl) 0;
  background: var(--color-bg);
}

.what-we-do__wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.what-we-do__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.what-we-do__image img {
  width: 100%;
  height: auto;
  display: block;
}

.what-we-do__text {
  font-size: var(--font-size-base);
  line-height: 1.8;
  color: var(--color-text-light);
  margin-top: var(--space-md);
}

/* Clients Section */
.clients {
  padding: var(--space-3xl) 0;
}

.clients__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-xl);
  align-items: center;
  justify-items: center;
}

.client {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity var(--transition-base);
  filter: grayscale(100%);
}

.client:hover {
  opacity: 1;
  filter: grayscale(0%);
}

.client img {
  max-width: 120px;
  height: auto;
}

/* Values Section */
.values {
  padding: var(--space-3xl) 0;
  background: var(--color-bg-light);
}

.values__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
}

.value-card {
  background: var(--color-white);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.value-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.value-card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  border-radius: 50%;
  color: var(--color-white);
}

.value-card__title {
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.value-card__text {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ============================================
   SERVICES PAGE
   ============================================ */
.service-detail {
  padding: var(--space-3xl) 0;
}

.service-detail:nth-child(even) {
  background: var(--color-bg);
}

.service-detail__wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.service-detail__wrapper--reverse {
  direction: rtl;
}

.service-detail__wrapper--reverse > * {
  direction: ltr;
}

.service-detail__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.service-detail__image img {
  width: 100%;
  height: auto;
  display: block;
}

.service-detail__content h2 {
  margin-bottom: var(--space-sm);
}

.service-detail__text {
  font-size: var(--font-size-base);
  line-height: 1.8;
  color: var(--color-text-light);
  margin-top: var(--space-md);
  margin-bottom: var(--space-lg);
}

.service-detail__list {
  list-style: none;
  padding: 0;
}

.service-detail__list li {
  position: relative;
  padding-left: var(--space-lg);
  margin-bottom: var(--space-sm);
  font-size: var(--font-size-base);
  color: var(--color-text);
}

.service-detail__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  background: var(--color-primary);
  border-radius: 50%;
}

/* Solutions Diagram */
.solutions-diagram {
  padding: var(--space-3xl) 0;
  text-align: center;
}

.solutions-diagram__image {
  max-width: 400px;
  margin: var(--space-2xl) auto 0;
}

.solutions-diagram__image img {
  width: 100%;
  height: auto;
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-info {
  padding: var(--space-3xl) 0;
}

.contact-info__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
}

.contact-card {
  text-align: center;
  padding: var(--space-xl);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.contact-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.contact-card__icon {
  width: 100px;
  height: 100px;
  margin: 0 auto var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.contact-card__title {
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.contact-card__text {
  font-size: var(--font-size-base);
  color: var(--color-text-light);
}

/* Contact Form Section */
.contact-form-section {
  padding: var(--space-3xl) 0;
  background: var(--color-bg);
}

.contact-form-section__intro {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-2xl);
}

.contact-form-section__intro p {
  color: var(--color-text-light);
  margin-top: var(--space-sm);
}

.contact-form {
  max-width: 800px;
  margin: 0 auto;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.875rem 1.25rem;
  font-size: var(--font-size-sm);
  color: var(--color-text);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(94, 151, 192, 0.1);
}

.contact-form input.error,
.contact-form select.error,
.contact-form textarea.error {
  border-color: var(--color-secondary);
}

.contact-form input.valid,
.contact-form select.valid,
.contact-form textarea.valid {
  border-color: #7ab55c;
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
  font-family: inherit;
}

.contact-form select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234f4f4f' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-message {
  margin-top: var(--space-md);
  padding: var(--space-md);
  border-radius: var(--radius-sm);
  text-align: center;
  display: none;
}

.form-message.success {
  display: block;
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-message.error {
  display: block;
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* ============================================
   RESPONSIVE - Páginas Internas
   ============================================ */
@media (max-width: 768px) {
  .page-hero {
    height: 250px;
  }

  .about-intro__content {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .what-we-do__wrapper {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .what-we-do__image {
    order: -1;
  }

  .clients__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .values__grid {
    grid-template-columns: 1fr;
  }

  .service-detail__wrapper,
  .service-detail__wrapper--reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .service-detail__image {
    order: -1;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-info__grid {
    grid-template-columns: 1fr;
  }


