/*
Theme Name: Betheme Child
Theme URI: https://themes.muffingroup.com/betheme
Author: Muffin group
Author URI: https://muffingroup.com
Description: Child Theme for Betheme
Template: betheme
Version: 2.0.2
*/

/* ============================================
   CALCULADORA TOUR VIRTUAL 360 - ESTILOS
   ============================================ */

/* Contenedor principal */
.calculadora-page {
  background-color: #DEF4C6;
  min-height: 100vh;
  padding: 40px 0;
}

.calculadora-page .section_wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.calculadora-header {
  text-align: center;
  margin-bottom: 50px;
  padding: 30px 20px;
  background: linear-gradient(135deg, #1C7C54 0%, #1B512D 100%);
  color: white;
  border-radius: 15px;
  max-width: 100%;
}

.calculadora-header h1 {
  font-size: 2.5em;
  margin-bottom: 10px;
  font-weight: 700;
  color: white;
}

.calculadora-subtitle {
  font-size: 1.2em;
  opacity: 0.95;
  margin: 0;
}

/* Layout de dos columnas */
.calculadora-container {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 30px;
  margin-bottom: 50px;
  max-width: 100%;
}

@media (max-width: 1024px) {
  .calculadora-container {
    grid-template-columns: 1fr;
  }
}

/* Formulario */
.calculadora-form {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.cot-form-section {
  margin-bottom: 40px;
}

.cot-form-section h2 {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: #1B512D;
  font-weight: 600;
}

.cot-section-description {
  color: #718096;
  margin-bottom: 20px;
}

/* Campos del formulario */
.cot-field {
  margin-bottom: 25px;
}

.cot-field label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #1B512D;
}

.cot-field-label {
  font-size: 1em;
}

.cot-field-required {
  color: #e53e3e;
  margin-left: 3px;
}

.cot-field-optional {
  font-weight: 400;
  color: #718096;
  font-size: 0.9em;
  margin-left: 5px;
}

.cot-field input[type="number"],
.cot-field input[type="text"] {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1em;
  transition: all 0.3s ease;
}

.cot-field input:focus {
  outline: none;
  border-color: #1C7C54;
  box-shadow: 0 0 0 3px rgba(28, 124, 84, 0.1);
}

.cot-field-help {
  display: block;
  margin-top: 5px;
  color: #718096;
  font-size: 0.85em;
}

/* Grid de add-ons */
.cot-addons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.cot-addon-card {
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  transition: all 0.3s ease;
  background: white;
  overflow: hidden;
}

.cot-addon-card:hover {
  border-color: #1C7C54;
  box-shadow: 0 4px 12px rgba(28, 124, 84, 0.15);
  transform: translateY(-2px);
}

.cot-addon-label {
  cursor: pointer;
  display: block;
  margin: 0;
}

.cot-addon-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cot-addon-card input:checked + .cot-addon-content {
  background: linear-gradient(135deg, #1C7C54 0%, #1B512D 100%);
  color: white;
}

.cot-addon-content {
  padding: 25px;
  text-align: center;
  transition: all 0.3s ease;
}

.cot-addon-icon {
  font-size: 3em;
  margin-bottom: 15px;
}

.cot-addon-card input:checked + .cot-addon-content .cot-addon-icon {
  transform: scale(1.1);
}

.cot-addon-content h3 {
  font-size: 1.2em;
  margin: 0 0 10px 0;
  font-weight: 600;
  color: inherit;
}

.cot-addon-content p {
  font-size: 0.9em;
  margin: 0;
  opacity: 0.85;
  color: inherit;
}

/* Sidebar con resumen */
.calculadora-sidebar {
  position: relative;
}

.calculadora-sticky {
  position: sticky;
  top: 20px;
}

#cot-resumen {
  background: white;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  margin-bottom: 20px;
}

.cot-resumen-box h3 {
  font-size: 1.3em;
  margin: 0 0 20px 0;
  color: #1B512D;
  font-weight: 600;
}

.cot-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #e2e8f0;
}

.cot-item:last-child {
  border-bottom: none;
}

.cot-label {
  font-weight: 500;
  color: #4a5568;
}

.cot-value {
  font-weight: 600;
  color: #1B512D;
}

