/*
    Theme Name: DigitalizArt Theme
    Theme URI: 
    Author: Carlos Andres Polanco Zevallos
    Author URI: http://anderz.dev/
    Description: Theme Designed and Developed for DigitalizArt
    Version: 1.7
    License: GNU General Public License v2 or later
    License URI: http://www.gnu.org/licenses/gpl-2.0.html
    Tags: agency, consulting, business, corporate, services, professional, clean
    Text Domain: digitalizart
*/

/* Google Fonts loaded in header.php for performance */

/* Performance Optimization: Placeholder color while image loads */
.hero-section {
  background-color: var(--primary);
}

:root {
  /** Fonts **/
  --font-main: "Fira Sans", sans-serif;
  --font-headings: "DM Sans", sans-serif;
  /** Colors (Base) **/
  --primary: #0022ff;
  --secondary: #ff6406;
  --white: #fff;
  --black: #000;

  /* Semantic Colors (Light Mode Default) */
  --bg-body: #ffffff;
  --bg-section: #f9f9f9;
  --bg-header: #ffffff;
  --bg-card: #ffffff;
  --bg-footer: #ffffff;
  --text-main: #000000;
  --text-muted: #555555;
  --text-light: #666666;
  --border-color: #eee;
}

html {
  box-sizing: border-box;
  font-size: 62.5%;
  /* 10px = 1rem */
  scroll-behavior: smooth;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--secondary);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #e55a05;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

body {
  font-family: var(--font-main);
  font-size: 1.8rem;
  line-height: 2;
  background-color: var(--bg-body);
  color: var(--text-main);
  transition: background-color 0.3s ease, color 0.3s ease;
}

/** Headings **/
h1,
h2,
h3,
h4 {
  font-family: var(--font-main);
  margin: 0 0 5rem 0;
  line-height: 1.2;
}

h1 {
  font-size: 8.0rem;
  font-weight: 700;
  font-style: normal;
}

h2 {
  font-size: 6.0rem;
  font-weight: 600;
  font-style: normal;
}

h3 {
  font-size: 4.0rem;
  font-weight: 500;
  font-style: normal;
}

h4 {
  font-size: 1.8rem;
  font-weight: 500;
  font-style: normal;
}

/** Global **/

p {
  font-size: 1.4rem;
  font-weight: 400;
  font-style: normal;
  margin: 0;
}

a {
  font-size: 1.4rem;
  font-weight: 500;
  font-style: normal;
  text-decoration: none;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.container {
  width: min(95%, 120rem);
  margin: 0 auto;
}

/** Utilitys **/
.text-center {
  text-align: center;
}

.text-primary {
  color: var(--primary);
}

.text-secondary {
  color: var(--secondary);
}

.text-white {
  color: var(--white);
}

.text-black {
  color: var(--black);
}

.section {
  padding: 5rem 0;
}

/** Header **/
.header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  padding-top: 3rem;
  transition: all 0.4s ease;
}

