/* ============================================
   COMPLUS SA - Seguridad Informática
   Main Stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,700&display=swap');
:root {
  --red: #ff0011;
  --white: #ffffff;
  --black: #111111;
  --font-display: 'Hanken Grotesk', sans-serif;
  --font-body: 'Hanken Grotesk', sans-serif;
  --nav-height: 68px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--black);
  background: var(--white);
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--red);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  padding: 0 40px;
  gap: 0;
}

.navbar__logo {
  margin-right: 45px;
  flex-shrink: 0;
}

.navbar__logo img {
  height: 40px;
  width: 100%;
}

.navbar__logo-text {
  display: flex;
  flex-direction: column;
  color: var(--white);
}

.navbar__logo-text .logo-complus {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1;
}

.navbar__logo-text .logo-complus span {
  color: var(--white);
  opacity: 100;
}

.navbar__logo-text .logo-sub {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.5px;
  opacity: 0.85;
  margin-top: 1px;
}

.navbar__nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.navbar__nav a {
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  padding: 8px 16px;
  border-radius: 8px;
  transition: background 0.1s;
  white-space: nowrap;
}

.navbar__nav a:hover,
.navbar__nav a.active {
  background: rgba(255, 255, 255, 0.15);
}

.navbar__nav .dropdown-wrapper {
  position: relative;
}

.navbar__nav .dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.navbar__nav .dropdown-toggle::after {
  content: '▾';
  font-size: 16px;
}

.navbar__dropdown {
  display: none;
  position: absolute;
  top: 100%;
  padding-top: 8px;
  left: 0;
  background: var(--red);
  border-radius: 0px;
  overflow: visible;
  min-width: 200px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  z-index: 100;
}

.navbar__dropdown a {
  display: block;
  padding: 12px 20px;
  font-size: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: background 0.15s;
}

.navbar__dropdown a:first-child { border-radius: 8px 8px 0 0; }
.navbar__dropdown a:last-child  { border-radius: 0 0 8px 8px; border-bottom: none;}
.navbar__dropdown a:hover { background: rgba(255,255,255,0.15); }

.dropdown-wrapper:hover .navbar__dropdown { display: block; }

.navbar__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-left: auto;
  color: var(--white);
  padding-left: 20px;
  border-left: 1px solid rgba(255,255,255,0.25);
  flex-shrink: 0;
}

.navbar__right .city {
  font-size: 12px;
  font-weight: 400;
  opacity: 0.8;
}

.navbar__right .label {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* Language Toggle */
.lang-toggle {
  position: fixed;
  top: calc(var(--nav-height) + 16px);
  right: 20px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lang-toggle button {
  width: 44px;
  height: 28px;
  border: 2px solid var(--gray-mid);
  background: var(--white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s;
  color: var(--gray-text);
}

.lang-toggle button.active {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
}

/* Hamburger menu */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  margin-left: auto;
  padding: 8px;
}

.navbar__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 8px;
  transition: all 0.1s;
}

/* ============================================
   PAGE LAYOUT
   ============================================ */
.page {
  display: none;
  padding-top: var(--nav-height);
  min-height: 100vh;
}

.page.active { display: block; }

/* ============================================
   HOME PAGE
   ============================================ */
.home__hero {
  position: relative;
  height: 760px;
  overflow: hidden;
}

.home__hero-bg {
  height: max-content;
  width: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(100%) sepia(60%) hue-rotate(320deg) saturate(180%) brightness(0.6);
}

.home__hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 50%);
}

.home__hero-text {
  position: absolute;
  bottom: 60px;
  left: 40px;
  right: 40px;
  max-width: max-content;
}

.home__hero-text p {
  background: var(--red);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 20px;
  line-height: 1.7;
  padding: 26px 26px;
  font-style: var(--font-display);
  border-radius: 8px;
}

.home__hero-text p em {
  font-style: normal;
}

.home__hero-gif {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  pointer-events: none;
  z-index: 2;
}

/* Home Summary Cards */
.home__summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 50px;
  padding: 45px 55px 45px;
  background: var(--white);
  text-align: justify;
}

.home__summary-card h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 18px;
  color: var(--red);
  margin-bottom: 13px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.home__summary-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--black-text);
}

