/* =============================================
   SERVITONERS - HTML5 REPLICA
   CSS3 Modular - Responsive
   ============================================= */

/* --- Variables de color corporativo --- */
:root {
  --primary: #00AEEF;
  --header-bg: #000000;
  --footer-main: #0a0a0a;
  --footer-bar: #000000;
  --white: #ffffff;
  --text-dark: #111111;
  --text-mid: #555555;
  --text-light: #666666;
  --text-footer: #dcdcdc;
  --text-copy: #aaaaaa;
  --product-btn-bg: #5e5e5e;
  --product-btn-hover: #333333;
  --font-title: 'El Messiri', serif;
  --font-body: 'Roboto', sans-serif;
}

/* --- Reset / Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: #f7f8f9;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* =============================================
   HEADER
   ============================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--header-bg);
  min-height: 70px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.header-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* Logo */
.site-logo a {
  font-family: var(--font-title);
  font-size: 36px;
  font-weight: 700;
  font-style: italic;
  color: var(--white);
  text-shadow: 0 0 10px rgba(0,0,0,0.3);
  letter-spacing: 1px;
}
.site-logo a:hover { opacity: 0.9; }

/* Navigation */
.main-nav { flex: 1; display: flex; justify-content: center; }
.main-nav ul { display: flex; gap: 30px; }
.main-nav ul li a {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--white);
  padding: 5px 0;
  position: relative;
  transition: opacity 0.2s;
}
.main-nav ul li a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 2px;
  background: var(--primary);
  transition: width 0.25s;
}
.main-nav ul li a:hover::after,
.main-nav ul li a.active::after { width: 100%; }
.main-nav ul li a:hover { opacity: 0.85; }

/* Social icons & Search in header */
.header-socials { display: flex; align-items: center; gap: 4px; }
.header-socials a {
  width: 34px; height: 34px;
  border-radius: 2px;
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: 15px;
  transition: transform 0.2s, opacity 0.2s;
}
.header-socials a:hover { opacity: 0.88; }

/* Search toggle */
.header-search { display: flex; align-items: center; margin-left: 4px; }
.search-toggle {
  width: 34px; height: 34px;
  border-radius: 2px;
  background: var(--primary);
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: 14px;
  transition: opacity 0.2s;
}
.search-toggle:hover { opacity: 0.88; }

/* Modern Search Modal */
.search-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2500;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease-out;
}
.search-modal.open { display: flex; }

.search-box {
  position: relative;
  background: #111111;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 28px;
  width: 100%;
  max-width: 580px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 35px rgba(0, 174, 239, 0.15);
  color: #ffffff;
  animation: slideUp 0.25s ease-out;
}

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

.search-close {
  position: absolute;
  top: 18px; right: 20px;
  background: rgba(255,255,255,0.08);
  border: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}
.search-close:hover {
  background: #00AEEF;
  transform: rotate(90deg);
}

.search-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.search-icon-head {
  font-size: 20px;
  color: #00AEEF;
}
.search-header h3 {
  font-family: var(--font-body);
  font-size: 19px;
  font-weight: 600;
  color: #ffffff;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}
.search-input-icon {
  position: absolute;
  left: 16px;
  color: #888888;
  font-size: 16px;
  pointer-events: none;
}
.search-input-wrapper input[type="search"] {
  width: 100%;
  padding: 14px 48px 14px 44px;
  font-size: 15px;
  background: #1c1c1c;
  color: #ffffff;
  border: 1.5px solid #333333;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
  font-family: var(--font-body);
}
.search-input-wrapper input[type="search"]:focus {
  border-color: #00AEEF;
  box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.25);
}
.search-submit-btn {
  position: absolute;
  right: 6px;
  width: 36px; height: 36px;
  background: #00AEEF;
  border: none;
  border-radius: 6px;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: background 0.2s;
}
.search-submit-btn:hover { background: #0096db; }

/* Popular tags */
.search-quick-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #999999;
}
.search-quick-tags span {
  font-weight: 500;
  font-size: 12px;
}
.search-tag {
  background: #222222;
  border: 1px solid #333333;
  color: #cccccc;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  font-family: var(--font-body);
}
.search-tag:hover {
  background: #00AEEF;
  color: #ffffff;
  border-color: #00AEEF;
}

