 /*
Theme Name:   Astra Child - Eagle Grill
Template:     astra
Version:      1.1.1 (Corrección Final de Espaciado)
*/

 /*
* ===============================================================
* ÍNDICE DE ESTILOS
* ===============================================================
* 1. ESTILOS GLOBALES Y VARIABLES
* 2. ESTILOS DEL HEADER
* 3. ESTILOS DEL FOOTER
* 4. ESTILOS DE LA PLANTILLA DE INICIO (SIN EFECTOS)
* 5. AJUSTES DE PLUGINS (WOOCOMMERCE)
* 6. CORRECCIONES DE LAYOUT DE ASTRA
*/


 /*
* ===============================================================
* 1. ESTILOS GLOBALES Y VARIABLES
* ===============================================================
*/
 :root {
     --color-primario: #D84315;
     --color-primario-hover: #BF360C;
     --color-secundario: #424242;
     --color-fondo-principal: #212121;
     --color-texto-claro: #E0E0E0;
     --font-headings: 'Oswald', sans-serif;
     --font-body: 'Open Sans', sans-serif;
 }

 body {
     background-color: var(--color-fondo-principal);
     color: var(--color-texto-claro);
     font-family: var(--font-body);
     /* El padding se gestionará en la sección de correcciones para máxima prioridad */
 }

 h1,
 h2,
 h3,
 h4,
 h5,
 h6 {
     font-family: var(--font-headings);
     color: var(--color-texto-claro);
 }

 .container {
     max-width: 1200px;
     margin: 0 auto;
     padding: 0 20px;
 }


 /*
* ===============================================================
* 2. ESTILOS DEL HEADER
* ===============================================================
*/
 .site-header-personalizado {
     background-color: var(--color-fondo-principal);
     padding: 10px 0;
     box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.2);
     border-bottom: 1px solid var(--color-secundario);
     position: fixed;
     top: 0;
     left: 0;
     width: 100%;
     z-index: 1000;
 }

 .container-header {
     max-width: 1300px;
     margin: 0 auto;
     padding: 0 35px;
     display: flex;
     justify-content: space-between;
     align-items: center;
 }

 .site-branding .custom-logo {
     max-height: 40px;
     width: auto;
 }

 .main-navigation ul {
     list-style: none;
     margin: 0;
     padding: 0;
     display: flex;
 }

 .main-navigation ul li {
     margin: 0 15px;
 }

 .main-navigation ul li a {
     text-decoration: none;
     color: var(--color-texto-claro) !important;
     font-family: var(--font-body);
     font-weight: 600;
     font-size: 1rem;
     letter-spacing: 0.5px;
     position: relative;
     padding: 10px 5px;
     opacity: 0.9;
 }

 .main-navigation ul li a:hover {
     opacity: 1;
 }

 .main-navigation ul li a::after {
     content: '';
     position: absolute;
     bottom: 0;
     left: 50%;
     transform: translateX(-50%);
     width: 0;
     height: 2px;
     background-color: var(--color-primario);
 }

 .main-navigation .current-menu-item>a::after {
     width: 100%;
 }

 .header-cta {
     display: flex;
     align-items: center;
 }

 .button-header {
     display: inline-block;
     background: linear-gradient(45deg, var(--color-primario), var(--color-primario-hover));
     color: var(--color-texto-claro) !important;
     padding: 12px 30px;
     text-decoration: none;
     font-family: var(--font-body);
     font-weight: 600;
     border-radius: 5px;
     font-size: 0.9rem;
     border: none;
     box-shadow: 0px 8px 20px -8px var(--color-primario);
     text-transform: uppercase;
     letter-spacing: 1px;
 }

 .button-header:hover {
     background: var(--color-primario-hover);
 }

 .menu-toggle {
     display: none;
 }


 /*
* ===============================================================
* 3. ESTILOS DEL FOOTER
* ===============================================================
*/
 .site-footer-personalizado {
     background-color: var(--color-secundario);
     padding: 80px 0 0 0;
     font-size: 0.95rem;
 }

 .footer-grid {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
     gap: 40px;
     padding-bottom: 60px;
 }

 .footer-column .footer-logo {
     max-height: 50px;
     margin-bottom: 20px;
 }

 .footer-column p {
     opacity: 0.7;
     line-height: 1.7;
     margin-bottom: 25px;
 }

 .footer-column h4 {
     font-size: 1.4rem;
     margin-bottom: 20px;
     text-transform: uppercase;
     letter-spacing: 1px;
 }

 .footer-column ul {
     list-style: none;
     padding: 0;
     margin: 0;
 }

 .footer-column ul li {
     margin-bottom: 12px;
 }

 .footer-column ul li a {
     opacity: 0.7;
 }

 .footer-column ul li a:hover {
     opacity: 1;
     color: var(--color-primario);
 }

 .social-icons {
     display: flex;
     gap: 15px;
 }

 .social-icons a {
     opacity: 0.7;
 }

 .social-icons a:hover {
     opacity: 1;
 }

 .social-icons svg {
     width: 24px;
     height: 24px;
 }

 .footer-copyright {
     background-color: var(--color-fondo-principal);
     padding: 20px 0;
     text-align: center;
     font-size: 0.9rem;
     opacity: 0.5;
 }


 /*
* ===============================================================
* 4. ESTILOS DE LA PLANTILLA DE INICIO (SIN EFECTOS)
* ===============================================================
*/
 .section {
     padding: 100px 20px;
 }

 .section:nth-of-type(even) {
     background-color: var(--color-secundario);
 }

 .section-title {
     text-align: center;
     margin-bottom: 60px;
 }

 .section-title h2 {
     font-size: clamp(2.5rem, 4.5vw, 3.5rem);
     margin-bottom: 15px;
 }

 .section-title h2::after {
     content: '';
     display: block;
     width: 80px;
     height: 4px;
     background-color: var(--color-primario);
     margin: 20px auto 0;
     border-radius: 2px;
 }

 .section-title p {
     font-size: 1.1rem;
     max-width: 700px;
     margin: 0 auto;
     opacity: 0.8;
 }

 .button-cta {
     display: inline-block;
     background: linear-gradient(45deg, var(--color-primario), var(--color-primario-hover));
     color: var(--color-texto-claro) !important;
     padding: 15px 35px;
     text-decoration: none;
     font-weight: 600;
     border-radius: 5px;
     font-size: 1rem;
     border: none;
     box-shadow: 0px 8px 20px -8px var(--color-primario);
     text-transform: uppercase;
     letter-spacing: 1px;
 }

 .button-cta:hover {
     box-shadow: 0px 12px 25px -10px var(--color-primario);
 }

 .hero-section {
     min-height: 90vh;
     display: flex;
     align-items: center;
     justify-content: center;
     text-align: center;
     background-size: cover;
     background-position: center center;
 }

 .hero-content h1 {
     font-size: clamp(3rem, 7vw, 6rem);
     text-shadow: 2px 2px 15px rgba(0, 0, 0, 0.7);
     margin-bottom: 25px;
     line-height: 1.1;
 }

 .hero-content p {
     font-size: clamp(1.1rem, 2.2vw, 1.4rem);
     max-width: 700px;
     margin: 0 auto 50px auto;
     opacity: 0.9;
     line-height: 1.6;
 }

 .promo-grid {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
     gap: 30px;
 }

 .promo-card {
     position: relative;
     display: flex;
     align-items: flex-end;
     min-height: 350px;
     padding: 25px;
     border-radius: 8px;
     overflow: hidden;
     text-decoration: none;
     background-size: cover;
     background-position: center;
     box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.3);
 }

 .promo-card::before {
     content: '';
     position: absolute;
     inset: 0;
     background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 60%);
 }

 .promo-card-content h3 {
     font-size: 2.2rem;
     margin: 0;
     line-height: 1.2;
 }

 .promo-card-content p {
     font-size: 1rem;
     opacity: 0.7;
     margin-top: 10px;
 }

 .full-width-banner {
     min-height: 400px;
     background-size: cover;
     background-position: center;
 }

 .feature-grid {
     display: grid;
     grid-template-columns: 1fr 1fr;
     gap: 80px;
     align-items: center;
 }

 .feature-text p {
     font-size: 1.15rem;
     line-height: 1.8;
     opacity: 0.9;
 }

 .feature-list {
     display: flex;
     flex-direction: column;
     gap: 35px;
 }

 .feature-item {
     display: flex;
     align-items: flex-start;
     gap: 25px;
 }

 .feature-item svg {
     flex-shrink: 0;
     width: 35px;
     height: 35px;
     color: var(--color-primario);
     margin-top: 5px;
 }

 .feature-item h4 {
     margin: 0 0 8px 0;
     font-size: 1.5rem;
 }

 .feature-item p {
     margin: 0;
     opacity: 0.8;
     line-height: 1.7;
 }

 .cta-final {
     text-align: center;
     padding: 120px 20px;
     background-color: var(--color-secundario);
 }

 .cta-final h2 {
     font-size: clamp(2.5rem, 5vw, 4rem);
     margin-bottom: 25px;
 }

 .cta-final p {
     font-size: clamp(1.1rem, 2vw, 1.3rem);
     max-width: 800px;
     margin: 0 auto 40px auto;
     opacity: 0.9;
     line-height: 1.7;
 }

 @media (max-width: 900px) {
     .feature-grid {
         grid-template-columns: 1fr;
     }
 }

 @media (max-width: 600px) {
     .promo-card {
         min-height: 300px;
     }

     .promo-card-content h3 {
         font-size: 1.8rem;
     }

     .hero-content h1 {
         font-size: clamp(2.5rem, 8vw, 4rem);
     }

     .hero-content p {
         font-size: clamp(1rem, 2.5vw, 1.1rem);
     }

     .section {
         padding: 80px 15px;
     }

     .full-width-banner {
         min-height: 300px;
     }
 }


 /*
* ===============================================================
* 5. AJUSTES DE PLUGINS (WOOCOMMERCE)
* ===============================================================
*/
 .woocommerce ul.products li.product .woocommerce-loop-product__title,
 .woocommerce ul.products li.product .price,
 .woocommerce-products-header__title.page-title {
     color: var(--color-texto-claro);
     font-family: var(--font-headings);
 }

 .woocommerce ul.products li.product h2.woocommerce-loop-product__title {
     font-size: 1.5rem;
 }

 .woocommerce ul.products li.product .button {
     background-color: var(--color-primario);
     color: var(--color-texto-claro);
     font-family: var(--font-body);
     text-transform: uppercase;
     letter-spacing: 1px;
     padding: 10px 20px;
     border-radius: 5px;
 }

 .woocommerce ul.products li.product .button:hover {
     background-color: var(--color-primario-hover);
 }


 /*
* ===============================================================
* 6. CORRECCIONES DE LAYOUT DE ASTRA (VERSIÓN FINAL)
* ===============================================================
*/

 /* Resetea el padding del body que empujaba el contenido. Lo controlaremos nosotros. */
 body {
     padding-top: 0 !important;
 }

 /* Aplica el padding directamente al contenedor del contenido para evitar el espacio */
 .site-content {
     /* Altura Header: 10px padding + 40px logo + 10px padding + 1px borde = 61px */
     padding-top: 61px !important;
     margin-top: 0 !important;
     /* Anula cualquier margen superior de Astra */
     border-top: none !important;
     /* Re-asegura que no haya bordes */
 }

 /* Oculta los componentes de footer de Astra */
 .entry-header,
 .site-footer,
 .ast-footer-bar-wrap {
     display: none !important;
 }

 /* Se asegura que nuestro footer no tenga borde superior */
 #colophon {
     border-top: none !important;
 }