/*
 Theme Name:   BTK SRL Theme
 Theme URI:    https://btk.com.ar
 Description:  Tema desarrollado para BTK SRL, basado en GeneratePress.
 Author:       Juan Pablo Moris
 Author URI:   https://github.com/jpmoris
 Template:     generatepress
 Version:      1.0
*/

/* inter-regular */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/Inter-Regular.woff2") format("woff2");
}

/* inter-600 (Medium/SemiBold) */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/Inter-SemiBold.woff2") format("woff2");
}

/* inter-700 (Bold) */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/Inter-Bold.woff2") format("woff2");
}

:root {
  /* Paleta de Identidad */
  --primary: #19477c;
  --secondary: #2e81e2;
  --third: #2364af;
  --black: #222222;
  --white: #ffffff;
  --gray: #d9d9d9;
  --font-main: "Inter", system-ui, -apple-system, sans-serif;
}

body {
  font-size: 1rem;
  font-family: var(--font-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Aplicación base */
body {
  color: var(--text-color);
  background-color: var(--bg-color);
}

a {
  color: var(--link-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--link-hover);
}

/* Global: remove underlines from all links (override other styles) */
a,
a:visited,
a:active,
a:hover {
  text-decoration: none !important;
}

/* Botón de Contact Form 7 con tus colores */
.wpcf7-submit {
  background-color: var(--secondary) !important;
  color: var(--white) !important;
  border: none;
  padding: 12px 30px;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
}

.wpcf7-submit:hover {
  background-color: var(--primary) !important;
}

/* Bordes de los inputs al hacer foco */
.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
  border-color: var(--third) !important;
  outline: none;
}

/* ------------------------- */
/* Navigation: Desktop + Mobile */
/* ------------------------- */

.site-nav {
  width: 100%;
  background: transparent;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0px;
}
.nav-logo {
  padding: 0 50px 0 50px;
  width: 20%;
  font-weight: 700;
  color: var(--black);
}
.nav-logo a {
  color: inherit;
  text-decoration: none;
}
.nav-menu-desktop {
  width: 80%;
}
.nav-menu-desktop .menu {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.nav-menu-desktop {
  display: flex;
  justify-content: flex-end; /* llevar los elementos hacia el final */
  padding-right: 12px; /* separación del borde/del logo */
}
.nav-menu-desktop .menu {
  justify-content: flex-end;
}
.nav-menu-desktop .menu li a {
  color: var(--black);
  padding: 4px 18px;
  display: inline-block;
}

/* Elegant underline animation on hover for desktop navigation links */
@media (min-width: 769px) {
  .nav-menu-desktop .menu li:not(:last-child) > a {
    position: relative;
    padding-bottom: 6px; /* space for the underline */
  }

  .nav-menu-desktop .menu li:not(:last-child) > a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 100%;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform;
  }

  .nav-menu-desktop .menu li:not(:last-child) > a:hover::after,
  .nav-menu-desktop .menu li:not(:last-child) > a:focus::after {
    transform: scaleX(1);
  }
}

/* Special style for the last menu item (desktop): outline button */
.nav-menu-desktop .menu li:last-child > a {
  display: inline-block;
  border-radius: 8px;
  border: 2px solid var(--primary);
  background: transparent;
  color: var(--primary);
  font-weight: 600;
}
.nav-menu-desktop .menu li:last-child > a:hover {
  background: var(--primary);
  color: var(--white);
}

/* Hamburger toggle (hidden on desktop) */
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle .hamburger {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--black);
  position: relative;
}
.nav-toggle .hamburger::before,
.nav-toggle .hamburger::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: var(--black);
}
.nav-toggle .hamburger::before {
  top: -7px;
}
.nav-toggle .hamburger::after {
  top: 7px;
}

/* Mobile sidebar (hidden by default) */
.nav-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 60vw;
  max-width: 420px;
  background: linear-gradient(to bottom, var(--primary), var(--secondary));
  color: var(--white);
  transform: translateX(100%);
  transition: transform 0.35s ease;
  z-index: 9999;
  padding: 32px 20px;
  box-sizing: border-box;
}
.nav-sidebar.open {
  transform: translateX(0);
}
.nav-sidebar .nav-close {
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 36px;
  position: absolute;
  top: 12px;
  left: 12px;
  right: auto;
  cursor: pointer;
}
.menu-mobile {
  list-style: none;
  padding: 60px 0 0 0;
  margin: 0;
}
.menu-mobile li {
  margin-bottom: 18px;
}
.menu-mobile li a {
  color: var(--white);
  font-size: 18px;
  text-decoration: none;
}