.header.scrolled {
  padding-top: 1rem;
  padding-bottom: 1rem;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.nav-bar {
  background-color: var(--bg-header);
  border-radius: 100px;
  padding: 1.2rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  position: relative;
  transition: all 0.4s ease;
}

.header.scrolled .nav-bar {
  border-radius: 0;
  width: 100%;
  max-width: 100%;
  box-shadow: none;
  background: transparent;
}

.nav-bar {
  background-color: var(--white);
  border-radius: 100px;
  padding: 1rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  position: relative;
}

.logo img {
  max-height: 40px;
  width: auto;
}

.menu-toggle {
  display: none;
}

.main-menu ul {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-menu li {
  margin: 0;
}

.main-menu a {
  display: inline-block;
  background-color: transparent;
  color: var(--black);
  /* Fixed contrast */
  font-family: var(--font-headings);
  font-size: 1.6rem;
  font-weight: 700;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.main-menu a:hover {
  background-color: transparent;
  color: var(--primary);
  transform: translateY(-2px);
}

.main-menu .current_page_item>a,
.main-menu .current-menu-item>a {
  background-color: transparent !important;
  color: var(--primary) !important;
}

/* Style for the "Hablemos" button (assuming it's the last item) */
/* Style for the "Hablemos" button (assuming it's the last item) */
.main-menu li:last-child a {
  background-color: var(--primary) !important;
  color: var(--white) !important;
  padding: 0.8rem 3rem;
  box-shadow: 0 4px 15px rgba(0, 34, 255, 0.3);
}

.main-menu li:last-child a:hover {
  background-color: var(--secondary) !important;
  color: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 100, 6, 0.3);
}



/* Active state for "Hablemos" button */
.main-menu li.current-menu-item:last-child a,
.main-menu li.current_page_item:last-child a {
  background-color: var(--primary) !important;
  color: var(--white) !important;
  box-shadow: 0 4px 15px rgba(0, 34, 255, 0.3);
}

@media (max-width: 991px) {
  html {
    font-size: 55%;
  }

  .header {
    padding-top: 1rem;
  }

  .nav-bar {
    padding: 1.5rem 2.5rem;
    border-radius: 4rem;
    justify-content: space-between;
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: auto;
    z-index: 1001;
  }

  .menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--primary);
    border-radius: 3px;
    transition: all 0.3s ease;
  }

  .main-menu {
    position: absolute;
    top: 120%;
    right: 0;
    left: auto;
    width: 200px;
    background-color: var(--white);
    padding: 2rem;
    border-radius: 2rem;
    border-top-right-radius: 0.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform-origin: top right;
    transform: scale(0.9) translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
  }

  .main-menu ul {
    flex-direction: column;
    width: 100%;
    gap: 1rem;
  }

  .main-menu li,
  .main-menu a {
    width: 100%;
    text-align: center;
  }

  .main-menu a {
    padding: 1rem;
    font-size: 1.5rem;
  }

  .main-menu.is-active {
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateY(0);
  }

  .menu-toggle.is-active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

  .menu-toggle.is-active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.is-active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}

/** Footer **/

.site-footer {
  background-color: var(--bg-footer);
  color: var(--text-main);
  padding-top: 8rem;
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  transition: background-color 0.3s ease;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 4rem;
  padding-bottom: 6rem;
}

.site-footer h3 {
  font-family: var(--font-headings);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 3rem;
}

.footer-desc {
  margin: 3rem 0;
  color: #555;
  line-height: 1.6;
  max-width: 350px;
}

.footer-logo img {
  max-height: 50px;
  width: auto;
}

.links-col ul li {
  margin-bottom: 1.5rem;
}

.links-col ul a {
  color: var(--black);
  font-size: 1.5rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.links-col ul a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2rem;
  font-size: 1.5rem;
  color: #333;
}

.contact-list i {
  color: var(--secondary);
  font-size: 1.8rem;
  margin-top: 3px;
}

.contact-list a {
  color: #333;
  transition: color 0.3s;
}

.contact-col a {
  font-size: 1.5rem;
  font-weight: 400;
}

.contact-list a:hover {
  color: var(--primary);
}

.social-title {
  font-weight: 700;
  margin-bottom: 1.5rem;
  font-size: 1.6rem;
}

.icons-wrapper {
  display: flex;
  gap: 1rem;
}

.icons-wrapper a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background-color: var(--primary);
  color: var(--white);
  border-radius: 50%;
  font-size: 1.6rem;
  transition: all 0.3s ease;
}

.icons-wrapper a:hover {
  background-color: var(--secondary);
  transform: translateY(-3px);
}

.footer-bottom {
  background-color: var(--primary);
  color: var(--white);
  padding: 2rem 0;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 500;
}

.footer-bottom p {
  margin: 0;
  opacity: 0.9;
}

@media (max-width: 768px) {
  .footer-logo img {
    margin: 0 auto;
    display: block;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 4rem;
  }

  .footer-desc {
    margin: 2rem auto;
  }

  .icons-wrapper {
    justify-content: center;
  }

  .contact-list li {
    justify-content: center;
  }
}

/** Hero **/
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--white);
  margin-top: 0;
}

.hero-brand {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--secondary);
  margin-bottom: 1.5rem;
  font-family: var(--font-headings);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 8rem;
}

.hero-text-wrapper {
  max-width: 110rem;
  margin: 0 auto;
}

.hero-title {
  font-family: var(--font-headings);
  font-size: 6rem;
  line-height: 1.1;
  font-weight: 700;
  margin-bottom: 2.5rem;
  color: var(--white);
  min-height: 2.3em;
  /* Reserves space for 2 lines */
}

.hero-title .highlight {
  color: var(--secondary);
  border-right: 3px solid var(--secondary);
  padding-right: 5px;
  animation: blink-cursor 0.75s step-end infinite;
}

@keyframes blink-cursor {

  from,
  to {
    border-color: transparent;
  }

  50% {
    border-color: var(--secondary);
  }
}

