/* ==========================================================
   JURO Spain: Master "Ferrari" CSS (Final Version)
   ========================================================== */

/* ----------------------------------------------------------
   1. VARIABLES & SETUP
   ---------------------------------------------------------- */
:root {
  /* BRAND COLORS */
  --sp-red: #E30613;
  --gold-color: #FFC400; 
  
  /* DEFAULT THEME (Original Light) */
  --bg-primary: #fcfcfc;
  --bg-secondary: #ffffff;
  --text-primary: #232323;
  --text-muted: #64748b;
  --border-light: #e2e8f0;
  --btn-text: #ffffff;
  
  /* SPACING & UTILS */
  --sp-radius: 6px;
  --sp-font-heavy: 'Oswald', sans-serif;
  --sp-font-body: 'Arial', sans-serif;
  --sp-max-width: 1200px;
  
  /* SHADOWS */
  --elev-1: 0 2px 6px rgba(0,0,0,0.06);
  --elev-2: 0 6px 12px rgba(0,0,0,0.12);
  --elev-3: 0 10px 20px rgba(0,0,0,0.15);
}

/* ----------------------------------------------------------
   2. BASE STYLES & TEXTURE
   ---------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--sp-font-body);
  line-height: 1.6;
  margin: 0;
  font-size: 16px;
  transition: background-color 0.3s ease, color 0.3s ease;

  /* TWEAK: THE TECH-GRID TEXTURE */
  background-image: 
      linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
      linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  background-position: center top;
}

