/* Main Styles */
:root {
  /* Color palette */
  --primary-color: #0015A0; /* Think TIC Blue */
  --primary-light: #1A2CB8;
  --primary-dark: #000D80;
  --accent-color: #FF3300; /* Think TIC Orange/Red */
  --accent-light: #FF5533;
  --accent-dark: #CC2900;
  --text-color: #1A1A1A;
  --text-light: #555555;
  --background-light: #FFFFFF;
  --background-gray: #F7F9FC;
  --success-color: #28A745;
  --warning-color: #FFC107;
  --error-color: #DC3545;
  
  /* Spacing */
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 32px;
  --spacing-xl: 48px;
  --spacing-xxl: 64px;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
  
  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

section {
  padding: var(--spacing-xl) 0;
  position: relative;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
  color: var(--text-color);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: var(--spacing-md);
  color: var(--text-light);
}

.highlight {
  color: var(--accent-color);
  font-weight: 700;
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.section-header h2 {
  margin-bottom: var(--spacing-sm);
}

.section-header p {
  max-width: 800px;
  margin: 0 auto var(--spacing-md);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 500;
  text-align: center;
  transition: all 0.3s ease;
  z-index: 2;
  position: relative;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
  box-shadow: var(--shadow-sm);
}

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

.btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background-color: rgba(0, 21, 160, 0.05);
  transform: translateY(-2px);
}

.btn-large {
  padding: 16px 32px;
  font-size: 1.1rem;
}

/* Header & Navigation */
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-sm) 0;
  height: 80px;
}

.logo img {
  height: 100px;
  width: auto;
}

.nav-list {
  display: flex;
  gap: var(--spacing-md);
}

.nav-list a {
  font-weight: 500;
  position: relative;
  padding: var(--spacing-xs) 0;
}

.nav-list a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

.nav-list a:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  cursor: pointer;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: var(--text-color);
  transition: all 0.3s ease;
}

/* Hero Section */
.hero-section {
  padding: 160px 0 100px;
  background: linear-gradient(135deg, #FFFFFF 0%, #F0F4FF 100%);
  overflow: hidden;
  position: relative;
  min-height: 100vh;
}

.hero-section .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-xxl);
  position: relative;
  z-index: 2;
}

.hero-content {
  flex: 1;
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-size: 2.8rem;
  margin-bottom: var(--spacing-md);
}

.hero-content .subtitle {
  font-size: 1.1rem;
  margin-bottom: var(--spacing-lg);
}

.hero-cta {
  display: flex;
  gap: var(--spacing-md);
  position: relative;
  z-index: 2;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  z-index: 2;
}

.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 1;
  transform: translateY(1px);
}

/* Benefits Section */
.benefits-section {
  background-color: var(--background-light);
  padding: var(--spacing-xxl) 0;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-lg);
}

.benefit-card {
  padding: var(--spacing-lg);
  background-color: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.benefit-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto var(--spacing-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 21, 160, 0.1);
  border-radius: 50%;
  color: var(--primary-color);
}

.benefit-icon i {
  font-size: 32px;
}

.benefit-card h3 {
  margin-bottom: var(--spacing-sm);
  font-size: 1.25rem;
}

.benefit-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* Why Us Section */
.why-us-section {
  background-color: var(--background-gray);
  padding: var(--spacing-xxl) 0;
}

.why-us-section .container {
  display: flex;
  align-items: center;
  gap: var(--spacing-xxl);
}

.why-us-content {
  flex: 1;
}

.why-us-grid {
  display: grid;
  gap: var(--spacing-md);
}

.why-us-item {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  background-color: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-us-item:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-md);
}

.why-us-icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 51, 0, 0.1);
  border-radius: 50%;
  color: var(--accent-color);
}

.why-us-icon i {
  font-size: 24px;
}

.why-us-text h3 {
  margin-bottom: var(--spacing-xs);
  font-size: 1.1rem;
}

.why-us-text p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

.why-us-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.why-us-image img {
  max-width: 90%;
  height: auto;
}

/* Services Section */
.services-section {
  background-color: var(--background-light);
  padding: var(--spacing-xxl) 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-lg);
}

.service-card {
  padding: var(--spacing-lg);
  background-color: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-top: 4px solid var(--primary-color);
}

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

.service-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 21, 160, 0.1);
  border-radius: 50%;
  color: var(--primary-color);
  margin-bottom: var(--spacing-md);
}

.service-icon i {
  font-size: 28px;
}

.service-card h3 {
  margin-bottom: var(--spacing-sm);
  font-size: 1.25rem;
}

.service-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: var(--spacing-md);
}

.service-features {
  list-style-type: none;
}

.service-features li {
  position: relative;
  padding-left: 25px;
  margin-bottom: var(--spacing-xs);
  color: var(--text-light);
  font-size: 0.9rem;
}

.service-features li::before {
  content: '\f00c';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  color: var(--accent-color);
  position: absolute;
  left: 0;
}

/* Testimonials Section */
.testimonials-section {
  background-color: var(--background-gray);
  padding: var(--spacing-xxl) 0;
}

.testimonials-slider {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
}

.testimonial-slide {
  display: none;
  animation: fadeEffect 1s;
}

.testimonial-slide.active {
  display: block;
}

.testimonial-content {
  background-color: white;
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-md);
}

.testimonial-text {
  margin-bottom: var(--spacing-md);
  font-style: italic;
  position: relative;
}

.testimonial-text::before {
  content: '\f10d';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  color: rgba(0, 21, 160, 0.1);
  font-size: 2rem;
  position: absolute;
  top: -10px;
  left: -10px;
  z-index: 0;
}