.home__summary-card p a,
.home__summary-card p strong {
  color: var(--red);
  font-weight: 800;
  cursor: pointer;
}

/* Home Images Row */
.home__images {
  display: flex;
  align-items: stretch;
  grid-template-columns: repeat(3, 1fr);
  gap: 55px;
  padding: 10px 45px 45px;
}

.home__images img {
  height: 640px;
  min-width: 0;
  object-fit: cover;
  object-position: 90% 64%;
  flex: 1 1 0;
  flex-shrink: 0;
  filter: grayscale(100%) sepia(50%) hue-rotate(320deg) saturate(160%) brightness(0.75);
  border-radius: 8px;
}

/* ============================================
   QUIENES SOMOS
   ============================================ */
.about__header {
  padding: 56px 45px 45px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  align-items: start;
}

.about__title {
  font-family: var(--font-display);
  font-size: 88px;
  font-weight: 900;
  color: var(--red);
  line-height: 0.9;
  letter-spacing: -2px;
  margin-bottom: 34px;
}

.about__intro {
  font-weight: 600;
  font-size: 20px;
  line-height: 1.75;
  text-align: justify;
}

.about__founder-img {
  width: 100%;
  max-width: 420px;
  height: 100%;
  max-height: 480px;
  object-fit: cover;
  object-position: top;
  filter: grayscale(100%);
  border-radius: 8px;
}

.about__founder-caption {
  font-size: 12px;
  color: var(--black);
  margin-top: 12px;
  font-style: italic;
}

.about__content {
  padding: 45px 45px 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
}

.about__section-title {
  font-family: var(--font-body);
  font-weight: 900;
  font-size: 18px;
  color: var(--black);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--black);
}

.about__section-title.red {
  color: var(--red);
  border-bottom-color: var(--red);
}

.about__text {
  font-size: 14px;
  line-height: 1.75;
  text-align: justify;
  margin-bottom: 18px;
}

.about__image-tech {
  width: 100%;
  height: 250px;
  object-fit: cover;
  filter: grayscale(100%) sepia(50%) hue-rotate(320deg) saturate(160%) brightness(0.7);
  border-radius: 8px;
  margin-top: 20px;
}

/* Values cards */
.values-card {
  border: 2px solid var(--red);
  border-radius: 8px;
  padding: 20px 20px 20px;
  margin-bottom: 16px;
}

.values-card h4 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  color: var(--red);
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.values-card p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--red);
  font-style: var(--font-display);
}

.values-card p em {
  font-style: normal;
  font-weight: 600;
}

/* ============================================
   SOCIOS / PARTNERS
   ============================================ */
.partners__header {
  padding: 56px 40px 32px;
}

.partners__title {
  font-family: var(--font-display);
  font-size: 88px;
  font-weight: 800;
  color: var(--red);
  line-height: 0.9;
  letter-spacing: -2px;
  margin-bottom: 34px;
}

.partners__subtitle {
  font-size: 20px;
  color: var(--black);
  line-height: 1.6;
  text-align: justify;
}

.partners__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 32px 40px 56px;
}

.partners__grid .partner-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  width: calc(50% - 12px);
  margin: 0 auto;
}

.partner-card {
  border: 2px solid var(--red);
  border-radius: 8px;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.partner-card img {
  max-height: 88px;
  max-width: 220px;
  object-fit: contain;
  filter: grayscale(100%);
  transition: filter 0.2s;
}

.partner-card:hover img {
  filter: none;                  
  opacity: 1;
}

.partner-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  color: var(--black);
  letter-spacing: -0.5px;
}

/* ============================================
   SERVICIOS & PRODUCTOS
   ============================================ */
.services__header {
  padding: 56px 40px 32px;
}

.services__title {
  font-family: var(--font-display);
  font-size: 88px;
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -2px;
  margin-bottom: 34px;
}

.services__title .word-services,
.services__title .word-products {
  color: var(--red);
  cursor: pointer;
  opacity: 0.3;
  transition: opacity 0.3s;
}

.services__title .word-services.active,
.services__title .word-products.active {
  opacity: 1;
}