/* Results container */
.search-results {
  margin-top: 14px;
  max-height: 240px;
  overflow-y: auto;
}
.search-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid #222222;
  border-radius: 6px;
  transition: background 0.2s;
  cursor: pointer;
  color: #eeeeee;
  text-decoration: none;
}
.search-result-item:hover {
  background: #1a2732;
  color: #00AEEF;
}
.search-result-title {
  font-weight: 500;
  font-size: 14px;
}
.search-result-tag {
  font-size: 11px;
  background: #00AEEF;
  color: #ffffff;
  padding: 2px 8px;
  border-radius: 4px;
}

/* Hamburger (mobile) */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 5px;
}
.menu-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  transition: all 0.3s;
}

/* =============================================
   SLIDER
   ============================================= */
.hero-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #000;
}
.slider-track {
  display: flex;
  transition: transform 0.7s ease;
  will-change: transform;
}
.slide {
  min-width: 100%;
  position: relative;
}
.slide img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Overlay text on slide */
.slide-overlay {
  position: absolute;
  top: 50%; right: 5%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.55);
  color: var(--white);
  padding: 20px 25px;
  max-width: 340px;
  text-align: right;
  border-radius: 4px;
}
.slide-overlay h2 {
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.3;
  margin-bottom: 12px;
  font-family: var(--font-body);
}
.slide-overlay .slide-brands {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
}
.slide-overlay .slide-brands img {
  height: 32px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.slide-overlay .slide-brands .brand-hp { filter: none; height: 30px; }
.slide-overlay .slide-brands .brand-canon { filter: none; height: 30px; }

/* Slider Arrows */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: none;
  cursor: pointer;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: 20px;
  z-index: 10;
  transition: background 0.2s;
}
.slider-arrow:hover { background: rgba(255,255,255,0.35); }
.slider-prev { left: 15px; }
.slider-next { right: 15px; }

/* Divider bar below slider */
.primary-bar {
  background: var(--primary);
  height: 32px;
}

/* =============================================
   BRANDS SECTION
   ============================================= */
.brands-section {
  background: var(--white);
  padding: 40px 20px;
  text-align: center;
}
.brands-section h3.title-main {
  font-family: var(--font-body);
  font-size: 30px;
  font-weight: 400;
  color: #000;
  margin-bottom: 6px;
}
.brands-section h3.title-sub {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 400;
  color: #000;
  margin-bottom: 30px;
}

/* HP logo row */
.brands-hp-row {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}
.brands-hp-row img { max-width: 200px; }

/* Brands row: Canon, Samsung, Lexmark, Delcop */
.brands-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 25px;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
}
.brands-grid img {
  max-width: 180px;
  height: 55px;
  object-fit: contain;
}

/* =============================================
   PARALLAX BANNER
   ============================================= */
.parallax-section {
  position: relative;
  min-height: 320px;
  background: url('../img/banners/parallax1.png') center center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px 20px;
}
.parallax-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}
.parallax-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--white);
  max-width: 800px;
}
.parallax-content h2 {
  font-family: var(--font-body);
  font-size: 30px;
  font-weight: 500;
  text-shadow: 0 0 15px #070001;
  margin-bottom: 12px;
}
.parallax-content p {
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 500;
  text-shadow: 0 0 15px #070001;
  line-height: 1.4;
}

/* =============================================
   LINKING BAR ("Linkeando")
   ============================================= */
.link-bar {
  background: var(--primary);
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.link-bar h3 {
  font-family: var(--font-body);
  font-size: 30px;
  font-weight: 500;
  color: var(--white);
  text-shadow: 0 0 10px rgba(0,0,0,0.3);
}

/* =============================================
   PRODUCTS GRID
   ============================================= */
.products-section {
  padding: 50px 20px;
  background: #f7f8f9;
}
.products-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* Product Card */
.product-card {
  background: var(--white);
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}
.product-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.13); }