/* Prevent body scroll when nav open */
body.nav-open {
  overflow: hidden;
}

/* Responsive rules */
@media (max-width: 768px) {
  .nav-logo {
    width: auto;
  }
  .nav-logo img {
    max-width: 120px;
    height: auto;
    display: block;
  }
  .nav-menu-desktop {
    display: none;
  }
  .nav-toggle {
    display: flex;
    width: 20%;
  }
  .nav-inner {
    padding: 10px 14px;
  }
}

@media (min-width: 769px) {
  .nav-sidebar {
    display: none;
  }
}

/* Overlay behind mobile sidebar */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.25s ease,
    visibility 0.25s;
  z-index: 9998;
}

body.nav-open .nav-overlay {
  opacity: 1;
  visibility: visible;
}

/* ------------------------- */
/* Footer: 4-column layout     */
/* ------------------------- */
.gp-footer-inner {
  color: #ffffff;
  padding: 50px 0 35px 0;
  background: linear-gradient(to bottom, var(--primary), var(--secondary));
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}
.footer-col {
  color: #fff;
}
.footer-col--brand {
  grid-column: span 2;
}
.footer-logo img {
  max-width: 180px;
  height: auto;
  display: block;
}
.footer-logo {
  display: flex;
  align-items: center;
}
.footer-logo a {
  display: inline-block; /* only as wide as its contents */
  width: auto;
}
.footer-slogan {
  font-size: 0.9rem;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 400;
  width: 50%;
}

.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-menu li {
  margin-bottom: 10px;
}
.footer-menu a {
  color: #fff;
  text-decoration: none;
  opacity: 0.95;
}
.footer-menu a:hover {
  opacity: 1;
}

.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
  color: #fff;
}
.contact-item {
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.95);
}
.footer-link {
  color: #fff;
  text-decoration: underline;
}

/* Footer icon style */
.footer-icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  vertical-align: middle;
  margin-left: 8px;
}

/* Ensure external SVG images maintain white color and align nicely */
.footer-contact .footer-icon {
  margin-right: 10px;
  margin-left: 0;
}
.footer-contact .contact-item {
  display: flex;
  align-items: center;
}
.footer-contact .contact-item .footer-link {
  margin-left: 6px;
}

/* Make sure the spacer column has no content but preserves layout */
.footer-col--spacer {
  display: none;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 0 16px;
    align-items: center;
    text-align: center;
  }
  .footer-col--brand {
    grid-column: auto;
  }
  .footer-col--spacer {
    display: none;
  }
  .gp-footer-inner {
    padding: 32px 0;
  }
  .footer-slogan {
    font-size: 15px;
    width: 80%;
    margin: 8px auto 24px auto;
    text-align: center;
  }

  .footer-logo {
    justify-content: center;
  }

  .footer-col--menu {
    display: flex;
    justify-content: center;
  }
  .footer-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .footer-menu li {
    margin-bottom: 8px;
  }

  .footer-contact .contact-item {
    justify-content: center;
  }
  .footer-contact .footer-icon {
    margin-right: 8px;
  }
  /* Mobile: last menu item should be filled (inverted) */
  .menu-mobile li:last-child > a {
    display: inline-block;
    padding: 4px 16px;
    border-radius: 8px;
    border: 2px solid var(--white);
    color: var(--white);
    font-weight: 400;
    text-decoration: none !important;
  }
  .menu-mobile li:last-child > a:hover {
    opacity: 0.95;
  }
}

/* Footer bottom copyright area */
.gp-footer-bottom {
  margin-top: 20px;
  padding-top: 18px;
  text-align: center;
  position: relative;
}
.gp-footer-bottom::before {
  content: "";
  display: block;
  height: 4px; /* thickness of the dashed line */
  margin-bottom: 32px;
  /* dash length 12px, gap 12px - adjust these values to change spacing */
  background-image: repeating-linear-gradient(
    to right,
    rgba(255, 255, 255, 0.9) 0 12px,
    rgba(255, 255, 255, 0) 12px 24px
  );
  background-repeat: repeat-x;
  background-size: 24px 4px;
  animation: dash-move 1s linear infinite;
}