.hero-subtitle {
  font-size: 2rem;
  line-height: 1.6;
  margin-bottom: 4rem;
  color: #e0e0e0;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 1.5rem 3.5rem;
  font-size: 1.6rem;
  font-weight: 700;
  border-radius: 50px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  font-family: var(--font-headings);
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
  border: 2px solid var(--primary);
}

.btn-primary:hover {
  background-color: var(--secondary);
  border-color: var(--secondary);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-outline {
  background-color: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-outline:hover {
  background-color: var(--white);
  color: var(--black);
  transform: translateY(-3px);
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 3.6rem;
  }

  .hero-subtitle {
    font-size: 1.6rem;
  }

  .hero-buttons {
    flex-direction: column;
    padding: 0 2rem;
  }

  .btn {
    width: 100%;
  }
}

.section-header {
  max-width: 700px;
  margin: 0 auto 6rem auto;
}

.section-title {
  font-size: 4rem;
  font-weight: 700;
  font-family: var(--font-headings);
  color: var(--black);
  margin-bottom: 2rem;
}

.section-subtitle {
  font-size: 1.8rem;
  color: #666;
  line-height: 1.6;
}

.mt-4 {
  margin-top: 3rem;
}

/* =========================================
   SECCIÓN DE SERVICIOS (CARDS)
   ========================================= */
.services-section {
  background-color: #f9f9f9 !important;
  /* Always light */
  color: #000 !important;
}

.services-section .section-title {
  color: #000 !important;
}

.services-section .section-subtitle {
  color: #666 !important;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4rem;
}

.service-card {
  background-color: #fff !important;
  /* Always light */
  padding: 4rem 3rem;
  border-radius: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 34, 255, 0.1);
}

/* Iconos */
.icon-box {
  width: 70px;
  height: 70px;
  background-color: rgba(0, 34, 255, 0.1);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2.8rem;
  margin-bottom: 2.5rem;
  transition: all 0.3s ease;
}

.service-card:hover .icon-box {
  background-color: var(--secondary);
  color: var(--white);
}

/* Textos de la tarjeta */
.service-card h3 {
  font-family: var(--font-headings);
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #000 !important;
}

.service-card p {
  font-size: 1.6rem;
  color: #555 !important;
  margin-bottom: 3rem;
  line-height: 1.6;
  flex-grow: 1;
}

.read-more {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s ease;
}

.read-more i {
  transition: transform 0.3s ease;
}

.service-card:hover .read-more {
  color: var(--secondary);
}

.read-more:hover i {
  transform: translateX(5px);
}

.philosophy-section {
  padding: 10rem 0;
  background-color: var(--white);
}

.philosophy-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8rem;
  align-items: center;
}

.philosophy-content p {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: #444;
}

.philosophy-image img {
  width: 100%;
  height: auto;
  border-radius: 2rem;
  box-shadow: 20px 20px 0px var(--secondary);
  object-fit: cover;
}

/* Subtitle Wrapper */
.section-subtitle-wrapper {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.subtitle-line {
  width: 40px;
  height: 2px;
  background-color: var(--secondary);
  display: inline-block;
}

.subtitle-text {
  color: var(--secondary);
  font-family: var(--font-headings);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.4rem;
  letter-spacing: 1px;
}

/* Feature List */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 3rem 0;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  font-size: 1.8rem;
  font-weight: 600;
  color: #333;
}

