/*
 * Theme Name: Astra TC Recovery
 * Theme URI: https://tallerescarreras.es
 * Description: Tema personalizado para recuperación exacta de Talleres Carreras
 * Version: 1.0
 * Template: astra
 * Author: Rafael Ceballos
 * License: GPL v2 or later
 * License URI: https://www.gnu.org/licenses/gpl-2.0.html
 */

/* IMPORTAR FUENTE LATO */
@import url('https://fonts.googleapis.com/css?family=Lato:400,700&display=swap');

/* ===== RESET Y ESTILOS GENERALES ===== */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  line-height: 1.6;
  color: #333;
}

/* ===== HEADER / CABECERA ===== */
.site-header {
  background-color: #0066cc !important;
  padding: 0 !important;
  border-bottom: none !important;
  position: relative;
  z-index: 1000;
  width: 100%;
}

.site-header .header-top {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  min-height: 100px;
  background-color: #0066cc !important;
  padding: 15px 20px !important;
  width: 100%;
}

.site-header .header-branding {
  display: flex !important;
  align-items: center !important;
  flex-grow: 1;
}

.site-header .site-branding {
  display: flex !important;
  align-items: center !important;
  gap: 15px;
}

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

.site-header .site-title,
.site-header .site-title a {
  color: #ffffff !important;
  font-size: 28px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  margin: 0 !important;
  padding: 0 !important;
  text-decoration: none !important;
  line-height: 1.2;
  font-family: 'Lato', sans-serif !important;
}

.site-header .site-title a:hover {
  color: #ffffff !important;
  text-decoration: none !important;
}

.site-header .site-description {
  display: none !important;
}

/* HEADER WIDGET WRAPPER - TELÉFONO BLANCO GRANDE A LA DERECHA */
.site-header .header-widget-wrapper {
  display: flex !important;
  align-items: center !important;
  margin-left: auto !important;
  padding-left: 30px;
  flex-shrink: 0;
}

.site-header .header-widget-area {
  color: #ffffff !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: right;
  font-size: 16px !important;
  font-weight: 400 !important;
  font-family: 'Lato', sans-serif !important;
}

.site-header .header-widget-area p {
  margin: 0 !important;
  padding: 0 !important;
  color: #ffffff !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  font-family: 'Lato', sans-serif !important;
  line-height: 1.4;
}

/* IMPORTANTE: H1 EN EL WIDGET DE TELÉFONO */
.site-header .header-widget-area h1 {
  margin: 0 !important;
  padding: 0 !important;
  color: #ffffff !important;
  font-size: 24px !important;
  font-weight: 700 !important;
  font-family: 'Lato', sans-serif !important;
  line-height: 1.2;
  text-align: right;
}

.site-header .header-widget-area .widget {
  background: transparent !important;
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.site-header .header-widget-area .widget-title {
  display: none !important;
}

.site-header .header-widget-area .widget h3,
.site-header .header-widget-area h3 {
  display: none !important;
}

.site-header .header-widget-area .textwidget {
  padding: 0 !important;
  margin: 0 !important;
}

.site-header .header-widget-area .textwidget p {
  margin: 0 !important;
  padding: 0 !important;
  color: #ffffff !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  text-align: right;
  font-family: 'Lato', sans-serif !important;
}

/* ===== SUBNAV - MENÚ PRINCIPAL EN BARRA SEPARADA ===== */
.nav-primary.subnav {
  background-color: #0066cc !important;
  border-top: 2px solid #004499 !important;
  border-bottom: 1px solid #004499 !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100%;
  position: relative;
  z-index: 999;
}

.nav-primary.subnav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  max-width: 100%;
  margin: 0;
  padding: 0 20px;
}

.nav-primary.subnav li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-primary.subnav a {
  color: #ffffff !important;
  text-decoration: none !important;
  padding: 16px 18px !important;
  display: inline-block;
  font-size: 14px !important;
  font-weight: 500 !important;
  transition: background-color 0.3s ease, color 0.3s ease;
  border-bottom: 3px solid transparent;
  font-family: 'Lato', sans-serif !important;
}