h1, h2, h3 {
  font-family: var(--sp-font-heavy);
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

h1 {
  font-size: 3rem;
  text-align: center;
  color: var(--sp-red);
  letter-spacing: -1px;
}

h2 {
  font-size: 2rem;
  border-bottom: 3px solid var(--gold-color);
  padding-bottom: 0.5rem;
  margin-top: 3rem;
  color: var(--text-primary);
}

h3 {
  font-size: 1.25rem;
  color: var(--sp-red);
  margin-top: 0;
}

p { margin-bottom: 1rem; color: inherit; }
.center { text-align: center; }
.small { font-size: 0.9rem; color: var(--text-muted); }
.container { max-width: var(--sp-max-width); margin: 0 auto; padding: 0 1.5rem; }

hr {
  border: 0;
  border-top: 1px solid var(--border-light);
  margin: 3rem 0;
}

/* ----------------------------------------------------------
   3. BUTTONS (Standard & Variants)
   ---------------------------------------------------------- */
.btn {
  background: var(--sp-red);
  color: #ffffff !important;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: var(--sp-radius);
  display: inline-block;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  font-family: var(--sp-font-heavy);
  box-shadow: 0 2px 5px rgba(227, 6, 19, 0.2);
}

.btn:hover {
  background: #c40410;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(227, 6, 19, 0.3);
}

.btn-white {
    background-color: #ffffff !important;
    color: #1e293b !important;
    border-color: #ffffff !important;
}

.btn-outline {
    background-color: transparent !important;
    color: var(--sp-red) !important;
    border: 2px solid var(--sp-red) !important;
    box-shadow: none !important;
}
.btn-outline:hover {
    background-color: var(--sp-red) !important;
    color: #ffffff !important;
}

/* ----------------------------------------------------------
   4. HEADER & NAVIGATION (Glassmorphism Added)
   ---------------------------------------------------------- */
.site-header {
  background-color: var(--bg-secondary);
  /* TWEAK: Glass Effect */
  backdrop-filter: blur(12px); 
  -webkit-backdrop-filter: blur(12px);
  opacity: 0.98; /* Allows slight see-through for the blur */
  
  border-bottom: 3px solid var(--gold-color);
  box-shadow: var(--elev-1);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0; /* Adjusted for fixed height in layout */
  height: 90px;
  display: flex;
  align-items: center;
  transition: background-color 0.3s ease;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.site-title {
  font-family: var(--sp-font-heavy);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--sp-red);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2.5rem; /* Increased spacing for premium feel */
}

.site-nav a {
  font-family: var(--sp-font-heavy);
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.95rem;
  transition: color 0.2s;
  letter-spacing: 0.5px;
}

.site-nav a:hover { color: var(--sp-red); }

/* DROPDOWN MENU */
.dropdown-container {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
    padding: 10px 0; /* Bridge fix */
}

.dropdown-trigger {
    font-family: var(--sp-font-heavy);
    color: var(--text-primary);
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.dropdown-trigger:hover { color: var(--sp-red); }

/* Clean Arrow */
.dropdown-trigger::after {
    content: '';
    display: inline-block;
    margin-left: 8px;
    width: 0; height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid currentColor;
    vertical-align: middle;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--bg-secondary);
    min-width: 220px;
    box-shadow: var(--elev-3);
    border-radius: var(--sp-radius);
    border: 1px solid var(--border-light);
    padding: 0.5rem 0;
    z-index: 10000;
}

.dropdown-container:hover .dropdown-menu { display: block; }

.dropdown-menu a {
    display: block;
    padding: 12px 24px;
    border-bottom: 1px solid var(--border-light);
    text-transform: none;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
}
.dropdown-menu a:hover { background-color: var(--bg-primary); color: var(--sp-red); }

/* ----------------------------------------------------------
   5. USA BANNER (Global Styles)
   ---------------------------------------------------------- */
.usa-promo-banner {
    background: #002868; /* US Flag Blue */
    color: white !important;
    padding: 12px 0;
    overflow: hidden;
    position: relative;
    border-bottom: 4px solid #bf0a30; /* US Flag Red */
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1.5px;
    z-index: 10001;
    display: block;
    text-decoration: none;
    cursor: pointer;
}

.usa-promo-banner:hover { background: #001f54; }

.banner-track {
    display: flex;
    width: 200%;
    animation: scrollBanner 25s linear infinite;
}

.banner-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    white-space: nowrap;
}

@keyframes scrollBanner {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.usa-flag-icon { width: 24px; height: auto; border-radius: 2px; }

/* ----------------------------------------------------------
   6. CARDS & GRIDS
   ---------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--sp-radius);
  padding: 2rem;
  box-shadow: var(--elev-1);
  transition: transform 0.3s, box-shadow 0.3s;
  height: 100%;
  display: flex;
  flex-direction: column;
  color: var(--text-primary);
}

.card:hover { transform: translateY(-4px); border-color: var(--gold-color); }

/* ----------------------------------------------------------
   7. FOOTER & MOBILE
   ---------------------------------------------------------- */
.site-footer {
  background: var(--bg-secondary);
  color: var(--text-primary);
  padding: 4rem 0 2rem;
  margin-top: 5rem;
  border-top: 1px solid var(--border-light);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 { color: inherit; border-bottom: none; }
.footer-section a { color: inherit; opacity: 0.8; text-decoration: none; }

/* WHATSAPP FLOAT */
.whatsapp-float {
    position: fixed; width: 62px; height: 62px; bottom: 30px; left: 30px;
    background-color: #25d366; border-radius: 50px; display: flex;
    align-items: center; justify-content: center; box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
    z-index: 999; text-decoration: none; transition: 0.3s;
}
.whatsapp-float:hover { transform: scale(1.1); background-color: #128c7e; }

@media (max-width: 900px) {
    .site-header .container { flex-wrap: wrap; }
    .site-nav {
        display: none; width: 100%; flex-direction: column; 
        position: fixed; top: 90px; left: 0; background: var(--bg-secondary);
        padding: 2rem; border-bottom: 5px solid var(--sp-red);
        box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    }
    .site-nav.active { display: flex; }
    .site-nav a, .dropdown-trigger { width: 100%; padding: 1rem 0; border-bottom: 1px solid var(--border-light); justify-content: center; }
    
    .dropdown-menu { position: static; display: block; transform: none; box-shadow: none; border: none; background: rgba(0,0,0,0.03); text-align: center; }
    .dropdown-trigger::after { display: none; }
    
    .header-actions .btn { display: none; }
}