.icon-circle {
  width: 30px;
  height: 30px;
  border: 1px solid var(--secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* Stats */
.stats-wrapper {
  display: flex;
  gap: 2rem;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid #eee;
}

/* Scroll Down Icon */
.scroll-down-icon {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 50px;
  border: 2px solid var(--white);
  border-radius: 50px;
  cursor: pointer;
  z-index: 10;
}

.scroll-down-icon span {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background-color: var(--white);
  border-radius: 50%;
  animation: scrollMouse 2s infinite;
}

@keyframes scrollMouse {
  0% {
    opacity: 1;
    top: 10px;
  }

  100% {
    opacity: 0;
    top: 30px;
  }
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.circle-chart-wrapper {
  width: 80px;
  height: 80px;
}

.circular-chart {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  max-height: 250px;
}

.circle-bg {
  fill: none;
  stroke: #eee;
  stroke-width: 2.5;
}

.circle {
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  transition: stroke-dasharray 1s ease-out;
}

.circular-chart.orange .circle {
  stroke: var(--secondary);
}

.percentage {
  fill: #333;
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 0.35em;
  /* Scaled relative to SVG viewbox */
  text-anchor: middle;
}

.stat-text {
  font-size: 1.6rem;
  line-height: 1.4;
  color: #555;
}

.stat-text strong {
  font-size: 1.8rem;
  color: #000;
  display: block;
}

/* Fade Up Animation */
.fade-up {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-out;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 991px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .philosophy-wrapper {
    grid-template-columns: 1fr;
  }

  .philosophy-image {
    order: -1;
    margin-bottom: 2rem;
  }

  .philosophy-image img {
    box-shadow: 10px 10px 0px var(--secondary);
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 3rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .section-header {
    margin-bottom: 4rem;
  }
}

/** Clients **/
.clients-section {
  padding: 6rem 0;
  background-color: var(--white);
  border-top: 1px solid #f0f0f0;
}

.clients-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: #555;
  /* Fixed contrast (was #888) */
  margin-bottom: 4rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.clients-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6rem;
}

.client-logo img {
  max-height: 50px;
  width: auto;
  filter: grayscale(100%);
  opacity: 0.5;
  transition: all 0.4s ease;
  cursor: pointer;
}

.client-logo img:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.1);
}

.cta-section {
  background-color: var(--primary);
}

/* Section Spacing */
.section {
  padding: 10rem 0;
  position: relative;
  /* Consistent spacing */
}

@media (max-width: 991px) {
  .section {
    padding: 4rem 0;
    /* Reduced general section padding on mobile */
  }
}

.cta-section::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle,
      rgba(255, 255, 255, 0.1) 0%,
      rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.cta-title {
  font-family: var(--font-headings);
  font-size: 5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--white);
}

.cta-subtitle {
  font-size: 2rem;
  font-weight: 400;
  opacity: 0.9;
  margin-bottom: 5rem;
  line-height: 1.6;
}

