/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@500;700&display=swap');

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading, var(--font-main));
  color: var(--primary-dark);
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
}

h1 {
  font-size: 3rem;
  font-weight: 700;
}

h2 {
  font-size: 2.5rem;
  font-weight: 700;
}

h3 {
  font-size: 1.75rem;
  font-weight: 600;
}

p {
  margin-bottom: var(--spacing-sm);
}

/* Layout Utilities */
.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

.section {
  padding: var(--spacing-lg) 0;
}

.text-center {
  text-align: center;
}

.text-primary {
  color: var(--primary);
}

.text-accent {
  color: var(--accent);
}

.grid {
  display: grid;
  gap: var(--spacing-md);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 768px) {

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--primary);
  color: var(--logo-white);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background-color: var(--accent);
  color: var(--primary-dark);
}

.btn-accent:hover {
  background-color: #bfa020;
  /* Darker gold */
  transform: translateY(-2px);
}

.btn-outline {
  border-color: var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn-outline:hover {
  background-color: var(--primary);
  color: white;
}

/* Components */
/* Header */
header {
  height: var(--header-height);
  background-color: var(--logo-white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.nav-menu {
  display: flex;
  gap: var(--spacing-md);
  align-items: center;
  /* Fix Vertical Alignment */
}

.nav-link {
  font-weight: 500;
  color: var(--text-main);
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
}

/* Ensure btn inside nav has white text */
.nav-link.btn-primary {
  color: var(--logo-white) !important;
}

.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: 80%;
    height: calc(100vh - var(--header-height));
    background: var(--logo-white);
    flex-direction: column;
    padding: var(--spacing-md);
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
  }

  .nav-menu.active {
    right: 0;
  }

  .mobile-toggle {
    display: block;
  }
}

/* Footer Section */
footer {
  background-color: var(--primary-dark);
  color: var(--logo-white);
  padding: var(--spacing-lg) 0 var(--spacing-md);
}

footer a:hover {
  color: var(--accent);
}

/* Form inputs */
input,
textarea,
select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--gray-400);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-sm);
  font-family: inherit;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
}

/* =========================================
   Slider Styles
   ========================================= */
.hero-slider {
  position: relative;
  width: 100%;
  height: 80vh;
  /* Full bleed height */
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.slide::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 51, 102, 0.4);
  /* Overlay */
  z-index: 1;
}

.slide-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  max-width: 800px;
  padding: 2rem;
  animation: fadeUp 1s ease-out 0.5s forwards;
  opacity: 0;
  transform: translateY(20px);
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-content h2 {
  font-size: 3.5rem;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  margin-bottom: 1rem;
}

.slide-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Slider Controls */
.slider-prev,
.slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: var(--transition);
}

.slider-prev:hover,
.slider-next:hover {
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary);
}

.slider-prev {
  left: 20px;
}

.slider-next {
  right: 20px;
}

/* =========================================
   Section Specifics
   ========================================= */
.card {
  background: white;
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--gray-200);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.card-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

/* Form Styles */
.contact-form {
  background: var(--gray-50);
  padding: 2rem;
  border-radius: var(--radius-lg);
}

/* Product Flip Cards Premium */
.product-flip-card {
  background-color: transparent;
  width: 100%;
  height: 350px;
  perspective: 1000px;
}

.product-flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-md);
}

.product-flip-card:hover .product-flip-inner {
  transform: rotateY(180deg);
}

.product-flip-front,
.product-flip-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  border: 1px solid var(--gray-200);
}

.product-flip-front {
  background-color: white;
  color: var(--primary-dark);
}

.product-flip-back {
  background-color: var(--primary);
  color: white;
  transform: rotateY(180deg);
}

.product-flip-front .card-icon {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.product-flip-back h3 {
  color: white;
  margin-bottom: 1rem;
}

.product-flip-back ul {
  text-align: left;
  padding-left: 0;
}

.product-flip-back ul li {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.product-list {
  text-align: left;
  margin-top: 1rem;
  padding-left: 0;
}

.product-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.product-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

.service-icon {
  width: 70px;
  height: 70px;
  background: var(--gray-50);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  font-size: 1.8rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.service-item:hover .service-icon {
  background: var(--primary);
  color: white;
  transform: rotateY(360deg);
  box-shadow: var(--shadow-lg);
}

.alliance-card {
  border-top: 4px solid var(--accent);
  text-align: center;
  transition: var(--transition);
}

.alliance-card:hover {
  background: var(--gray-50);
  border-top-color: var(--primary);
}

.alliance-card .card-icon {
  font-size: 2rem;
  color: var(--accent);
}

/* =========================================
   New Modules Styles
   ========================================= */

/* Stats Section */
.stats-section {
  background-color: var(--primary-dark);
  color: white;
  padding: 4rem 0;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1.1rem;
  color: var(--gray-200);
}

/* Team Section */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.team-card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--gray-200);
  text-align: center;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.team-img-wrapper {
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.team-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.team-card:hover .team-img {
  transform: scale(1.05);
}

.team-info {
  padding: 1.5rem;
}

.team-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.25rem;
}

.team-role {
  color: var(--accent);
  font-weight: 500;
  font-size: 0.9rem;
}

/* Clients Section */
/* Clients Section */
.clients-swiper .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
}

.client-logo {
  max-width: 140px;
  height: auto;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: var(--transition);
}

.client-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.1);
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 3px #999;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  animation: pulse-green 2s infinite;
}

.whatsapp-float:hover {
  background-color: #128c7e;
  transform: scale(1.1);
}

@keyframes pulse-green {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Café Con Fe Custom Styles */
.coffee-feature {
  background: white;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border-bottom: 3px solid #6f4e37;
}

.coffee-feature:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

/* Map Container */
.map-responsive {
  overflow: hidden;
  padding-bottom: 56.25%;
  position: relative;
  height: 0;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.map-responsive iframe {
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  position: absolute;
  border: 0;
}

/* Swiper Navigation Customization */
.swiper-button-next,
.swiper-button-prev {
  /* White arrow color */
  color: white !important;
  /* Corporate Blue background */
  background: var(--primary) !important;
  /* Force Circle Shape */
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  border-radius: 50% !important;

  /* Flex Centering */
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  /* Prevent Squashing */
  flex-shrink: 0;

  box-shadow: var(--shadow-sm);

  /* Reset margins if any */
  margin: 0 !important;
}

.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 0.9rem;
  /* Adjusted icon size */
  font-weight: bold;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: var(--primary-dark);
  /* Darker blue on hover */
  color: var(--accent);
  /* Gold icon on hover */
  box-shadow: var(--shadow-md);
}

/* Ensure pagination dots match theme */
.swiper-pagination-bullet-active {
  background: var(--primary) !important;
}