/*
Theme Name: DTF Direct
Author: Tu Nombre
Description: Tema personalizado para dtfdirect.es
Version: 1.0
Text Domain: dtfdirect
*/

/* ===== VARIABLES Y RESET ===== */
:root {
  --primary-color: #ff2a00;
  --text-color: #222;
  --bg-color: #fff;
  --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: var(--font-main);
  color: var(--text-color);
  background-color: var(--bg-color);
  overflow-x: hidden;
}

/* ===== CABECERA ===== */
.site-header {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 5%;
  max-width: 1400px;
  margin: 0 auto;
}
.logo a {
  text-decoration: none;
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--primary-color);
}
.main-menu ul {
  display: flex;
  list-style: none;
  gap: 25px;
}
.main-menu a {
  text-decoration: none;
  color: #222;
  font-weight: 600;
  font-size: 1.05rem;
}
.main-menu a:hover {
  color: var(--primary-color);
}

/* ===== SLIDER ===== */
.slider-container {
  position: relative;
  width: 100%;
  height: 54vh;
  overflow: hidden;
}
.slides {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.8s ease-in-out;
}
.slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
}
.slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
}
.slide-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 12px;
}
.slide h2 {
  font-size: 2.4rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}
.slide p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}
.slider-indicators {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}
.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
}
.indicator.active {
  background-color: white;
}

/* ===== CTAS ===== */
.cta-sections {
  padding: 60px 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}
.cta-card {
  background: #ffebee;
  border-radius: 16px;
  padding: 35px 30px;
  max-width: 420px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}
.cta-card:hover {
  transform: translateY(-4px);
}
.cta-icon {
  font-size: 2.4rem;
  color: white;
  background: #c62828;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.cta-card h3 {
  font-size: 1.6rem;
  margin-bottom: 16px;
  color: #222;
}
.cta-card p {
  margin-bottom: 22px;
  color: #444;
  line-height: 1.6;
}
.cta-button {
  display: inline-block;
  background-color: #c62828;
  color: white;
  padding: 12px 32px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: background 0.3s ease, transform 0.2s ease;
}
.cta-button:hover {
  background-color: #b71c1c;
  transform: translateY(-2px);
}

/* ===== PRESUPUESTO ===== */
.presupuesto-section {
  width: 100%;
  min-height: 100vh;
  background-color: #c62828;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  color: white;
  position: relative;
  box-sizing: border-box;
}
.presupuesto-container {
  display: flex;
  width: 100%;
  max-width: 1400px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}