.btn-white {
  display: inline-block;
  background-color: var(--white);
  color: var(--primary);
  padding: 1.8rem 4.5rem;
  font-size: 1.8rem;
  font-weight: 700;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-white i {
  margin-left: 1rem;
}

.btn-white:hover {
  background-color: var(--secondary);
  color: var(--white);
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
  .clients-grid {
    gap: 3rem;
  }

  .client-logo img {
    max-height: 40px;
  }

  .cta-title {
    font-size: 3.2rem;
  }

  .cta-subtitle {
    font-size: 1.6rem;
  }

  .cta-section {
    padding: 6rem 0;
  }
}

/** Nosotros **/

.header-spacer {
  height: 120px;
  width: 100%;
  background-color: var(--white);
}

.manifesto-section {
  padding: 6rem 0 8rem 0;
  background-color: var(--white);
}

.eyebrow {
  font-size: 1.4rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  display: block;
  margin-bottom: 2rem;
  color: var(--secondary);
}

.manifesto-title {
  font-size: 5rem;
  line-height: 1.1;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 4rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.manifesto-text {
  max-width: 800px;
  margin: 0 auto;
}

.manifesto-text p {
  font-size: 2.2rem;
  /* Letra grande para dar importancia */
  line-height: 1.6;
  color: #444;
  margin-bottom: 2rem;
  font-weight: 400;
}

/* =========================================
   SECCIÓN B: VALORES
   ========================================= */
.values-section {
  background-color: #f8f9fa;
  /* Gris muy suave para separar secciones */
  padding: 10rem 0;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5rem;
}

.value-card {
  text-align: center;
}

.value-icon {
  font-size: 4rem;
  color: var(--primary);
  margin-bottom: 2.5rem;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 90px;
  height: 90px;
  background-color: var(--white);
  border-radius: 50%;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.value-card h3 {
  font-family: var(--font-headings);
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--black);
}

.value-card p {
  font-size: 1.6rem;
  line-height: 1.6;
  color: #555;
}

@media (max-width: 991px) {
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .header-spacer {
    height: 100px;
  }

  .manifesto-title {
    font-size: 3.2rem;
  }

  .manifesto-text p {
    font-size: 1.8rem;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }
}

/* Contacto **/

.contact-header {
  padding-bottom: 4rem;
  background-color: var(--white);
}

.contact-form-wrapper {
  padding-top: 0;
  padding-bottom: 8rem;
}

.form-card {
  background-color: var(--white);
  max-width: 800px;
  margin: -4rem auto 0 auto;
  padding: 5rem;
  border-radius: 2rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.form-group {
  margin-bottom: 3rem;
  position: relative;
}

.form-group label {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--black);
  font-family: var(--font-headings);
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 1.5rem 2rem;
  font-size: 1.6rem;
  font-family: var(--font-main);
  color: #333;
  background-color: #fff;
  border: 2px solid #e1e1e1;
  border-radius: 1rem;
  transition: all 0.3s ease;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(0, 34, 255, 0.1);
}

.select-wrapper {
  position: relative;
}

select {
  appearance: none;
  cursor: pointer;
}

.select-arrow {
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  pointer-events: none;
  font-size: 1.4rem;
}

.form-hint {
  display: block;
  margin-top: 0.8rem;
  font-size: 1.3rem;
  color: #888;
}

.btn-block {
  width: 100%;
  max-width: 400px;
  padding: 1.8rem;
  font-size: 1.8rem;
}


@media (max-width: 768px) {
  .form-card {
    padding: 3rem 2rem;
    margin-top: 0;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .btn-block {
    max-width: 100%;
  }
}

button.wpcf7-submit,
.btn-primary.wpcf7-submit {
  display: inline-flex !important;
  /* Obligatorio para usar gap */
  align-items: center !important;
  /* Centrado vertical perfecto */
  justify-content: center !important;
  /* Centrado horizontal */
  gap: 15px !important;
  /* AQUÍ ESTÁ EL ESPACIO (Cámbialo si quieres más/menos) */
}

/* 2. Reseteamos márgenes antiguos del icono para que no estorben */
button.wpcf7-submit i,
.btn-primary.wpcf7-submit i {
  margin: 0 !important;
  padding: 0 !important;
  transform: translateY(1px);
  /* Ajuste visual milimétrico si se ve alto */
}

/* =========================================
   PRELOADER
   ========================================= */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--white);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader {
  width: 50px;
  height: 50px;
  border: 4px solid transparent;
  border-top-color: var(--primary);
  /* Blue */
  border-bottom-color: var(--secondary);
  /* Orange */
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* =========================================
   SCROLL TO TOP BUTTON
   ========================================= */
#scrollTopBtn {
  display: none;
  /* Hidden by default */
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 99;
  border: none;
  outline: none;
  background-color: var(--secondary);
  color: var(--white);
  cursor: pointer;
  padding: 15px;
  border-radius: 50%;
  font-size: 1.8rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  width: 50px;
  height: 50px;
  align-items: center;
  justify-content: center;
}

#scrollTopBtn:hover {
  background-color: var(--primary);
  transform: translateY(-5px);
}

/* =========================================
   SERVICE CARD ANIMATIONS
   ========================================= */
.service-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out, box-shadow 0.3s ease;
}

.service-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hover Effects */
.service-card:hover {
  transform: translateY(-10px) scale(1.02);
  /* Slight zoom */
}

.service-card:hover .icon-box i {
  transform: rotate(15deg) scale(1.1);
  transition: transform 0.3s ease;
}

/* CTA Section */
.cta-section {
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--white);
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 34, 255, 0.9);
  /* Blue overlay overlay */
  border-radius: 0;
  /* Clear conflicting styles */
  z-index: 1;
}

.cta-section .container {
  position: relative;
  z-index: 2;
}

.cta-title {
  color: var(--white);
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.cta-subtitle {
  color: #ddd;
  font-size: 1.8rem;
  margin-bottom: 4rem;
}

/* =========================================
   QUIÉNES SOMOS - NUEVO DISEÑO (FULL WIDTH OVERLAY)
   ========================================= */

.hero-manifesto {
  width: 100%;
  min-height: 85vh;
  /* Full height feel */
  background-image: url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?ixlib=rb-1.2.1&auto=format&fit=crop&w=1600&q=80');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  /* Premium parallax feel */
  position: relative;
  align-items: center;
  justify-content: center;
  padding: 12rem 0 15rem 0;
  /* Reduced padding so white section starts sooner */
}

/* Dark Overlay */
.hero-manifesto::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(13, 27, 42, 0.85);
  /* Dark Blue #0d1b2a with high opacity for readability */
  z-index: 1;
}

.manifesto-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  /* Explicit auto margins for centering */
  text-align: center;
  /* Center everything */
  padding: 0 2rem;
}