.services__title .word-services:hover,
.services__title .word-products:hover {
  opacity: 0.7;
}

/* Sub-page tabs */
.services__tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 56px;
  border-bottom: 2px solid var(--gray-mid);
}

.services__tabs button {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 24px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray-text);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
  letter-spacing: 0.3px;
}

.services__tabs button:hover { color: var(--red); }

.services__tabs button.active {
  color: var(--red);
  border-bottom-color: var(--red);
}

/* Services list box */
.services-box {
  display: none;
  border: 2px solid var(--black);
  border-radius: 8px;
  padding: 24px 28px;
  max-width: 800px;
  margin-bottom: 56px;
}

.services-box.active { display: block; }

.services-box h3 {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}

.services-box ul li {
  font-size: 14px;
  line-height: 2;
  color: var(--gray-text);
  position: relative;
  padding-left: 14px;
}

.services-box ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--red);
}

/* Products accordion */
.products-accordion { margin-bottom: 40px; }

.accordion-item {
  border-bottom: 2px solid var(--red);
}

.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  cursor: pointer;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.5px;
  transition: color 0.2s;
  user-select: none;
}

.accordion-header:hover { color: var(--red); }

.accordion-header .arrow {
  font-size: 14px;
  transition: transform 0.3s;
  color: var(--red);
}

.accordion-header.open .arrow { transform: rotate(180deg); }

.accordion-content {
  display: none;
  padding: 0 0 24px;
  animation: slideDown 0.25s ease;
}

.accordion-content.open { display: block; }

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.accordion-content .two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.accordion-content ul li {
  font-size: 13px;
  line-height: 1.9;
  color: var(--gray-text);
  position: relative;
  padding-left: 14px;
}

.accordion-content ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--red);
}

.accordion-content ul li strong {
  color: var(--black);
  font-weight: 700;
}

.accordion-content h4 {
  font-weight: 700;
  font-size: 13px;
  color: var(--black);
  margin: 12px 0 4px;
}

/* Experience section */
.experience {
  padding: 0 40px 56px;
  border-top: 1px solid var(--gray-mid);
  margin-top: 12px;
  padding-top: 34px;
}

.experience h2 {
  font-family: var(--font-body);
  font-weight: 900;
  font-size: 18px;
  margin-bottom: 8px;
}

.experience__subtitle {
  font-size: 14px;
  color: var(--black);
  margin-bottom: 36px;
}

.experience-item {
  padding: 24px 0;
  border-left: 2px solid var(--red);
  padding-left: 24px;
  margin-bottom: 24px;
}

.experience-item h3 {
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.3px;
  margin-bottom: 10px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.experience-item p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--black);
  margin-bottom: 8px;
  text-align: justify;
}

.experience-item ul {
  padding-left: 24px;
  list-style: disc;
}

.experience-item ul li {
  font-size: 14px;
  line-height: 1.75;
  color: var(--gray-text);
}

/* ============================================
   CONTACTO
   ============================================ */
.contact__header {
  padding: 56px 40px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact__title {
  font-family: var(--font-display);
  font-size: 88px;
  font-weight: 800;
  color: var(--red);
  line-height: 0.9;
  letter-spacing: -2px;
  margin-bottom: 34px;
}

.contact__desc {
  font-size: 20px;
  line-height: 1.75;
  color: var(--gray-text);
  max-width: 460px;
  text-align: justify;
}

.contact__office-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  filter: grayscale(100%) sepia(50%) hue-rotate(320deg) saturate(160%) brightness(0.7);
  border-radius: 8px;
}

