/*
 Theme Name:   Astra Child
 Theme URI:    https://guaupro.com/
 Description:  Tema hijo de Astra
 Author:       Guau Pro
 Template:     astra
 Version:      1.0.0
*/

/* ==========================
   Tipografía global
   ========================== */

/* Fuente base (system UI stack) */
body, p, span, li, h1, h2, h3, h4, h5, h6 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue",
               Arial, sans-serif !important;
  font-weight: 400;
}

/* Títulos (forzados con !important) */
h1 {
  font-size: 35px !important;
  margin-top: 0;
  margin-bottom: 25px;
  font-weight: 600 !important;
}
h2 {
  font-size: 26px !important;
  margin-top: 0;
  margin-bottom: 20px;
  font-weight: 600 !important;
}
h3 {
  font-size: 20px !important;
  margin-top: 0;
  margin-bottom: 15px;
  font-weight: 600 !important;
}
h4 {
  font-size: 17px !important;
  margin-top: 0;
  margin-bottom: 10px;
  font-weight: 600 !important;
}
h5 {
  font-size: 15px !important;
  margin-top: 0;
  margin-bottom: 8px;
  font-weight: 600 !important;
}

/* Párrafos */
p {
  margin-top: 0;
  margin-bottom: 20px;
  line-height: 1.6;
}

/* Responsive para títulos y párrafos */
@media (max-width: 768px) {
  h1 { font-size: 28px !important; margin-bottom: 20px; }
  h2 { font-size: 20px !important; margin-bottom: 18px; }
  h3 { font-size: 16px !important; margin-bottom: 12px; }
  h4 { font-size: 14px !important; margin-bottom: 10px; }
  h5 { font-size: 12px !important; margin-bottom: 8px; }
  p  { margin-bottom: 16px; }
}

/* ==========================
   Menú móvil Astra
   ========================== */
.ast-header-break-point .main-header-menu .menu-item-has-children .ast-menu-toggle { color: #FFFFFF; }
.ast-header-break-point .main-header-menu .menu-item-has-children .ast-menu-toggle svg { fill: #FFFFFF; }

/* ==========================
   Tablas responsivas
   ========================== */
.gp-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 0 12px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
}
.gp-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}
.gp-table th,
.gp-table td {
  border: 1px solid #e5e7eb;
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.gp-table thead th { background: #f8fafc; font-weight: 700; }
@media (max-width: 480px) {
  .gp-table { min-width: 520px; }
  .gp-table th,
  .gp-table td {
    padding: 8px 10px;
    font-size: 14px;
  }
}

/* ==========================
   Editor WP: ocultar modal
   ========================== */
body:not(.wp-admin) #wp-link-wrap,
body:not(.wp-admin) #wp-link-backdrop,
body:not(.wp-admin) #wp-link-wrap h1 {
  display: none !important;
}

/* ==========================
   Cabecera móvil con destello
   ========================== */
.cabecera-movil {
  position: relative;
  overflow: hidden;
  height: 100vh;
  background-color: #257b8e;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}
.cabecera-movil::after {
  content: "";
  position: absolute;
  top: -100%;
  left: -100%;
  width: 300%;
  height: 300%;
  background: linear-gradient(
    135deg,
    rgba(245,194,67,0) 20%,
    rgba(245,194,67,0.55) 50%,
    rgba(245,194,67,0) 80%
  );
  opacity: 0;
  transform: translateY(150%);
  pointer-events: none;
  animation: sweepDiagonal 10s ease-in-out infinite;
}
@keyframes sweepDiagonal {
  0%   { transform: translateY(150%); opacity: 0; }
  20%  { transform: translateY(80%);  opacity: 0.3; }
  40%  { transform: translateY(-150%); opacity: 0.4; }
  50%  { transform: translateY(-150%); opacity: 0.4; }
  70%  { transform: translateY(-120%); opacity: 0.3; }
  80%  { transform: translateY(-80%);  opacity: 0.2; }
  100% { transform: translateY(150%); opacity: 0; }
}

/* ==========================
   Formulario de comentarios
   ========================== */
.comment-form .comment-form-author,
.comment-form .comment-form-email,
.comment-form .comment-form-url {
  display: inline-block;
  width: 32% !important;
  margin-right: 2%;
  vertical-align: top;
}
.comment-form .comment-form-url { margin-right: 0; }

/* Responsive comentarios */
@media (max-width: 768px) {
  .comment-form .comment-form-author,
  .comment-form .comment-form-email,
  .comment-form .comment-form-url {
    width: 100% !important;
    margin-right: 0;
    display: block;
  }
}