.testimonial-text p {
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.testimonial-author img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.author-info h4 {
  margin-bottom: 0;
  font-size: 1.1rem;
}

.author-info p {
  margin-bottom: 0;
  font-size: 0.9rem;
  color: var(--text-light);
}

.testimonial-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: var(--spacing-lg);
  gap: var(--spacing-md);
}

.testimonial-dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #DDD;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.dot.active {
  background-color: var(--primary-color);
}

.prev-testimonial, .next-testimonial {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.prev-testimonial:hover, .next-testimonial:hover {
  background-color: var(--primary-light);
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  padding: var(--spacing-xxl) 0;
  text-align: center;
  color: white;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.cta-content h2 {
  color: white;
  margin-bottom: var(--spacing-md);
  font-size: 2.2rem;
}

.cta-content p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--spacing-lg);
  font-size: 1.1rem;
}

/* Contact Section */
.contact-section {
  background-color: var(--background-light);
  padding: var(--spacing-xxl) 0;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xxl);
}

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

.contact-details {
  margin-bottom: var(--spacing-lg);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.contact-item i {
  font-size: 18px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 21, 160, 0.1);
  border-radius: 50%;
  color: var(--primary-color);
}

.social-media {
  display: flex;
  gap: var(--spacing-sm);
}

.social-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.social-icon:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-md);
}

.form-group {
  margin-bottom: var(--spacing-md);
}

.full-width {
  grid-column: span 2;
}

.contact-form label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-weight: 500;
  color: var(--text-color);
}

.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: var(--radius-md);
  background-color: #f9f9f9;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus, .contact-form textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(0, 21, 160, 0.1);
}

.error-message {
  color: var(--error-color);
  font-size: 0.8rem;
  margin-top: 5px;
  display: none;
}

.btn-submit {
  width: 100%;
  padding: 14px;
}

/* Success Message */
.success-message {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.success-message.show {
  opacity: 1;
  visibility: visible;
}

.success-content {
  background-color: white;
  padding: var(--spacing-xl);
  border-radius: var(--radius-md);
  text-align: center;
  max-width: 500px;
  width: 90%;
}

.success-content i {
  font-size: 64px;
  color: var(--success-color);
  margin-bottom: var(--spacing-md);
}

.success-content h3 {
  margin-bottom: var(--spacing-sm);
}

.success-content p {
  margin-bottom: var(--spacing-lg);
}

/* Footer */
.footer {
  background-color: #111827;
  color: white;
  padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.footer-logo img {
  margin-bottom: var(--spacing-sm);
}

.footer-logo p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.footer h3 {
  color: white;
  font-size: 1.1rem;
  margin-bottom: var(--spacing-md);
  position: relative;
  padding-bottom: var(--spacing-xs);
}

.footer h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--accent-color);
}

.footer ul li {
  margin-bottom: var(--spacing-xs);
}

.footer ul li a, .footer ul li {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}

.footer ul li a:hover {
  color: white;
}

.footer-newsletter p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--spacing-sm);
}

.newsletter-form {
  display: flex;
}

.newsletter-form input {
  flex: 1;
  padding: 10px;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(255, 255, 255, 0.05);
  color: white;
}

.newsletter-form button {
  padding: 10px 15px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--spacing-md);
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* =========================================
   NUEVAS SECCIONES: Casos de Éxito, Equipo, FAQ
   ========================================= */

/* --- Casos de Éxito --- */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.metric-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* Usa el color primario de tu marca, por defecto pongo un azul moderno */
    border-top: 4px solid var(--primary-color, #0056b3); 
}

.metric-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.sector-badge {
    display: inline-block;
    background: #f0f4f8;
    color: var(--primary-color, #0056b3);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.metric-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: #333;
}

.metric-card .location {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
}

.metric-card .location i {
    color: var(--primary-color, #0056b3);
    margin-right: 5px;
}

.metric-data {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.data-point {
    display: flex;
    flex-direction: column;
}

.data-point .number {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color, #0056b3);
    line-height: 1;
}

.data-point .label {
    font-size: 0.85rem;
    color: #555;
    margin-top: 5px;
    font-weight: 500;
}

.metric-desc {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}

/* --- Nuestro Equipo --- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.team-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--primary-color, #0056b3);
}

.team-info h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 5px;
}

.team-role {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color, #0056b3);
    margin-bottom: 20px;
}

.team-bio {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.7;
    text-align: justify;
}

/* --- Preguntas Frecuentes (FAQ) - Acordeón Animado --- */
.faq-accordion {
    max-width: 800px;
    margin: 40px auto 0;
}

.faq-item {
    background: #ffffff;
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    border-left: 3px solid transparent;
    transition: border-color 0.3s ease;
    overflow: hidden; /* Importante para que el texto no se salga al colapsar */
}

.faq-item:hover {
    border-left-color: var(--primary-color, #0056b3);
}

.faq-item h4 {
    font-size: 1.15rem;
    color: #333;
    margin: 0;
    font-weight: 600;
    cursor: pointer; /* Cambia el cursor para indicar que es clickeable */
    position: relative;
    padding-right: 30px;
    user-select: none;
}

/* El ícono de "+" a la derecha */
.faq-item h4::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--primary-color, #0056b3);
    transition: transform 0.3s ease;
}

/* El ícono cambia a "-" cuando está activo */
.faq-item.active h4::after {
    content: '-';
    transform: translateY(-50%) rotate(180deg);
}

/* Ocultamos la respuesta por defecto */
.faq-item p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
    max-height: 0; /* Lo colapsamos a altura cero */
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.4s ease, margin-top 0.4s ease;
}

/* Cuando le agregamos la clase "active" con JS, la respuesta se despliega */
.faq-item.active p {
    max-height: 300px; /* Una altura máxima segura para que quepa el texto */
    margin-top: 15px;
    opacity: 1;
}