.manifesto-content .eyebrow {
  color: var(--secondary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 1.6rem;
  display: block;
  margin-bottom: 2rem;
  text-align: center;
}

.manifesto-title {
  font-size: 6rem;
  line-height: 1.1;
  margin-bottom: 3rem;
  font-family: var(--font-headings);
  font-weight: 700;
  color: var(--white);
  text-align: center;
  /* Explicitly center title */
  width: 100%;
}

.manifesto-text p {
  font-size: 2rem;
  color: #e0e0e0;
  margin-bottom: 2rem;
  line-height: 1.7;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  /* Explicitly center paragraph text */
}

/* Values Section (Inside Hero - Absolute Positioned) */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 50%);
  /* The Magic: Moves it down 50% of its own height */
  width: 100%;
  max-width: 120rem;
  /* Match container max-width */
  padding: 0 2rem;
  /* Safety padding */
  z-index: 50;
}

/* Remove old section styles if any remain */
.values-section {
  display: none;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.value-card {
  background: var(--white);
  padding: 5rem 4rem;
  border-radius: 1.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-align: left;
}

.value-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.2);
}

.value-icon {
  width: 7rem;
  height: 7rem;
  background: rgba(0, 34, 255, 0.05);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  /* Circle icons as per reference feels more floating */
  font-size: 3rem;
  margin-bottom: 3rem;
  transition: all 0.3s ease;
}

.value-card:hover .value-icon {
  background: var(--primary);
  color: var(--white);
}

.value-card h3 {
  font-size: 2.2rem;
  font-family: var(--font-headings);
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--black);
}

.value-card p {
  font-size: 1.6rem;
  color: #666;
  line-height: 1.6;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .hero-manifesto {
    padding: 12rem 0 5rem 0;
    /* Reduced bottom padding to fix gap */
    min-height: auto;
    clip-path: none;
    /* Ensure no clipping on mobile */
  }

  .manifesto-title {
    font-size: 4rem;
  }

  /* Stack cards on mobile */
  .values-grid {
    position: relative;
    /* Reset absolute */
    bottom: auto;
    left: auto;
    transform: none;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 4rem;
    /* Space from text */
    padding-bottom: 0;
    /* Removed extra bottom padding from values grid */
  }
}

/* =========================================
   WHY CHOOSE US SECTION
   ========================================= */

