/** 
 * Grupo 3F Theme
 * Colors focused on red tone as requested
 */

 :root {
  --primary: #DC2626; /* Vibrant Red */
  --primary-dark: #991B1B; /* Dark Ruby Red */
  --primary-light: #FEE2E2;
  --bg-color: #FFFFFF;
  --bg-alt: #F9FAFB;
  --bg-dark: #111827;
  --text-main: #1F2937;
  --text-muted: #6B7280;
  --white: #FFFFFF;
  --border: #E5E7EB;
  --radius: 8px;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-red: 0 10px 15px -3px rgba(220, 38, 38, 0.3);
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background: var(--bg-color);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

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

ul {
  list-style: none;
}

/* Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-primary {
  color: var(--primary) !important;
}

.text-center {
  text-align: center;
}

.text-muted {
  color: var(--text-muted);
}

.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1.5rem; }

.section-padding {
  padding: 5rem 0;
}

.bg-light {
  background: var(--bg-alt);
}

.dark-section {
  background: var(--bg-dark);
  color: var(--white);
}

.dark-section .text-muted {
  color: #9CA3AF;
}

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

.rounded {
  border-radius: var(--radius);
}

.border-red {
  border: 4px solid var(--primary);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  border: none;
  font-family: var(--font-heading);
  text-align: center;
  transition: var(--transition);
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: var(--shadow-red);
  transform: translateY(-2px);
}

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

.btn-outline:hover {
  background: var(--white);
  color: var(--text-main);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-block {
  display: block;
  width: 100%;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: padding 0.3s ease;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--bg-dark);
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
}

.logo-img {
  max-height: 48px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a:not(.btn) {
  font-weight: 600;
  color: var(--text-main);
}

.nav-links a:not(.btn):hover {
  color: var(--primary);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-main);
  cursor: pointer;
}

/* Hero Section Updated */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  padding-bottom: 4rem;
  overflow: hidden;
  background-color: var(--bg-alt);
  background-image: radial-gradient(rgba(220, 38, 38, 0.08) 2px, transparent 2px);
  background-size: 24px 24px;
}

.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content-col {
  z-index: 2;
}

.hero-badge {
  background: rgba(220, 38, 38, 0.1);
  color: var(--primary);
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  color: var(--text-main);
}

.hero-title .text-primary {
  color: var(--primary) !important;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
}

.btn-outline-dark {
  background: transparent;
  color: var(--text-main);
  border: 2px solid var(--text-main);
}
.btn-outline-dark:hover {
  background: var(--text-main);
  color: var(--white);
}

/* Collage */
.hero-image-col {
  position: relative;
  height: 600px;
}

.hero-collage {
  position: relative;
  width: 100%;
  height: 100%;
}

.collage-img {
  position: absolute;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform 0.5s ease;
}

.collage-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.collage-img:hover {
  transform: translateY(-10px);
  z-index: 10;
}

.img-1 {
  top: 10%;
  left: 0;
  width: 60%;
  height: 50%;
  z-index: 3;
}

.img-2 {
  top: 40%;
  right: 0;
  width: 55%;
  height: 55%;
  z-index: 4;
}

.img-3 {
  bottom: 0;
  left: 10%;
  width: 45%;
  height: 40%;
  z-index: 2;
  opacity: 0.9;
}

/* Section Header */
.section-header {
  margin-bottom: 3.5rem;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--white);
  padding: 2.5rem 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

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

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card.highlight {
  background: var(--primary);
  color: var(--white);
  border: none;
}

.service-card.highlight p {
  color: rgba(255, 255, 255, 0.9);
}

.service-card.highlight .icon-box {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.icon-box {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

/* Split Layout */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.align-center {
  align-items: center;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(220, 38, 38, 0.1);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}

.dark-section .badge {
  background: rgba(220, 38, 38, 0.2);
  color: #FF4A4A;
}

.dark-section .text-primary {
  color: #FF4A4A !important;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.feature-list i {
  font-size: 1.25rem;
}

.img-wrapper {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.img-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.img-wrapper:hover img {
  transform: scale(1.05);
}

.highlight-red::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 4px solid var(--primary);
  pointer-events: none;
  border-radius: var(--radius);
}

/* Testimonials Slider */
.slider-wrapper {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.slider-container {
  flex: 1;
  overflow: hidden;
  position: relative;
  background: var(--white);
  padding: 3rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border-top: 4px solid var(--primary);
}

.slide {
  display: none;
  animation: fadeIn 0.5s ease;
}

.slide.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.quote-icon {
  font-size: 3rem;
  color: var(--primary-light);
  margin-bottom: 1rem;
}

.slide-text {
  font-size: 1.25rem;
  font-style: italic;
  margin-bottom: 2rem;
  color: var(--text-main);
}

.slide-author {
  font-size: 1.125rem;
  color: var(--primary);
}

.slide-role {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 1px;
}

.slider-btn {
  background: var(--white);
  border: 1px solid var(--border);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--text-main);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

/* FAQ Accordion */
.accordion-group {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.accordion-item {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  overflow: hidden;
}

.accordion-btn {
  width: 100%;
  text-align: left;
  padding: 1.5rem;
  background: none;
  border: none;
  font-size: 1.125rem;
  font-weight: 600;
  font-family: var(--font-heading);
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.accordion-btn:hover {
  color: var(--primary);
}

.accordion-btn i {
  color: var(--primary);
  transition: transform 0.3s ease;
}

.accordion-btn.active i {
  transform: rotate(45deg);
}

.accordion-content {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-muted);
}

.accordion-btn.active + .accordion-content {
  padding-bottom: 1.5rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

/* Contact Card */
.contact-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.contact-info {
  padding: 4rem;
}

.contact-form-container {
  padding: 4rem;
  background: var(--white);
}

.form .input-group {
  margin-bottom: 1.5rem;
}

.form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.form input, .form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  transition: var(--transition);
  background: var(--bg-alt);
}

.form input:focus, .form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
  background: var(--white);
}

/* Footer */
.footer {
  background: var(--bg-dark);
  color: var(--white);
  padding-top: 5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo {
  color: var(--white);
}

.brand-col .text-muted {
  max-width: 400px;
}

.footer-col h4 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

.footer-col ul li {
  margin-bottom: 0.75rem;
}

.footer-col ul li a {
  color: #9CA3AF;
}

.footer-col ul li a:hover {
  color: var(--primary);
  padding-left: 5px;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #9CA3AF;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--white);
  font-weight: 500;
}

.social-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  background: rgba(0,0,0,0.2);
  padding: 1.5rem 0;
  color: #9CA3AF;
  font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-title { font-size: 3rem; }
  .split-layout, .contact-card, .footer-grid, .hero-split {
    grid-template-columns: 1fr;
  }
  .contact-info, .contact-form-container {
    padding: 2rem;
  }
  .slider-wrapper {
    flex-direction: column;
  }
  .slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
  }
  .prev-btn { left: -10px; }
  .next-btn { right: -10px; }
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: var(--transition);
  }
  .nav-links.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
  .mobile-toggle {
    display: block;
  }
  .hero-actions {
    flex-direction: column;
  }
  .hero-title { font-size: 2.5rem; }
}