.presupuesto-left,
.presupuesto-right {
  padding: 50px;
  box-sizing: border-box;
}
.presupuesto-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  z-index: 10;
}
.presupuesto-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(0, 0, 0, 0.15);
}
.form-select {
  width: 100%;
  padding: 18px 45px 18px 25px;
  border-radius: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background:
    rgba(255, 255, 255, 0.12)
    url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffffff' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E")
    no-repeat right 20px center;
  background-size: 20px;
  color: white;
  font-family: var(--font-main);
  font-size: 1.4rem;
  margin-bottom: 30px;
  appearance: none;
  cursor: pointer;
  position: relative;
  z-index: 1000;
}
.form-select:focus {
  outline: none;
  border-color: white;
  background-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
}
.form-select option {
  color: #000 !important;
  background-color: #fff !important;
}
.presupuesto-left h2 {
  font-size: 2.8rem;
  margin-bottom: 15px;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.presupuesto-subtitle {
  font-size: 1.35rem;
  margin-bottom: 35px;
  opacity: 0.95;
  font-weight: 300;
  max-width: 90%;
}
.form-label {
  display: block;
  margin-bottom: 12px;
  font-weight: 600;
  font-size: 1.15rem;
}
.opciones-servicio {
  margin-top: 25px;
}
.opciones-titulo {
  display: block;
  margin-bottom: 20px;
  font-weight: 600;
  font-size: 1.25rem;
}
.opcion-card {
  display: block;
  padding: 22px;
  background: rgba(0,0,0,0.25);
  border-radius: 18px;
  margin-bottom: 18px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}
.opcion-card:hover {
  background: rgba(0,0,0,0.35);
  transform: translateX(4px);
}
.opcion-card.active {
  background: rgba(255,255,255,0.18);
  border-color: white;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.3);
}
.opcion-card input[type="radio"] {
  display: none;
}
.opcion-contenido {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.opcion-contenido strong {
  font-size: 1.35rem;
  display: block;
}
.opcion-descripcion {
  font-size: 1.05rem;
  opacity: 0.9;
  line-height: 1.5;
  display: block;
}
.resumen-box {
  background: rgba(0,0,0,0.25);
  border-radius: 24px;
  padding: 35px;
  margin-bottom: 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.resumen-item {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  font-size: 1.45rem; /* Aumentado */
  border-bottom: 1px dashed rgba(255,255,255,0.25);
}
.resumen-item:last-child {
  border-bottom: none;
}
.envio-item {
  font-style: italic;
  opacity: 0.92;
  font-weight: 500;
}
.resumen-separator {
  height: 2px;
  background: white;
  margin: 15px 0 20px;
  opacity: 0.7;
}
.resumen-total {
  display: flex;
  justify-content: space-between;
  padding-top: 10px;
  font-size: 2.6rem; /* Aumentado */
  font-weight: bold;
  margin-top: 5px;
}
.nota-iva {
  text-align: center;
  font-size: 0.95rem;
  opacity: 0.85;
  margin-top: 15px;
  font-style: italic;
  line-height: 1.5;
}
.presupuesto-button {
  width: 100%;
  padding: 20px;
  font-size: 1.45rem;
  font-weight: bold;
  background: white;
  color: #ff2a00;
  border: none;
  border-radius: 50px;
  box-shadow: 0 6px 25px rgba(0,0,0,0.35);
  transition: all 0.3s ease;
  cursor: pointer;
  font-family: var(--font-main);
}
.presupuesto-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.45);
  background: #f8f8f8;
}

/* ===== INTRODUCCIÓN ===== */
.intro-text {
  padding: 60px 5%;
  background-color: #fff;
  margin: 80px 0;
}
.intro-container {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}
.intro-image {
  float: right;
  width: 48%;
  height: auto;
  margin: 0 0 20px 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.intro-container p {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #222;
  margin-bottom: 1.4rem;
  text-align: justify;
}
.intro-text--imagen-izquierda .intro-image {
  float: left;
  margin: 0 30px 20px 0;
}

/* ===== SECCIÓN DE CONTACTO MEJORADA ===== */
.contacto-section,
.presupuesto-section-contacto {
  padding: 80px 5%;
  background-color: #474747; /* Gris claro suave */
  color:#ffd8d1;
}
.contacto-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 50px;
}
.contacto-formulario,
.contacto-datos {
  flex: 1;
}
.contacto-formulario h2 {
  font-size: 2.4rem;
  color: #ff5532;
  margin-bottom: 15px;
}
.contacto-formulario p {
  font-size: 1.15rem;
  color: #ffd8d1;
  margin-bottom: 30px;
  line-height: 1.6;
}
.contacto-formulario .form-field {
  margin-bottom: 20px;
}
.contacto-formulario input,
.contacto-formulario textarea {
  width: 100%;
  padding: 16px;
  border: 1px solid #b8b8b8;
  border-radius: 12px;
  font-family: var(--font-main);
  font-size: 1.05rem;
}
.contacto-formulario input:focus,
.contacto-formulario textarea:focus {
  outline: none;
  border-color: #ff2a00;
  box-shadow: 0 0 0 3px rgba(255, 42, 0, 0.1);
}
.contacto-formulario .cta-button {
  width: 100%;
  padding: 16px;
  font-size: 1.2rem;
  background-color: #ff5532;
  color: white;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.3s ease;
}
.contacto-formulario .cta-button:hover {
  background-color: #c74228;
}
.contacto-datos h3 {
  font-size: 1.8rem;
  margin-bottom: 25px;
  color: #ff5532;
}
.contacto-datos p {
  font-size: 1.1rem;
  margin-bottom: 16px;
  line-height: 1.6;
}
.contacto-datos a {
  color: #ffd8d1;
  text-decoration: none;
  font-weight: 600;
}
.contacto-datos a:hover {
  text-decoration: underline;
}
.horario {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #666666;
}
.horario h4 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: #ff5532;
}