.why-choose-us {
  /* Use padding-top to clear the overlapping cards on desktop */
  /* Cards overlap -50% (~150px) + Extra 10rem breathing room */
  padding-top: 25rem;
  padding-bottom: 10rem;
  background-color: var(--white);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.why-content .eyebrow {
  display: block;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
  border-left: 3px solid var(--secondary);
  padding-left: 1.5rem;
}

.section-title {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 2rem;
  color: var(--black);
}

.section-desc {
  font-size: 1.6rem;
  color: #666;
  line-height: 1.7;
  margin-bottom: 3rem;
  max-width: 500px;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 4rem 0;
}

.feature-list li {
  display: flex;
  align-items: center;
  font-size: 1.6rem;
  color: var(--black);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.feature-list li i {
  font-size: 2rem;
  margin-right: 1.5rem;
  color: var(--secondary);
}

.btn-brand {
  display: inline-block;
  background-color: var(--secondary);
  color: var(--white);
  padding: 1.2rem 3rem;
  border-radius: 5rem;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  border: 2px solid var(--secondary);
}

.btn-brand:hover {
  background-color: transparent;
  color: var(--secondary);
}

.why-image img {
  width: 100%;
  border-radius: 2rem;
  box-shadow: 20px 20px 0px var(--secondary);
  /* Orange shadow background */
}

/* =========================================
   TEAM SECTION
   ========================================= */

.team-section {
  padding: 10rem 0;
  background-color: #f9f9f9;
  /* Slight contrast from white */
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4rem;
  margin-top: 5rem;
}

.team-card {
  background-color: var(--white);
  border-radius: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: all 0.3s ease;
  text-align: center;
  padding-bottom: 3rem;
  position: relative;
}

.team-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.team-image {
  height: 350px;
  overflow: hidden;
  margin-bottom: 2rem;
  position: relative;
}

.team-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.team-card:hover .team-image img {
  transform: scale(1.1);
  filter: brightness(0.9);
}

/* Social Overlay Style (Desktop) */
.team-social {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 350px;
  /* Covers image only */
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  opacity: 0;
  transition: all 0.4s ease;
  z-index: 10;
  background: rgba(0, 0, 0, 0.3);
  /* Dark overlay */
}

.team-card:hover .team-social {
  opacity: 1;
}

.team-social a {
  width: 50px;
  height: 50px;
  background-color: var(--white);
  color: var(--primary);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  font-size: 2rem;
  transition: all 0.3s ease;
  transform: translateY(20px);
}

.team-card:hover .team-social a {
  transform: translateY(0);
}

.team-social a:hover {
  background-color: var(--secondary);
  color: var(--white);
}

/* Ensure Info has background */
.team-info {
  background: var(--white);
}

.team-info h3 {
  font-family: var(--font-headings);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 0.5rem;
}

.team-info .role {
  font-size: 1.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* =========================================
   METHODOLOGY TIMELINE
   ========================================= */

.methodology-section {
  padding: 8rem 0;
  background-color: var(--white);
  overflow: hidden;
}

.timeline-wrapper {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 4rem 0;
}

/* Central Line */
.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: #e1e1e1;
  transform: translateX(-50%);
  border-radius: 4px;
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 2rem 4rem;
  margin-bottom: 4rem;
}

/* Left items (Default) */
.timeline-item {
  left: 0;
  text-align: right;
  padding-right: 6rem;
}

/* Right items */
.timeline-item.right {
  left: 50%;
  text-align: left;
  padding-left: 6rem;
  padding-right: 4rem;
}

/* The Marker (Number Circle) */
.timeline-marker {
  position: absolute;
  top: 2rem;
  width: 60px;
  height: 60px;
  background: var(--white);
  border: 4px solid var(--primary);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: var(--font-headings);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary);
  z-index: 2;
  box-shadow: 0 0 0 8px var(--white);
  /* White halo to cut line */
}

/* Marker positioning */
.timeline-item .timeline-marker {
  right: -30px;
  /* Half width */
}

.timeline-item.right .timeline-marker {
  left: -30px;
  /* Half width */
  right: auto;
}

.timeline-content {
  background: var(--white);
  padding: 3rem;
  border-radius: 2rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
  position: relative;
}

.timeline-content:hover {
  transform: translateY(-5px);
}

.timeline-content h3 {
  color: var(--primary);
  font-size: 2.4rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.timeline-content p {
  font-size: 1.6rem;
  line-height: 1.6;
  color: #555;
  margin: 0;
}

/* Active State for Timeline (On Scroll) */
.timeline-item.active .timeline-marker {
  background-color: var(--secondary);
  color: var(--white);
  border-color: var(--secondary);
  box-shadow: 0 0 0 8px rgba(255, 100, 6, 0.2);
  /* Orange halo */
  transform: scale(1.1);
  transition: all 0.4s ease;
}

.timeline-item.active .timeline-content h3 {
  color: var(--secondary);
  transition: color 0.4s ease;
}

/* Mobile Responsive Timeline */
@media (max-width: 768px) {
  .timeline-line {
    left: 30px;
    /* Move line to left */
  }

  .timeline-item {
    width: 100%;
    left: 0;
    text-align: left;
    padding-left: 80px;
    /* Make space for marker */
    padding-right: 2rem;
  }

  .timeline-item.right {
    left: 0;
    padding-left: 80px;
    padding-right: 2rem;
  }

  .timeline-item .timeline-marker,
  .timeline-item.right .timeline-marker {
    left: 0;
    right: auto;
  }
}

/* =========================================
   FAQ SECTION
   ========================================= */
.faq-section {
  background-color: #f9f9f9;
  padding: 8rem 0;
}

.faq-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background-color: var(--white);
  border-radius: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 1px solid transparent;
  overflow: hidden;
  /* Ensure content stays inside border radius */
}

/* Active State Styles */
.faq-item.active {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 34, 255, 0.1);
}

.faq-question {
  padding: 3rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--white);
  transition: background-color 0.3s ease;
  user-select: none;
}

.faq-item.active .faq-question {
  background-color: #fdfdfd;
}

.faq-question h3 {
  font-size: 2.2rem;
  margin: 0;
  color: var(--black);
  font-weight: 700;
  font-family: var(--font-headings);
  padding-right: 2rem;
  transition: color 0.3s ease;
}

.faq-item.active .faq-question h3 {
  color: var(--primary);
}