.contact__info {
  padding: 0 40px 40px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.contact__info-row {
  display: flex;
  gap: 22px;
}

.contact-box {
  border: 2px solid var(--red);
  border-radius: 8px;
  padding: 20px 28px;
  font-weight: 600;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex: 1;
}

.contact-box--full {
  flex: none;
  width: 100%;
}

.contact-box a { color: var(--black); transition: color 0.2s; }
.contact-box a:hover { color: var(--red); }

.contact-box a { color: var(--black); transition: color 0.2s; }
.contact-box a:hover { color: var(--red); }

.contact__city-img {
  width: calc(100% - 80px);
  margin: 0 40px 56px;
  height: 500px;
  object-fit: cover;
  object-position: center;
  filter: grayscale(100%) sepia(50%) hue-rotate(320deg) saturate(160%) brightness(0.7);
  border-radius: 8px;
}

/* ============================================
   FOOTER — rediseño compacto fondo blanco
   ============================================ */
.footer {
  background: var(--white);
  border-top: 4px solid var(--red);
  padding: 24px 45px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 0;
  align-items: center;
}

.footer__logo {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 0;
}

.footer__logo img {
  max-height: 100px;
  width: auto;
  object-fit: contain;
  object-position: left;
}

.footer-year {
  font-size: 10px;
  color: #ff0000;
  margin-top: 20px;
  font-style: italic;
}

.footer__contact {
  border-left: 2px solid #ff0000;
  border-right: 2px solid #ff0000;
  padding: 0 45px;
}

.footer__contact h4 {
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.8px;
  color: var(--red);
  margin-bottom: 6px;
  margin-top: 14px;
  text-transform: uppercase;
}

.footer__contact h4:first-child { margin-top: 0; }

.footer__contact p {
  font-size: 12px;
  color: #ff0000;
  margin-bottom: 3px;
  line-height: 1.6;
}

.footer__contact a {
  color: #ff0000;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

.footer__contact a:hover { color: var(--red); }

.footer__badges {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 0 0 45px;
}

.footer__badges p {
  font-size: 14px;
  color: #ff0000;
  margin-bottom: 8px;
  line-height: 1.4;
}

.footer__badges p em { font-style: italic; font-weight: 600; }

.footer__badges-grid {
  display: flex;
  flex-direction: row;
  gap: 14px;
  align-items: center;
}

.footer__badges-grid img {
  height: 50px;
  width: auto;
  object-fit: contain;
}

/* legacy — ocultos */
.footer__badges-row,
.footer-complus,
.footer__logo-text,
.footer-sub,
.badge-placeholder { display: none; }

/* ============================================
   MOBILE NAV MENU
   ============================================ */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0;
  background: var(--red);
  z-index: 999;
  padding: 20px 24px;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  color: var(--white);
  font-weight: 600;
  font-size: 16px;
  padding: 12px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: block;
}

.mobile-menu a:last-child { border-bottom: none; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .navbar__nav { display: none; }
  .navbar__right { display: none; }
  .navbar__hamburger { display: flex; }
  .navbar__logo { margin-right: auto; }

  .home__summary { grid-template-columns: 1fr 1fr; gap: 32px; padding: 40px 24px; }
  .home__images { grid-template-columns: 1fr; padding: 0 24px 40px; }
  .home__hero-text { left: 24px; right: 24px; }

  .about__header, .about__content, .contact__header {
    grid-template-columns: 1fr;
    padding: 40px 24px;
    gap: 32px;
  }

  .about__title, .partners__title, .services__title, .contact__title {
    font-size: 60px;
  }

  .partners__grid { grid-template-columns: 1fr 1fr; padding: 24px; }
  .partners__header { padding: 40px 24px 24px; }

  .services__header { padding: 40px 24px 24px; }
  .accordion-content .two-col { grid-template-columns: 1fr; }

  .contact__info { padding: 0 24px 32px; }
  .contact__city-img { width: calc(100% - 48px); margin: 0 24px 40px; }

  .footer { grid-template-columns: 1fr; padding: 24px; gap: 20px; }
  .footer__contact { border-left: none; border-right: none; border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; padding: 20px 0; }
  .footer__badges { padding: 0; }

  .lang-toggle { top: calc(var(--nav-height) + 8px); right: 12px; }

  .experience { padding: 32px 24px 40px; }
}

@media (max-width: 600px) {
  .home__summary { grid-template-columns: 1fr; }
  .partners__grid { grid-template-columns: 1fr; }
  .home__hero { height: 380px; }
  .home__hero-text p { font-size: 15px; }
  .about__title, .partners__title, .services__title, .contact__title { font-size: 48px; }
  .services__tabs button { padding: 10px 14px; font-size: 13px; }
}

/* Page transition */
.page { animation: fadeIn 0.3s ease; }

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