/* =========================================================
   Proyecto: COMUNI
   Archivo: portadas.css
   Descripción: Portada de Técnicos Virtuales
   Última edición: 2025-10-22
========================================================= */

/* =========================================================
   1) VARIABLES / THEME TOKENS (idénticas a pages.css)
========================================================= */
:root {
  --ast-global-color-0: #c8a42b; /* dorado */
  --ast-global-color-1: #c39532;
  --ast-global-color-2: #3d4d2f; /* verde más oscuro */
  --ast-global-color-3: rgba(82, 104, 64, 0.75);
  --ast-global-color-4: #f6f8f5;
  --ast-global-color-5: #ffffff;
  --ast-global-color-6: rgba(82, 104, 64, 0.8);
  --ast-global-color-8: rgba(82, 104, 64, 0.3);
  --ast-global-color-button: #daae3e;
}

/* =========================================================
   2) BASE / RESET
========================================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'DM Sans', 'Montserrat', sans-serif;
  margin: 0;
  background-color: var(--ast-global-color-5);
  color: var(--ast-global-color-3);
  font-size: 16px;
  line-height: 1.7em;
}

a {
  text-decoration: none;
  color: var(--ast-global-color-0);
}

a:hover {
  color: var(--ast-global-color-1);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--ast-global-color-2);
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  margin: 0 0 1em 0;
}

/* =========================================================
   3) HEADER (IDÉNTICO A pages.css)
========================================================= */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 40px;
  background-color: var(--ast-global-color-5);
  border-bottom: 1px solid #eaeaea;
  position: relative;
  z-index: 1001;
}

.site-branding img {
  width: 116px;
  height: auto;
}

.header-right-section {
  display: flex;
  align-items: center;
}

/* Navegación principal */
.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.main-navigation li {
  margin-left: 20px;
  position: relative;
}

.main-navigation a {
  text-decoration: none;
  color: var(--ast-global-color-3);
  font-weight: 400;
  padding: 25px 0;
  display: block;
}

.main-navigation a:hover,
.main-navigation a.current-page,
.main-navigation .current-menu-ancestor > a,
.main-navigation .current-menu-parent > a {
  color: var(--ast-global-color-1);
}

/* Submenús */
.main-navigation .sub-menu {
  display: none;
  position: absolute;
  background-color: var(--ast-global-color-5);
  border-top: 2px solid var(--ast-global-color-0);
  box-shadow: 0 4px 8px rgba(0,0,0,.1);
  padding: 10px;
  z-index: 1000;
  min-width: 240px;
  list-style: none;
}

.main-navigation .sub-menu .sub-menu {
  left: 100%;
  top: 0;
}

.main-navigation li:hover > .sub-menu {
  display: block;
}

.main-navigation .sub-menu li {
  margin: 0;
}

.main-navigation .sub-menu a {
  display: block;
  padding: 8px 15px;
  white-space: nowrap;
}

/* =========================================================
   4) BOTONES Y SOCIAL (IDÉNTICO A pages.css)
========================================================= */
.elementor-button {
  display: inline-block;
  text-decoration: none;
  background-color: var(--ast-global-color-button);
  color: var(--ast-global-color-2);
  padding: 17px 40px;
  border-radius: 4px;
  border: 1px solid #d5b93d;
  margin: 5px;
  font-weight: 400;
  font-size: .875rem;
  transition: background-color .3s, border-color .3s;
}

.elementor-button:hover {
  background-color: #c9bc57;
  border-color: var(--ast-global-color-1);
  color: var(--ast-global-color-2);
}

.header-social-wrap a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 10px;
  color: var(--ast-global-color-4);
  background-color: var(--ast-global-color-8);
  width: 35px;
  height: 35px;
  border-radius: 5px;
  font-size: 14px;
  transition: background-color .3s;
}

.header-social-wrap a:hover {
  background-color: var(--ast-global-color-6);
}

/* =========================================================
   5) HERO SECTION - Técnicos Virtuales
========================================================= */
.hero-tecnicos {
  background-color: var(--ast-global-color-2); /* verde más oscuro */
  padding: 80px 20px;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.hero-title {
  color: #ffffff;
  font-size: 3rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  margin-bottom: 60px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 60px;
  align-items: center;
}

.hero-image {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Tarjeta con botones apilables */
.hero-card {
  background-color: var(--ast-global-color-5);
  border-radius: 10px;
  padding: 40px 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  gap: 20px; /* Espaciado entre botones */
  align-items: stretch;
  justify-content: center;
  min-height: 300px;
}

.hero-card .cta {
  display: block;
  background-color: var(--ast-global-color-button);
  color: var(--ast-global-color-2);
  padding: 20px 35px;
  border-radius: 4px;
  border: 1px solid #d5b93d;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  transition: all .3s ease;
  text-decoration: none;
  width: 100%; /* Cada botón ocupa todo el ancho */
}

.hero-card .cta:hover {
  background-color: #c9bc57;
  border-color: var(--ast-global-color-1);
  color: var(--ast-global-color-2);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* =========================================================
   6) BOTÓN FLOTANTE WHATSAPP
========================================================= */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: transform .3s ease, box-shadow .3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  color: #ffffff;
}

/* =========================================================
   7) MENÚ MÓVIL
========================================================= */
.mobile-menu-toggle {
  display: none;
  background: var(--ast-global-color-0);
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 100px;
  cursor: pointer;
  font-size: 22px;
}

/* =========================================================
   8) RESPONSIVE
========================================================= */

/* Tablets grandes */
@media (max-width: 1024px) {
  .site-header {
    padding: 10px 20px;
  }

  .hero-title {
    font-size: 2.5rem;
    margin-bottom: 50px;
  }

  .hero-grid {
    grid-template-columns: 1fr 350px;
    gap: 40px;
  }

  .hero-card {
    padding: 35px 25px;
    min-height: 280px;
  }
}

/* Tablets */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }

  .main-navigation {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ast-global-color-5);
    border-top: 1px solid #eaeaea;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  }

  .main-navigation.active {
    display: block;
  }

  .main-navigation ul {
    flex-direction: column;
  }

  .main-navigation li {
    margin: 0;
    border-bottom: 1px solid #eaeaea;
  }

  .main-navigation a {
    padding: 15px 20px;
  }

  .main-navigation .sub-menu {
    position: static;
    box-shadow: none;
    border: none;
    padding-left: 20px;
  }

  .hero-tecnicos {
    padding: 60px 20px;
    min-height: auto;
  }

  .hero-title {
    font-size: 2rem;
    margin-bottom: 40px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero-card {
    max-width: 500px;
    margin: 0 auto;
    gap: 15px; /* Menor espaciado en móvil */
  }

  .header-right-section {
    flex-wrap: wrap;
    gap: 10px;
  }
}

/* Móviles */
@media (max-width: 480px) {
  .site-header {
    padding: 10px 15px;
    flex-wrap: wrap;
  }

  .site-branding img {
    width: 80px;
  }

  .header-right-section {
    order: 3;
    width: 100%;
    justify-content: center;
    margin-top: 10px;
  }

  .hero-tecnicos {
    padding: 40px 15px;
  }

  .hero-title {
    font-size: 1.6rem;
    margin-bottom: 30px;
  }

  .hero-card {
    padding: 30px 20px;
    min-height: 250px;
    gap: 12px;
  }

  .hero-card .cta {
    padding: 18px 30px;
    font-size: 0.95rem;
  }

  .elementor-button {
    padding: 14px 30px;
    font-size: 0.8rem;
  }

  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 55px;
    height: 55px;
    font-size: 28px;
  }
}