/* Toggle Icon (Chevron) */
.faq-toggle {
  width: 30px;
  height: 30px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq-toggle::before,
.faq-toggle::after {
  content: '';
  position: absolute;
  background-color: var(--secondary);
  transition: transform 0.3s ease;
  border-radius: 2px;
}

/* Make a plus sign */
.faq-toggle::before {
  width: 2px;
  height: 14px;
}

.faq-toggle::after {
  width: 14px;
  height: 2px;
}

/* Rotate to minus when active */
.faq-item.active .faq-toggle::before {
  transform: rotate(90deg);
  /* Makes it horizontal like the other line, effectively a minus */
}

.faq-item.active .faq-toggle::after {
  transform: rotate(180deg);
}


.faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease, padding 0.4s ease;
  padding: 0 3rem;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  /* Arbitrary large height */
  opacity: 1;
  padding-bottom: 3rem;
  /* Add padding when open */
}

.faq-answer p {
  color: #555;
  font-size: 1.6rem;
  line-height: 1.6;
  margin: 0;
}

/* =========================================
   404 PAGE
   ========================================= */
.error-404 {
  padding: 20rem 0 10rem 0;
  /* Increased top padding for fixed header */
  text-align: center;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-body);
}

.code-404-wrapper h1 {
  font-size: 20rem;
  /* Very large 404 */
  line-height: 1;
  margin-bottom: 2rem;
  font-weight: 800;
  opacity: 0.1;
  /* Subtle */
}

@media (max-width: 768px) {
  .code-404-wrapper h1 {
    font-size: 12rem;
  }
}

/* =========================================
   PORTFOLIO SECTION
   ========================================= */
.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: transparent;
  border: 2px solid var(--primary);
  /* Blue outline */
  padding: 1rem 3rem;
  border-radius: 50px;
  font-size: 1.5rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--primary);
  /* Blue text */
  font-family: var(--font-headings);
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--secondary);
  background-color: var(--secondary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 100, 6, 0.3);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.portfolio-item {
  background: var(--white);
  border-radius: 2rem;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  opacity: 1;
  transform: scale(1);
}

.portfolio-item.hidden {
  display: none;
}

.portfolio-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.portfolio-thumb {
  height: 250px;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.portfolio-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-thumb img {
  transform: scale(1.05);
}

.portfolio-info {
  padding: 2.5rem;
  background: var(--white);
}

.portfolio-cat {
  display: block;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--secondary);
  font-weight: 700;
  margin-bottom: 1rem;
}

.portfolio-info h3 {
  font-size: 2rem;
  margin: 0;
  color: var(--black);
  font-weight: 700;
}

@media (max-width: 991px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   RESPONSIVE FIXES (Services & Why Choose Us)
   ========================================= */

/* Services Grid (Qué Hacemos) */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

@media (max-width: 991px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* Why Choose Us Grid (Quiénes Somos) */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 991px) {
  .why-choose-us {
    padding-top: 2rem !important;
    /* Small padding so text isn't cut off */
    margin-top: 0;
    /* consistent flow */
  }

  .why-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  /* Ensure text comes first or image comes first as preferred. 
       Usually image first is nice, or text. Standard block flow puts text first 
       as it is first in DOM. */
}

.why-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* =========================================
     TEAM RESPONSIVENESS (Mentes detrás de la Innovación)
     ========================================= */

@media (max-width: 991px) {

  /* Fix Team Grid Mobile */
  .team-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .team-card {
    padding-bottom: 2rem;
  }

  .team-image {
    height: 350px;
    margin-bottom: 1rem;
  }

  .team-image img {
    object-position: top center;
  }

  /* Mobile Social Icons: Static & Visible */
  .team-social {
    position: static;
    width: auto;
    height: auto;
    opacity: 1;
    background: transparent;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 1.5rem 0;
    /* Space around icons */
    padding: 0;
  }

  .team-social a {
    width: 45px;
    height: 45px;
    background-color: #f0f4f8;
    border-radius: 50%;
    box-shadow: none;
    transform: none !important;
    /* Disable hover float effect on mobile */
    color: var(--primary);
  }
}

/* =========================================
   CLIENTS SECTION STYLES
   ========================================= */

.clients-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 4rem;
  padding: 2rem 0;
}

.client-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 0 1 auto;
}

.client-logo img {
  width: auto;
  height: auto;
  max-width: 250px;
  max-height: 120px;
  /* Limit height to keep row consistent */
  display: block;
  transition: transform 0.3s ease;
  object-fit: contain;
}

.client-logo img:hover {
  transform: scale(1.05);
}

@media (max-width: 991px) {
  .clients-grid {
    gap: 3rem;
  }
}

@media (max-width: 576px) {
  .clients-grid {
    flex-direction: column;
    gap: 3rem;
  }

  .client-logo img {
    max-width: 200px;
    max-height: 100px;
  }
}