.nav-primary.subnav a:hover {
  background-color: #004499 !important;
  color: #ffffff !important;
  border-bottom-color: #fff !important;
}

.nav-primary.subnav li.current a,
.nav-primary.subnav li.active a {
  background-color: #004499 !important;
  color: #ffffff !important;
  border-bottom-color: #fff !important;
}

/* ===== SLIDER MANUAL ===== */
.manual-slider {
  width: 100%;
  max-width: 100%;
  height: 460px;
  position: relative;
  overflow: hidden;
  background: #f9f9f9;
  margin: 0;
  padding: 0;
}

.manual-slider .slider-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.manual-slider .slider-item {
  display: none;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.manual-slider .slider-item.active {
  display: block;
}

.manual-slider .slider-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.manual-slider .slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.manual-slider .slider-dots .dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.manual-slider .slider-dots .dot.active {
  background-color: #0066cc;
}

.manual-slider .slider-dots .dot:hover {
  background-color: rgba(255, 255, 255, 0.8);
}

/* ===== SECCIONES DESTACADAS - 3 COLUMNAS ===== */
/* FIX: Usar selectores que coincidan con HTML real */
.home-bottom {
  padding: 40px 20px;
  background: #ffffff;
}

.home-bottom .wrap {
  max-width: 1200px;
  margin: 0 auto;
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 30px;
  width: 100%;
}

.home-bottom .featured-section {
  text-align: center;
  padding: 15px;
}

.home-bottom .featured-section .featured-image {
  margin-bottom: 15px;
}

.home-bottom .featured-section .featured-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

.home-bottom .featured-section h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 15px 0 10px 0;
  color: #0066cc;
  font-family: 'Lato', sans-serif !important;
}

.home-bottom .featured-section p {
  font-size: 14px;
  color: #ccc;
  line-height: 1.6;
  font-family: 'Lato', sans-serif !important;
  margin: 0;
}

.site-footer {
  background-color: #2c3e50 !important;
  border-top: 1px solid #333 !important;
  padding: 40px 20px !important;
}

.site-footer .footer-widgets {
  max-width: 1200px;
  margin: 0 auto 30px;
  padding: 0;
}

.site-footer .footer-widgets-container {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 30px;
  width: 100%;
}

.site-footer .footer-widget-area {
  padding: 0 !important;
}

.site-footer .footer-widget-area .widget {
  padding: 0 !important;
  background: none !important;
  border: none !important;
}

.site-footer .footer-widget-area .widget-title {
  font-size: 16px;
  font-weight: 700;
  color: #0066cc;
  margin: 0 0 15px 0 !important;
  padding: 0 !important;
  font-family: 'Lato', sans-serif !important;
  text-transform: capitalize;
}

.site-footer .footer-widget-area .textwidget {
  color: #ccc !important;
}

.site-footer .footer-widget-area .textwidget p {
  margin: 0 0 10px 0 !important;
  padding: 0 !important;
  font-family: 'Lato', sans-serif !important;
  font-size: 14px;
  line-height: 1.6;
  color: #ccc !important;
}

.site-footer .footer-widget-area .menu {
  list-style: none;
  margin: 0 !important;
  padding: 0 !important;
}

.site-footer .footer-widget-area .menu li {
  margin: 0 0 8px 0 !important;
  padding: 0 !important;
  list-style: none;
}

.site-footer .footer-widget-area .menu a {
  color: #0066cc;
  text-decoration: none;
  font-family: 'Lato', sans-serif !important;
  font-size: 14px;
  transition: color 0.3s ease;
}

.site-footer .footer-widget-area .menu a:hover {
  color: #66b3ff;
  text-decoration: underline;
}

.site-footer .site-info {
  text-align: center;
  border-top: 1px solid #333;
  padding-top: 20px;
  font-size: 13px;
  color: #999;
  font-family: 'Lato', sans-serif !important;
}

.site-footer .site-info p {
  margin: 0;
  padding: 0;
  color: #999;
}