/* Product image + overlay */
.product-media {
  position: relative;
  overflow: hidden;
}
.product-media img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
.product-card:hover .product-media img { transform: scale(1.04); }
.product-thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}
.product-card:hover .product-thumb-overlay { opacity: 1; }
.product-thumb-overlay a {
  background: var(--primary);
  color: var(--white);
  padding: 9px 22px;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font-body);
}

/* Product details */
.product-details {
  padding: 22px 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.product-details h2 {
  font-size: 17px;
  font-weight: 700;
  color: #111111;
  margin-bottom: 12px;
  font-family: var(--font-body);
}
.product-details h2 a { color: #111111; }
.product-details h2 a:hover { color: var(--primary); }
.product-details p {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.5;
  margin-bottom: 16px;
  flex: 1;
  font-family: var(--font-body);
  text-align: center;
}
.product-ref {
  font-weight: 700;
  font-size: 18px;
  color: var(--text-dark);
  font-family: var(--font-body);
  margin-bottom: 16px;
}
.product-btn {
  display: inline-block;
  background: var(--product-btn-bg);
  color: var(--white);
  padding: 10px 24px;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font-body);
  text-align: center;
  transition: background 0.2s;
}
.product-btn:hover { background: var(--product-btn-hover); }

/* =============================================
   WHATSAPP / CONTACT BANNER
   ============================================= */
.contact-banner {
  position: relative;
  min-height: 260px;
  background: url('../img/banners/W.jpg') center center / cover no-repeat;
  display: flex;
  align-items: center;
}
.contact-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}
.contact-banner-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
  display: flex;
  justify-content: flex-end;
}
.contact-text {
  max-width: 480px;
  color: var(--white);
  text-align: center;
}
.contact-text h1.title-fast {
  font-family: var(--font-body);
  font-size: 30px;
  font-weight: 500;
  text-shadow: 0 0 10px #070001;
  margin-bottom: 8px;
}
.contact-text h1.title-sub {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 500;
  text-shadow: 0 0 10px #070001;
  margin-bottom: 14px;
}
.contact-text h2.contact-nums {
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.5;
  text-shadow: 0 0 10px #070001;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer { }

.footer-main {
  background: var(--footer-main);
  padding: 40px 20px;
}
.footer-box {
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
  padding: 10px;
}
.footer-logo {
  font-family: var(--font-title);
  font-size: 30px;
  font-weight: 700;
  font-style: italic;
  color: var(--white);
  display: block;
  margin-bottom: 15px;
}
.footer-logo:hover { opacity: 0.9; }
.footer-desc {
  color: var(--text-footer);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 20px;
}

/* Footer social icons */
.footer-socials {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
}
.footer-socials a {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  color: #ffffff !important;
  transition: transform 0.2s, opacity 0.2s;
}
.footer-socials a i { color: #ffffff !important; }
.footer-socials a:hover { transform: scale(1.12); opacity: 0.9; }
.icon-wa1   { background: #25D366 !important; }
.icon-mail  { background: #EA4335 !important; }
.icon-insta { background: #E1306C !important; }

/* Footer bottom bar */
.footer-bar {
  background: var(--footer-bar);
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
}
.footer-bar p {
  color: var(--text-copy);
  font-family: var(--font-body);
  font-size: 13px;
  text-align: center;
  line-height: 1.5;
}
.footer-bar a { color: var(--text-copy); text-decoration: underline; }
.footer-bar a:hover { color: var(--white); }

/* =============================================
   FLOATING WHATSAPP WIDGET
   ============================================= */
.float-wa {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 0;
}
.float-wa-btn {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: #25D366 !important;
  color: #ffffff !important;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s, background-color 0.2s;
  border: none;
  position: relative;
}
.float-wa-btn:hover { transform: scale(1.08); background: #20ba5a; }
.float-wa-btn i { color: #ffffff !important; font-size: 28px !important; }

.float-wa-label {
  display: none;
  background: var(--white);
  color: var(--text-dark);
  font-size: 13px;
  padding: 7px 14px;
  border-radius: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  white-space: nowrap;
  margin-right: 10px;
  font-family: var(--font-body);
}
.float-wa:hover .float-wa-label { display: block; }

/* =============================================
   PAGES: QUIENES SOMOS
   ============================================= */
.page-section {
  padding: 60px 20px;
  background: var(--white);
}
.page-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.page-text h2 {
  font-family: var(--font-body);
  font-size: 28px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 20px;
}
.page-text p {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 15px;
}
.page-img img {
  border-radius: 4px;
  width: 100%;
  object-fit: cover;
}

/* =============================================
   PAGES: CONTACTO
   ============================================= */
.contact-page-section {
  padding: 60px 20px;
  background: var(--white);
}
.contact-page-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.contact-page-inner h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-dark);
}
.contact-page-inner .contact-info {
  font-size: 15px;
  color: var(--text-mid);
  margin-bottom: 30px;
  line-height: 1.6;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.contact-form label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 4px;
  margin-top: 14px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: 14px;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--primary); }
.contact-form textarea { resize: vertical; min-height: 110px; }
.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.btn-submit {
  margin-top: 20px;
  background: var(--primary);
  color: var(--white);
  padding: 11px 30px;
  border: none;
  border-radius: 3px;
  font-size: 15px;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background 0.2s;
}
.btn-submit:hover { background: #006faa; }
.contact-map img {
  border-radius: 4px;
  width: 100%;
  object-fit: cover;
  max-height: 380px;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .products-grid { grid-template-columns: 1fr 1fr; }
  .page-inner { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  /* Header */
  .site-header { min-height: 60px; }
  .header-inner { padding: 0 10px; gap: 6px; }
  .site-logo a { font-size: 26px; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--header-bg);
    padding: 15px 20px 20px;
    flex-direction: column;
    align-items: flex-start;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .main-nav.open { display: flex; }
  .main-nav ul { flex-direction: column; gap: 12px; }
  .menu-toggle { display: flex; }

  /* Header icon buttons mobile sizing */
  .header-socials a, .search-toggle {
    width: 30px; height: 30px;
    font-size: 13px;
  }

  /* Hero Slider Mobile Fix - Full image scaling without clipping */
  .hero-slider { min-height: auto; }
  .slide img {
    width: 100%;
    height: auto;
    min-height: 120px;
    max-height: 260px;
    object-fit: contain;
    background: #000;
  }
  .slider-arrow {
    width: 28px; height: 28px;
    font-size: 12px;
    background: rgba(0, 0, 0, 0.45);
  }
  .slider-prev { left: 4px; }
  .slider-next { right: 4px; }

  /* Parallax */
  .parallax-section { padding: 40px 15px; min-height: 240px; }
  .parallax-content h2 { font-size: 20px; }
  .parallax-content p { font-size: 15px; }

  /* Brands section */
  .brands-grid img { max-width: 120px; height: 40px; }

  /* Products */
  .products-grid { grid-template-columns: 1fr; max-width: 380px; }

  /* Contact banner */
  .contact-banner-inner { justify-content: center; }
  .contact-text h1.title-fast { font-size: 24px; }
  .contact-text h1.title-sub { font-size: 16px; }
  .contact-text h2.contact-nums { font-size: 18px; }

  /* Page */
  .page-inner { grid-template-columns: 1fr; gap: 30px; }
  .contact-form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .site-logo a { font-size: 22px; }
  .header-socials { gap: 2px; }
  .header-socials a, .search-toggle { width: 28px; height: 28px; font-size: 12px; }
  .slide img {
    width: 100%;
    height: auto;
    min-height: 100px;
    max-height: 200px;
    object-fit: contain;
  }
  .float-wa-btn { width: 48px; height: 48px; }
}