@keyframes dash-move {
  from {
    background-position: 0 0;
  }
  to {
    background-position: -24px 0;
  }
}
.gp-footer-bottom-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
  text-align: center;
}
.footer-copy {
  color: #ffffff;
  font-size: 14px;
  opacity: 0.95;
}

/* Ensure page fills available viewport height so footer stays at bottom */
html,
body {
  height: 100%;
}
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
/* Common page wrappers used by themes - be flexible but do not force additional 100vh */
#page,
.site,
.site-wrapper,
.site-container {
  display: flex;
  flex-direction: column;
  flex: 1 0 auto; /* allow the wrapper to grow but avoid adding a second 100vh */
}
/* Let the main content area grow to fill remaining space between header and footer */
.site-content,
.site-main,
#content,
.content-area {
  flex: 1 1 auto;
}

.ancho-completo {
  width: 100vw !important;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
}

.background-video {
  position: absolute;
}

video[poster] {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

/* Utility: responsive images */
.img-responsive {
  max-width: 100%;
  height: auto;
  display: block;
}

.separate-containers .site-main {
  margin: 0 !important;
}

/* Minimalist archive cards: image + title only */
.site-main {
  /* ensure posts grid only on archive/home */
}

.blog .site-main,
.home.blog .site-main,
.archive .site-main {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columnas por defecto */
  gap: 20px;
  align-items: start;
  padding: 28px 20px; /* separa las cards de header/footer */
}

/* Breakpoints: 3 cols <=1200px, 2 cols <=992px, 1 col <=768px */
@media (max-width: 1200px) {
  .blog .site-main,
  .home.blog .site-main,
  .archive .site-main {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .blog .site-main,
  .home.blog .site-main,
  .archive .site-main {
    grid-template-columns: repeat(2, 1fr);
  }
}

.gp-archive-card-article {
  background: transparent;
  border: 0;
  margin: 0;
}

.gp-archive-card {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 6px 18px rgba(17, 24, 39, 0.06);
  text-decoration: none;
  color: inherit;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease;
}

.gp-archive-card:hover,
.gp-archive-card:focus {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.08);
}

.gp-archive-thumb {
  width: 100%;
  height: 180px;
  display: block;
  object-fit: cover;
  vertical-align: middle;
}

.gp-archive-thumb--placeholder {
  background: linear-gradient(90deg, #efefef 25%, #f7f7f7 50%, #efefef 75%);
  height: 180px;
}

.gp-archive-title-wrap {
  padding: 14px 16px;
  background: transparent;
}

.gp-archive-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--black);
  text-decoration: none;
}

/* Posts page title styles */
.gp-posts-page-title {
  width: 100%;
  padding: 6px 20px 8px;
  box-sizing: border-box;
  text-align: left;
}
.gp-posts-title {
  margin: 0 0 18px;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--black);
}

@media (max-width: 768px) {
  .gp-posts-title {
    font-size: 1.25rem;
  }
}

/* Ensure the posts page title sits above the grid and spans full width */
.blog .site-main > .gp-posts-page-title,
.home.blog .site-main > .gp-posts-page-title,
.archive .site-main > .gp-posts-page-title {
  grid-column: 1 / -1;
  width: 100%;
  margin-bottom: 12px;
}

/* If the title happens to be placed after some items, force it to the first row */
.blog .site-main > .gp-posts-page-title {
  grid-row: 1;
}

@media (max-width: 768px) {
  .blog .site-main,
  .home.blog .site-main,
  .archive .site-main {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .gp-archive-thumb,
  .gp-archive-thumb--placeholder {
    height: 160px;
  }

  .gp-archive-title {
    font-size: 1rem;
  }
}

.btk-form-container {
  width: 100%;
  margin: 0 auto;
}

.btk-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px; /* Espacio entre columnas */
  margin-bottom: 15px;
}

.btk-column {
  flex: 1;
  min-width: 250px; /* Se apila en móviles */
}

.btk-column-full {
  flex: 100%;
}

.btk-form-container label {
  font-weight: bold;
  display: block;
  margin-bottom: 5px;
}

.btk-form-container input,
.btk-form-container textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 15px;
}

.btk-submit {
  text-align: center;
  margin-top: 10px;
}

.btk-submit input {
  background-color: #0056b3; /* Azul acorde al logo */
  color: white;
  padding: 12px 30px;
  border: none;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
}

.btk-submit input:hover {
  background-color: #003d7a;
}