.cot-item-destacado {
  background: #f7fafc;
  padding: 15px;
  margin: 10px -10px;
  border-radius: 8px;
  border: none;
}

.cot-subitem {
  display: flex;
  justify-content: space-between;
  padding: 5px 15px;
  font-size: 0.9em;
}

.cot-label-small {
  color: #718096;
  font-size: 0.9em;
}

.cot-value-small {
  color: #718096;
  font-size: 0.9em;
}

.cot-addons-section {
  margin: 20px 0;
  padding-top: 15px;
  border-top: 2px solid #e2e8f0;
}

.cot-addons-section h4 {
  font-size: 1.1em;
  margin: 0 0 15px 0;
  color: #1B512D;
  font-weight: 600;
}

.cot-addon-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
}

.cot-descuento {
  background: #f0fdf4;
  padding: 8px 15px;
  margin: 5px -10px 10px;
  border-radius: 6px;
}

.cot-tachado {
  text-decoration: line-through;
  opacity: 0.6;
}

.cot-ahorro {
  color: #1C7C54;
  font-weight: 600;
}

.cot-totales {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 2px solid #e2e8f0;
}

.cot-total {
  background: linear-gradient(135deg, #1C7C54 0%, #1B512D 100%);
  color: white;
  padding: 15px;
  margin: 15px -15px -15px;
  border-radius: 0 0 15px 15px;
  font-size: 1.2em;
}

.cot-total .cot-label,
.cot-total .cot-value {
  color: white;
}

/* Mensajes de error y advertencia */
.cot-error {
  color: #e53e3e;
  background: #fff5f5;
  padding: 15px;
  border-radius: 8px;
  border-left: 4px solid #e53e3e;
}

.cot-warning {
  color: #d97706;
  background: #fffbeb;
  padding: 15px;
  border-radius: 8px;
  border-left: 4px solid #d97706;
  line-height: 1.6;
}

.cot-contact-link {
  color: #1C7C54;
  font-weight: 600;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.cot-contact-link:hover {
  color: #1B512D;
}

/* Botón de compra */
.cot-btn-comprar {
  width: 100%;
  padding: 18px 30px;
  background: linear-gradient(135deg, #1C7C54 0%, #1B512D 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.1em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(28, 124, 84, 0.4);
}

.cot-btn-comprar:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(28, 124, 84, 0.5);
}

.cot-btn-comprar:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.cot-btn-comprar:active:not(:disabled) {
  transform: translateY(0);
}

/* Garantías */
.cot-garantias {
  background: #f7fafc;
  padding: 20px;
  border-radius: 12px;
  margin-top: 20px;
}

.cot-garantias h4 {
  font-size: 1em;
  margin: 0 0 15px 0;
  color: #1B512D;
  font-weight: 600;
}

.cot-garantias ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cot-garantias li {
  padding: 8px 0;
  color: #4a5568;
  font-size: 0.95em;
}

/* Información adicional */
.calculadora-info {
  background: white;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  margin-top: 30px;
  max-width: 100%;
}

.calculadora-info h2 {
  text-align: center;
  font-size: 2em;
  margin-bottom: 40px;
  color: #1B512D;
}

.cot-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}

.cot-step {
  text-align: center;
  padding: 20px;
}

.cot-step-number {
  display: inline-block;
  width: 60px;
  height: 60px;
  line-height: 60px;
  background: linear-gradient(135deg, #1C7C54 0%, #1B512D 100%);
  color: white;
  border-radius: 50%;
  font-size: 1.5em;
  font-weight: 700;
  margin-bottom: 15px;
}

.cot-step h3 {
  font-size: 1.3em;
  margin: 15px 0 10px;
  color: #1B512D;
}

.cot-step p {
  color: #718096;
  font-size: 0.95em;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
  .calculadora-header h1 {
    font-size: 1.8em;
  }

  .calculadora-subtitle {
    font-size: 1em;
  }

  .calculadora-form,
  #cot-resumen,
  .calculadora-info {
    padding: 20px;
  }

  .cot-addons-grid {
    grid-template-columns: 1fr;
  }

  .cot-steps {
    grid-template-columns: 1fr;
  }

  .calculadora-sticky {
    position: relative;
    top: 0;
  }
}