.site-footer .site-info a {
  color: #0066cc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-footer .site-info a:hover {
  color: #66b3ff;
  text-decoration: underline;
}

@media (max-width: 1024px) {
  .site-footer .footer-widgets-container {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 25px;
  }
}

@media (max-width: 768px) {
  .site-footer .footer-widgets-container {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }

  .site-footer {
    padding: 25px 15px !important;
  }
}

.site-footer .footer-widgets {
  max-width: 1200px;
  margin: 0 auto 30px;
  padding: 0;
}

.site-footer .footer-widgets-container {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 30px;
  width: 100%;
}

.site-footer .footer-widget-area {
  padding: 0 !important;
}

.site-footer .footer-widget-area .widget {
  padding: 0 !important;
  background: none !important;
  border: none !important;
}

.site-footer .footer-widget-area .widget-title {
  font-size: 16px;
  font-weight: 700;
  color: #0066cc;
  margin: 0 0 15px 0 !important;
  padding: 0 !important;
  font-family: 'Lato', sans-serif !important;
  text-transform: capitalize;
}

.site-footer .footer-widget-area .textwidget p {
  margin: 0 0 10px 0 !important;
  padding: 0 !important;
  font-family: 'Lato', sans-serif !important;
  font-size: 14px;
  line-height: 1.6;
  color: #333;
}

.site-footer .footer-widget-area .menu {
  list-style: none;
  margin: 0 !important;
  padding: 0 !important;
}

.site-footer .footer-widget-area .menu li {
  margin: 0 0 8px 0 !important;
  padding: 0 !important;
  list-style: none;
}

.site-footer .footer-widget-area .menu a {
  color: #0066cc;
  text-decoration: none;
  font-family: 'Lato', sans-serif !important;
  font-size: 14px;
  transition: color 0.3s ease;
}

.site-footer .footer-widget-area .menu a:hover {
  color: #004499;
  text-decoration: underline;
}

.site-footer .site-info {
  text-align: center;
  border-top: 1px solid #ddd;
  padding-top: 20px;
  font-size: 13px;
  color: #333;
  font-family: 'Lato', sans-serif !important;
}

.site-footer .site-info p {
  margin: 0;
  padding: 0;
}