/* ===== FOOTER ===== */
.site-footer {
  background-color: #333;
  color: white;
  height: 250px;
  padding: 30px 5%;
  box-sizing: border-box;
  margin-top: 120px;
}
.footer-container {
  display: flex;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  height: calc(250px - 60px - 20px);
}
.footer-col {
  flex: 1;
  padding: 0 20px;
}
.footer-logo a {
  font-size: 1.8rem;
  font-weight: bold;
  color: white;
  text-decoration: none;
}
.footer-col h3 {
  font-size: 1.3rem;
  margin-bottom: 16px;
  color: white;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col ul li {
  margin-bottom: 10px;
}
.footer-col ul li a {
  color: #cccccc;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.2s ease;
}
.footer-col ul li a:hover {
  color: white;
}
.footer-bottom {
  text-align: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #555;
  font-size: 0.95rem;
  color: #aaaaaa;
}

/* ===== CARRITO EN CABECERA ===== */
.header-cart {
  margin-left: 25px;
  display: flex;
  align-items: center;
}
.header-cart a {
  color: #222;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
  padding: 8px;
  border-radius: 50%;
}
.header-cart a:hover {
  color: var(--primary-color);
  transform: scale(1.1);
  background-color: rgba(255, 42, 0, 0.05);
}
.header-cart svg {
  stroke-width: 1.8;
}

/* ===== BOTÓN VOLVER ARRIBA ===== */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 999;
}
.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.scroll-to-top:hover {
  background-color: #cc2200;
  transform: translateY(-2px);
}
.scroll-to-top svg {
  stroke: white;
  width: 20px;
  height: 20px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .presupuesto-container {
    flex-direction: column;
    border-radius: 20px;
  }
  .presupuesto-left, .presupuesto-right {
    padding: 40px;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.2);
  }
  .presupuesto-right {
    background: transparent;
  }
  .presupuesto-left h2 {
    font-size: 2.4rem;
  }
  .presupuesto-subtitle {
    font-size: 1.2rem;
    max-width: 100%;
  }
  .header-container {
    flex-wrap: wrap;
  }
  .main-menu ul {
    width: 100%;
    justify-content: center;
    margin-top: 15px;
  }
  .header-cart {
    margin-left: 15px;
    margin-top: 10px;
  }
  .contacto-container {
    flex-direction: column;
  }
}
@media (max-width: 900px) {
  .slider-container {
    height: 40vh;
  }
  .intro-text {
    padding: 40px 5%;
  }
  .intro-image {
    float: none;
    width: 100%;
    margin: 0 0 30px 0;
    border-radius: 12px;
  }
  .intro-container p {
    font-size: 1.05rem;
    margin-bottom: 1.2rem;
  }
  .presupuesto-section {
    padding: 30px 15px;
    min-height: auto;
  }
  .presupuesto-container {
    border-radius: 16px;
  }
  .presupuesto-left, .presupuesto-right {
    padding: 30px 25px;
  }
  .presupuesto-left h2 {
    font-size: 2.1rem;
  }
  .presupuesto-subtitle {
    font-size: 1.15rem;
    margin-bottom: 25px;
  }
  .form-select {
    font-size: 1.25rem;
    padding: 16px 40px 16px 20px;
    background-position: right 15px center;
    background-size: 18px;
  }
  .resumen-total {
    font-size: 1.9rem;
  }
  .presupuesto-button {
    padding: 18px;
    font-size: 1.35rem;
  }
}
@media (max-width: 768px) {
  .site-footer {
    height: auto;
    padding: 30px 5%;
  }
  .footer-container {
    flex-direction: column;
    height: auto;
    gap: 30px;
  }
  .footer-col {
    text-align: center;
  }
  .footer-col ul li {
    margin-bottom: 12px;
  }
}