.site-footer .site-info a {
  color: #0066cc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-footer .site-info a:hover {
  color: #004499;
  text-decoration: underline;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .home-bottom .wrap {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .site-footer .footer-widgets-container {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 25px;
  }
}

@media (max-width: 768px) {
  .site-header .header-top {
    flex-direction: column;
    min-height: auto;
    gap: 15px;
    padding: 15px 20px;
  }

  .site-header .header-widget-wrapper {
    margin-left: 0;
    padding-left: 0;
    width: 100%;
  }

  .site-header .header-widget-area h1 {
    font-size: 18px !important;
    text-align: center;
  }

  .site-header .header-widget-area .textwidget p {
    font-size: 14px !important;
  }

  .site-header .site-title,
  .site-header .site-title a {
    font-size: 22px !important;
  }

  .manual-slider {
    height: 300px;
  }

  .home-bottom .wrap {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }

  .nav-primary.subnav ul {
    flex-direction: column;
    padding: 10px 0;
  }

  .nav-primary.subnav a {
    padding: 12px 20px !important;
    width: 100%;
    border-left: 4px solid transparent;
    border-bottom: none;
  }

  .nav-primary.subnav a:hover {
    border-left-color: #fff !important;
  }

  .nav-primary.subnav li.current a,
  .nav-primary.subnav li.active a {
    border-left-color: #fff !important;
    border-bottom-color: transparent !important;
  }

  .site-footer .footer-widgets-container {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }

  .site-footer {
    padding: 25px 15px !important;
  }
}

@media (max-width: 480px) {
  .site-header .site-title,
  .site-header .site-title a {
    font-size: 18px !important;
  }

  .site-header .header-widget-area h1 {
    font-size: 16px !important;
  }

  .manual-slider {
    height: 200px;
  }

  .site-header .nav-primary a,
  .site-header .ast-main-header-nav-primary a {
    padding: 12px 15px !important;
    font-size: 12px;
  }
}

/* ===== FOOTER FINAL - GRIS OSCURO #2c3e50 ===== */
.site-footer {
  background-color: #2c3e50 !important;
  border-top: 1px solid #1a252f !important;
  padding: 40px 20px !important;
  color: #ccc !important;
}

.site-footer .footer-widgets {
  max-width: 1200px;
  margin: 0 auto 30px;
  padding: 0;
  background: transparent !important;
}

.site-footer .footer-widgets-container {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 30px;
  width: 100%;
  background: transparent !important;
}

.site-footer .footer-widget-area {
  padding: 0 !important;
  background: transparent !important;
}

.site-footer .footer-widget-area .widget {
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
}

.site-footer .footer-widget-area .widget-title {
  font-size: 16px;
  font-weight: 700;
  color: #0066cc;
  margin: 0 0 15px 0 !important;
  padding: 0 !important;
  font-family: Lato, sans-serif !important;
}

.site-footer .footer-widget-area .textwidget {
  color: #ccc !important;
  background: transparent !important;
}

.site-footer .footer-widget-area .textwidget p {
  margin: 0 0 10px 0 !important;
  padding: 0 !important;
  font-family: Lato, sans-serif !important;
  font-size: 14px;
  line-height: 1.6;
  color: #ccc !important;
}

.site-footer .footer-widget-area .textwidget strong {
  color: #ccc !important;
}

.site-footer .footer-widget-area .menu {
  list-style: none;
  margin: 0 !important;
  padding: 0 !important;
}

.site-footer .footer-widget-area .menu li {
  margin: 0 0 8px 0 !important;
  padding: 0 !important;
  list-style: none;
}

.site-footer .footer-widget-area .menu a {
  color: #0066cc;
  text-decoration: none;
  font-family: Lato, sans-serif !important;
  font-size: 14px;
  transition: color 0.3s ease;
}

.site-footer .footer-widget-area .menu a:hover {
  color: #66b3ff;
  text-decoration: underline;
}

.site-footer .site-info {
  text-align: center;
  border-top: 1px solid #1a252f;
  padding-top: 20px;
  font-size: 13px;
  color: #999;
  font-family: Lato, sans-serif !important;
}

.site-footer .site-info p {
  margin: 0;
  padding: 0;
  color: #999;
}

.site-footer .site-info a {
  color: #0066cc;
  text-decoration: none;
}

.site-footer .site-info a:hover {
  color: #66b3ff;
}

@media (max-width: 1024px) {
  .site-footer .footer-widgets-container {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 25px;
  }
}

@media (max-width: 768px) {
  .site-footer .footer-widgets-container {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }

  .site-footer {
    padding: 25px 15px !important;
  }
}

/* ===== FORMULARIO WPFORMS EN FOOTER - TEXTO BLANCO ===== */
.site-footer .wpforms-container label {
  color: #ffffff !important;
}

.site-footer .wpforms-field-label {
  color: #ffffff !important;
}

.site-footer .wpforms-field-sublabel {
  color: #ccc !important;
}

.site-footer .wpforms-form input[type="text"],
.site-footer .wpforms-form input[type="email"],
.site-footer .wpforms-form textarea {
  color: #333 !important;
  background-color: #ffffff !important;
}

.site-footer .wpforms-form input[type="text"]::placeholder,
.site-footer .wpforms-form input[type="email"]::placeholder,
.site-footer .wpforms-form textarea::placeholder {
  color: #999 !important;
}

.site-footer .wpforms-submit {
  background-color: #0066cc !important;
  color: #ffffff !important;
}

.site-footer .wpforms-submit:hover {
  background-color: #004499 !important;
}

/* ===== PÁGINA QUIÉNES SOMOS ===== */
.entry-header .entry-title {
  margin-left: 20px !important;
  margin-right: 20px !important;
  padding: 20px 0 !important;
}

.entry-content {
  padding: 0 20px !important;
}
