/* ===== RESET Y BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #8320f3 0%, #fc2187 100%);
    min-height: 100vh;
    padding: 20px;
}

/* ===== ESTRUCTURA PRINCIPAL ===== */
.app-container {
    max-width: 1200px;
    width: 90%;
    background: rgb(255, 255, 255);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    overflow: hidden;
    margin: 20px auto;
}

.app-container:has(.app-header.hidden) .app-main {
    padding-top: 60px;
    min-height: calc(100vh - 40px);
}

.app-main {
    padding: 20px;
    min-height: 60vh;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== HEADER ===== */
.app-header {
    background: linear-gradient(135deg, #E20B7E 0%, #ff6b6b 100%);
    color: white;
    padding: 25px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    height: auto;
}

.app-header.hidden {
    transform: translateY(-100%);
    opacity: 0;
    height: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

.app-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.app-header::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.header-content {
    position: relative;
    z-index: 1;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    margin-bottom: 10px;
    --logo-size: 30px;
}



.app-header .logo{
width: 50px;
height: 50px;
border-radius: 50%;
border: 3px solid #e01a1a; /* mantiene el aro blanco existente */
background: #fff;
object-fit: cover; /* asegura que siempre se vea bien si no es perfectamente cuadrado */
box-shadow: 0 8px 20px rgba(0,0,0,.2);
}

.header-text {
    text-align: left;
}

.app-header h1 {
    font-size: 1.8rem;
    margin-bottom: 5px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.header-subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 300;
    margin: 0;
}

/* ===== NAVEGACIÓN ENTRE PASOS ===== */
.form-step {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.form-step-active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.app-main:has(+ .app-footer .progress-step:nth-child(4).active) {
    margin-top: -80px;
}

/* ===== PASO 1: TIPO DE EVENTO ===== */
.event-options {
    display: grid;
    gap: 15px;
    margin: 30px 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.event-btn {
    padding: 18px;
    border: none;
    border-radius: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    max-width: 300px;
    margin: 0 auto;
}

.event-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* ===== PASO 2: FECHA ===== */
.date-section {
    text-align: center;
    padding: 20px 0;
}

.form-step h2 {
    font-size: 1.6rem;
    color: #2d3748;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    padding: 0 20px;
    line-height: 1.2;
}

.date-subtitle {
    color: #2d3748;
    font-size: 1.2rem;
    margin-bottom: 30px;
    font-weight: 400;
    text-align: center;
}

.calendar-container {
    position: relative;
    max-width: 300px;
    margin: 0 auto 40px auto;
}

.calendar-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    pointer-events: none;
}

.date-input {
    width: 100%;
    height: 60px;
    font-size: 1.1rem;
    border: 2px solid #e1e5e9;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,.1);
    transition: all .3s ease;
    padding-left: 64px;
    padding-right: 64px;
    text-align: center;
    color: transparent;
    caret-color: transparent;
}

.date-input::-webkit-datetime-edit {
    text-align: center;
    color: transparent;
}

.date-input::-webkit-datetime-edit-text,
.date-input::-webkit-datetime-edit-month-field,
.date-input::-webkit-datetime-edit-day-field,
.date-input::-webkit-datetime-edit-year-field {
    text-align: center;
    padding: 0 .15em;
}

.date-input::-webkit-calendar-picker-indicator {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.date-input::-webkit-inner-spin-button,
.date-input::-webkit-clear-button {
    display: none;
}

.custom-placeholder {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    color: #999;
    z-index: 1;
    pointer-events: none;
}

.date-display {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    pointer-events: none;
    color: #111;
    font-weight: 500;
    z-index: 2;
    white-space: nowrap;
}

.date-input:valid ~ .custom-placeholder,
.date-input:focus ~ .custom-placeholder {
    display: none;
}

.date-input:focus {
    border-color: #E20B7E;
    box-shadow: 0 4px 20px rgba(226,11,126,.2);
    transform: translateY(-2px);
    animation: pulse 0.3s ease;
}

.date-input:hover {
    border-color: #E20B7E;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* ===== ELEMENTOS DE FORMULARIO ===== */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #2d3748;
    font-size: 15px;
}

.form-input, .form-select {
    width: 100%;
    padding: 16px;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
}

.form-input:focus, .form-select:focus {
    outline: none;
    border-color: #E20B7E;
    box-shadow: 0 0 0 3px rgba(226, 11, 126, 0.1);
}

/* ===== PASO 3: SERVICIOS ===== */
.step-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* En Paso 3 (paquetes y servicios), queremos más fuerte */
#packagesSection .date-subtitle,
.services-section .date-subtitle {
  font-weight: 500;
}

.packages-section, .services-section, .special-services {
    margin-bottom: 0px;
}

/* Tarjetas de servicios */
.service-card, .package-card {
    border: 2px solid #f0d2d2;
    border-radius: 16px;
    padding: 0;
    transition: all 0.3s ease;
    background: white;
    overflow: hidden;
    position: relative;
}

.service-header, .package-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    gap: 8px;
}

.service-header:hover, .package-header:hover {
    background: #f8f9fa;
}

.service-name,
.package-name {
  font-weight: 600;
  font-size: 20px;   
  color: #2d3748;
  margin: 0;
  flex: 1;
  line-height: 1.4;
  cursor: pointer;
  background: transparent !important;
}



/* Paquetes un poco más protagonistas */
.package-name {
  color: #E20B7E;
}

.toggle-icon {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Acordeones */
.service-details, .package-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.service-card.expanded .service-details,
.package-card.expanded .package-details {
    max-height: 1000px;
}

.service-card.expanded .toggle-icon,
.package-card.expanded .toggle-icon {
    transform: rotate(180deg);
}

/* Cuando una card está seleccionada, cambia el color del nombre */
.service-card.selected .service-name,
.package-card.selected .package-name {
  color: #E20B7E;   /* Rosa */
  font-weight: 800;    /* Más bold que el normal (600/700) */
}


/* Contenido */
.service-content, .package-content {
    padding: 0 20px 20px;
}

.service-description, .package-includes {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.package-includes ul {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.package-includes li {
    padding: 6px 0;
    position: relative;
    padding-left: 22px;
    font-size: 14px;
}

.package-includes li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4CAF50;
    font-weight: bold;
    font-size: 14px;
}

.ahorro-text {
    background: #e8f5e8;
    padding: 8px 12px;
    border-radius: 8px;
    color: #2d3748;
    font-weight: 600;
    margin-top: 10px;
    border-left: 4px solid #4CAF50;
}

/* Selectores */
.service-selector, .package-selector {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* Contenedor clickeable */
.checkbox-container {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* Input real ocupa TODA el área, pero no se ve */
.checkbox-container input[type="checkbox"] {
  position: absolute;
  inset: 0;              
  opacity: 0;
  margin: 0;
  cursor: pointer;
  z-index: 2;           
}

/* El texto funciona como botón */
/* Botón CTA base (igual que antes) */
.checkbox-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 20px;
  border-radius: 10px;
  background: #E20B7E;
  color: white;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease, transform .1s ease, box-shadow .2s ease;
  text-align: center;
  min-width: 180px;
}

.checkbox-label:hover {
  background: #c10968;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(226, 11, 126, 0.25);
}

.checkbox-label:active {
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(226, 11, 126, 0.3);
}

/* 🔥 Estado seleccionado */
.service-checkbox:checked + .checkbox-label,
.package-checkbox:checked + .checkbox-label {
  background: #22c55e; /* verde */
  color: white;
  font-weight: 800;
}


/* ✅ Añadimos el check */
.service-checkbox:checked + .checkbox-label::after,
.package-checkbox:checked + .checkbox-label::after {
  content: " ✓";
  font-size: 1.1rem;
  font-weight: 900;
  margin-left: 6px;
}

/* Accesibilidad: focus visible al tabular */
.checkbox-label:focus-visible {
  outline: 2px solid #E20B7E;
  outline-offset: 2px;
}


/* Accesibilidad: enfoque visible si navegan con teclado */
.checkbox-container input[type="checkbox"]:focus-visible + .checkbox-label {
  outline: 2px solid #E20B7E;
  outline-offset: 2px;
}

/* Limpia estilos viejos (si existían) */
.custom-checkbox { display: none !important; }


/* Esconde el checkbox nativo (sin ocupar el área) */
.service-checkbox,
.package-checkbox {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none; 
}


.service-checkbox:checked ~ .custom-checkbox {
    background: #E20B7E;
    border-color: #E20B7E;
}

.service-checkbox:checked ~ .custom-checkbox::after {
    transform: scale(1);
}

.service-checkbox:checked ~ .checkbox-label {
    color: #E20B7E;
    font-weight: 600;
}

.service-card.selected, .package-card.selected {
    border-color: #E20B7E;
    box-shadow: 0 8px 25px rgba(226, 11, 126, 0.15);
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(226, 11, 126, 0.10) 0%, rgba(255, 107, 107, 0.10) 100%);
}




.service-card.selected .service-name,
.package-card.selected .package-name {
  color: #E20B7E;      /* Rosa destacado */
  font-weight: 800;    /* un poco más bold al seleccionar */
}

.service-card.selected .service-header,
.package-card.selected .package-header {
  background: linear-gradient(135deg, rgba(226, 11, 126, 0.12) 0%, rgba(255, 107, 107, 0.12) 100%);
}

/* Elementos especiales */
.video-link {
  font-size: 1rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #444;
  text-decoration: none;
  transition: color .2s ease;
}

.video-link:hover {
  color: #E20B7E;
  text-decoration: underline;
}

.video-link svg {
  width: 22px;   /* ícono más grande */
  height: 22px;
}

/* Grids */
.packages-grid, .services-grid, .special-services {
    display: grid;
    gap: 12px;
    margin-bottom: 12px;
}

.packages-grid {
    margin-bottom: 40px;
}
.action-container {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.expander{ 
    width:44px;
    height:44px;
    border:0;
    background:transparent;
    cursor:pointer;
    border-radius:10px; 
}

.service-card.expanded .caret{ 
    transform: rotate(180deg); 
    transition: transform .2s ease; 
}

/* ===== Botón expander (triangulito) ===== */
/* Botón del expander (área grande para tocar) */
.expander{
  appearance:none; 
  -webkit-appearance: none;
  border:0; 
  background:transparent !important; 
  cursor:pointer;
  display:grid; 
  place-items:center;
  width:48px; 
  height:48px; /* más grande */
  border-radius:12px;
  transition:background .2s ease, transform .08s ease;
}


/* Nunca pintar fondo en hover/active/focus (solo caret rota) */
.expander:hover,
.expander:active,
.expander:focus {
  background: transparent !important;
  box-shadow: none !important;
}

/* Mantén accesibilidad: solo mostrar outline con teclado */
.expander:focus { outline: none; }
.expander:focus-visible {
  outline: 2px solid #E20B7E;
  outline-offset: 2px;
  border-radius: 10px;
}

/* Icono caret: rotación al expandir */
.caret-svg {
  width: 24px;
  height: 24px;
  color: #E20B7E;   /* el rosa */
  transition: transform .2s ease, color .2s ease;
}

/* Rotación al expandir (aprovecha tu clase .expanded) */
.service-card.expanded .caret-svg,
.package-card.expanded .caret-svg{
  transform:rotate(180deg);
}

/* ===== A11y: foco visible para teclado ===== */
.expander:focus-visible,
.service-name:focus-visible,
.package-name:focus-visible,
.checkbox-label:focus-visible {
  outline: 2px solid #E20B7E;
  outline-offset: 2px;
  border-radius: 8px;
}

/* Quitar highlight gris al tocar (iOS/Android) */
.expander,
.service-name,
.package-name,
.checkbox-label {
  -webkit-tap-highlight-color: transparent; /* iOS/Android */
}

/* Evitar flash gris en estado activo de los labels */
.service-name:active,
.package-name:active,
.checkbox-label:active,
.service-name:focus,
.package-name:focus,
.checkbox-label:focus {
  background: transparent !important;
  box-shadow: none !important;
  outline: none;                    /* sin borde por foco del mouse/touch */
}

/* Pero sí outline accesible cuando navegan con teclado */
.service-name:focus-visible,
.package-name:focus-visible,
.checkbox-label:focus-visible {
  outline: 2px solid #E20B7E;
  outline-offset: 2px;
  border-radius: 8px;
}

/* ===== PASO 4: RESUMEN ===== */
.quote-success {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 0 25px 0;
}

.success-icon {
    margin-bottom: 25px;
}

#step4.form-step-active {
    padding: 30px 0;
}

/* Resumen elegante */
.quote-summary {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 20px;
    padding: 30px;
    margin: 30px 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid #e8e8e8;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.services-list {
    margin-bottom: 25px;
}

.service-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #e8e8e8;
    position: relative;
}

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

.service-item::before {
    content: '•';
    color: #E20B7E;
    font-size: 20px;
    margin-right: 12px;
}

.service-item span:first-child {
    font-weight: 500;
    color: #2d3748;
    flex: 1;
    font-size: 15px;
}

.service-item span:last-child {
    font-weight: 600;
    color: #E20B7E;
    font-size: 16px;
    background: linear-gradient(135deg, rgba(226, 11, 126, 0.1) 0%, rgba(255, 107, 107, 0.1) 100%);
    padding: 6px 12px;
    border-radius: 8px;
    min-width: 80px;
    text-align: center;
}

.quote-totals {
    border-top: 2px solid #e8e8e8;
    padding-top: 20px;
    margin-top: 20px;
    order: 1;
}

.total-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    font-size: 16px;
}

.total-line.subtotal {
    font-weight: 700;
    color: #2d3748;
    font-size: 18px;
    padding: 18px 0;
    border-bottom: 2px dashed #e8e8e8;
}

.total-line.discount {
    color: #28a745;
    font-weight: 600;
}

/* Oferta temporal */
.temporal-offer {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 18px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.2);
    order: 2;
    margin: 25px 0 0 0;
}

.temporal-offer::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(200%) rotate(45deg); }
}

.offer-content {
    position: relative;
    z-index: 2;
}

.offer-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.offer-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 15px;
    font-weight: 400;
}

.offer-price {
    font-size: 2rem;
    font-weight: 800;
    margin: 12px 0;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
    letter-spacing: -0.5px;
}

.offer-note {
    font-size: 0.9rem;
    opacity: 0.8;
    font-style: italic;
    font-weight: 300;
}

.quote-notes {
    background: #e8f5e8;
    padding: 15px;
    border-radius: 12px;
    margin-top: 20px;
    font-size: 14px;
    border-left: 4px solid #4CAF50;
}

/* Cupón */
.coupon-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
}

.coupon-section label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: #2d3748;
    font-size: 0.95rem;
    text-align: center;
}

.coupon-input-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.coupon-input {
    width: 100%;
    max-width: 300px;
    border-radius: 10px;
    margin: 0;
    border: 2px solid #e1e5e9;
    padding: 15px;
    font-size: 1rem;
    height: 55px;
    text-align: center;
}

.coupon-input:focus {
    border-color: #E20B7E;
    outline: none;
    box-shadow: 0 0 0 3px rgba(226, 11, 126, 0.1);
}

@keyframes couponSuccess {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.coupon-success {
    animation: couponSuccess 0.5s ease;
    background: #e8f5e8 !important;
    border-left: 4px solid #4CAF50 !important;
}

/* Botones de acción */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 400px;
    margin: 0 auto;
}

/* ===== BOTONES ===== */
.btn-primary, .btn-next, .date-next-btn {
    background: linear-gradient(135deg, #E20B7E 0%, #ff6b6b 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(226, 11, 126, 0.3);
    text-decoration: none;
}

.date-next-btn {
    max-width: 250px;
    margin: 0 auto;
    height: 60px;
    font-size: 1.1rem;
    box-shadow: 0 6px 20px rgba(226, 11, 126, 0.3);
}

.btn-primary, .btn-next {
    width: 100%;
    padding: 16px 25px;
    max-width: 400px;
    margin: 0 auto;
}

.btn-coupon {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #E20B7E 0%, #ff6b6b 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(226, 11, 126, 0.3);
}

.btn-whatsapp {
    width: 100%;
    padding: 16px;
    background: #25D366;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-secondary {
    width: 100%;
    padding: 16px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

/* Estados hover */
.btn-primary:hover, 
.btn-next:hover, 
.date-next-btn:hover, 
.btn-coupon:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(226, 11, 126, 0.4);
    background: linear-gradient(135deg, #ff6b6b 0%, #E20B7E 100%);
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    background: #128C7E;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
    background: #5a6268;
}

/* Estados active */
.btn-primary:active, 
.btn-next:active, 
.date-next-btn:active, 
.btn-coupon:active,
.btn-whatsapp:active,
.btn-secondary:active {
    transform: translateY(0);
}

/* ===== NOTIFICACIONES ===== */
.notification-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-left: 4px solid #4CAF50;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.4s ease;
    max-width: 350px;
}

.notification-toast.show {
    transform: translateX(0);
    opacity: 1;
}

.notification-toast.error {
    border-left-color: #ff4757;
}

.notification-toast.warning {
    border-left-color: #ffa502;
}

.notification-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    margin-bottom: 4px;
    color: #2d3748;
}

.notification-message {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

/* ===== TOOLTIPS ===== */
.tooltip-container {
    position: relative;
    display: inline-flex;
    margin-left: 8px;
}

.tooltip-icon {
    width: 16px;
    height: 16px;
    color: #E20B7E;
    cursor: help;
}

.tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #2d3748;
    color: white;
    padding: 12px;
    border-radius: 8px;
    font-size: 12px;
    width: 200px;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #2d3748;
}

.tooltip-container:hover .tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-8px);
}

/* ===== FOOTER ===== */
.app-footer {
    padding: 20px;
    background: #f8f9fa;
}

.progress-bar {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.progress-step {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #dee2e6;
}

.progress-step.active {
    background: #E20B7E;
}

/* ===== FLASH DE CONFIRMACION AL SELECCIONAR UN SERVICIO ===== */
@keyframes flashAdd {
  0% {
    box-shadow: 0 0 0 0 rgba(226, 11, 126, 0.35);
    transform: translateY(-2px) scale(1.00);
    background: linear-gradient(135deg, rgba(226, 11, 126, 0.22) 0%, rgba(255, 107, 107, 0.22) 100%);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(226, 11, 126, 0);
    transform: translateY(-2px) scale(1.015); /* mini pop */
  }
  100% {
    box-shadow: 0 8px 25px rgba(226, 11, 126, 0.18);
    transform: translateY(-2px) scale(1.00);
  }
}

.service-card.flash,
.package-card.flash {
  animation: flashAdd 500ms ease-out;
}

/* Respeto a usuarios con reducción de movimiento */
@media (prefers-reduced-motion: reduce) {
  .service-card.flash,
  .package-card.flash {
    animation: none;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .app-header {
        padding: 20px 15px;
    }
    
    .app-container {
        width: 95%;
        margin: 10px auto;
    }
    
    .app-main {
        max-width: none;
        padding: 15px;
    }
    
    .app-container:has(.app-header.hidden) .app-main {
        padding-top: 50px;
        min-height: calc(100vh - 30px);
    }
    
    .quote-success {
        padding: 40px 0 20px 0;
        margin-bottom: 35px;
    }
    
    .logo-container {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .header-text {
        text-align: center;
    }
    
    .app-header .logo {
        width: 60px;
        height: 60px;
        padding: 7px;
    }
    
    .app-header h1 {
        font-size: 1.5rem;
    }
    
    .header-subtitle {
        font-size: 0.8rem;
    }
    
    .event-btn {
        padding: 15px;
        font-size: 16px;
        max-width: none;
    }
    
    .form-step h2 {
        font-size: 1.4rem;
        margin-bottom: 15px;
        padding: 0 15px;
    }
    
    .date-subtitle {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }

    .calendar-container {
        max-width: 280px;
    }
    
    .date-input {
        height: 55px;
        font-size: 1rem;
    }
    
    .date-next-btn {
        height: 55px;
        font-size: 1rem;
        max-width: 220px;
    }

    .service-header, .package-header {
        padding: 16px;
        min-height: 60px;
    }
    
    .service-name, .package-name {
        font-size: 17px;
    }
    
    .service-content, .package-content {
        padding: 0 16px 16px;
    }
    
    .service-card, .package-card {
        min-height: 60px;
    }

    .service-selector, .package-selector {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .coupon-input-group {
        flex-direction: column;
        gap: 15px;
    }
    
    .coupon-input {
        border-radius: 10px;
        margin-bottom: 0;
        height: 50px;
        text-align: center;
    }
    
    .btn-coupon {
        border-radius: 10px;
        padding: 15px;
        width: 100%;
        height: 50px;
    }
    
    .btn-primary, .btn-next, .btn-coupon,
    .event-options,
    .action-buttons,
    .quote-summary {
        max-width: none;
    }
    
    .date-next-btn {
        max-width: 220px;
        height: 55px;
        font-size: 1rem;
    }
    
    .btn-primary, .btn-next {
        padding: 14px 20px;
        font-size: 15px;
    }
    
    .btn-coupon {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .btn-whatsapp, .btn-secondary {
        padding: 14px;
        font-size: 15px;
    }
    
    .quote-summary {
        margin: 20px 0;
        padding: 20px;
    }
    
    .tooltip {
        width: 180px;
        font-size: 11px;
    }
    
    .notification-toast {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .temporal-offer {
        margin: 20px 0;
        padding: 20px;
    }
    
    .offer-title {
        font-size: 1.2rem;
    }
    
    .offer-price {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .app-main {
        padding: 15px;
    }
    
    .app-header {
        padding: 15px 10px;
    }
    
    .app-header h1 {
        font-size: 1.3rem;
    }

    .app-container:has(.app-header.hidden) .app-main {
        padding-top: 40px;
        min-height: calc(100vh - 20px);
    }
    
    .quote-success {
        padding: 35px 0 15px 0;
        margin-bottom: 30px;
    }
    
    .success-icon svg {
        width: 60px;
        height: 60px;
    }
     
    .coupon-section {
        padding: 15px;
    }
    
    .coupon-input {
        padding: 12px;
        font-size: 0.9rem;
        height: 45px;
    }
    
    .btn-coupon {
        padding: 12px;
        font-size: 0.9rem;
        height: 45px;
    }
    
    .form-step h2 {
        font-size: 1.3rem;
        margin-bottom: 12px;
        padding: 0 12px;
        line-height: 1.3;
    }
    
    .date-subtitle {
        font-size: 1rem;
        margin-bottom: 15px;
        padding: 0 15px;
    }

    .calendar-container {
        max-width: 250px;
    }
    
    .date-input {
        height: 50px;
        width: 250px;
        padding-left: 56px;
        padding-right: 56px;
    }

    .calendar-icon {
        left: 12px;
    }
    
    .calendar-icon svg {
        width: 20px;
        height: 20px;
    }

    .service-header, .package-header {
        padding: 14px;
        min-height: 55px;
    }
   
    .service-name, .package-name {
        font-size: 16px;
    }

   .expander{ 
    width:52px; 
    height:52px; 
    }

    .caret-svg{ 
    width:26px; 
    height:26px; 
    }

    .temporal-offer {
        padding: 15px;
    }
    
    .offer-title {
        font-size: 1.1rem;
    }
    
    .offer-price {
        font-size: 1.5rem;
    }
    
    .offer-subtitle {
        font-size: 1rem;
    }
    
    .date-next-btn {
        max-width: 200px;
        height: 50px;
        font-size: 0.95rem;
    }
    
    .btn-primary, .btn-next {
        padding: 12px 18px;
        font-size: 14px;
    }
    
    .service-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 15px 0;
    }
    
    .service-item::before {
        display: none;
    }
    
    .service-item span:last-child {
        align-self: flex-end;
        margin-top: 4px;
    }
    
    .quote-summary {
        padding: 15px;
    }
}


/* Botón disponibilidad y admin (colores distintos para jerarquía) */
.btn-availability {
  width: 100%; padding: 16px; background: #2563eb; color: #fff; border: none; border-radius: 12px;
  font-size: 16px; font-weight: 600; cursor: pointer; transition: all .3s ease; display:flex; align-items:center; justify-content:center; gap:8px; box-shadow: 0 4px 12px rgba(37, 99, 235, .3);
}
.btn-availability:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37,99,235,.4); background:#1d4ed8; }

.btn-admin {
  width: 100%; padding: 12px; background: #111827; color: #fff; border: none; border-radius: 10px; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all .2s ease; opacity:.7;
}
.btn-admin:hover { opacity: 1; }

/* Ajuste por 5 pasos (mantener compatibilidad si :has falla) */
.app-container.step-5 .app-main { padding-top: 60px; }

/* ===== MODAL DISPONIBILIDAD ===== */
.modal-overlay{position:fixed;inset:0;background:rgba(0,0,0,.45);display:none;align-items:center;justify-content:center;z-index:2000}
.modal-overlay.show{display:flex;animation:fadeIn .2s ease}
.modal{width:90%;max-width:460px;background:#fff;border-radius:18px;box-shadow:0 20px 60px rgba(0,0,0,.25);overflow:hidden}
.modal-header{display:flex;align-items:center;justify-content:space-between;padding:14px 18px;background:linear-gradient(135deg,#E20B7E 0%,#ff6b6b 100%);color:#fff}
.modal-title{font-weight:800;font-size:1.05rem}
.modal-close{background:transparent;border:0;color:#fff;font-size:22px;cursor:pointer;line-height:1}
.modal-body{padding:22px 20px;text-align:center}
.modal-msg{font-size:1rem;color:#2d3748;line-height:1.5;white-space:pre-line}
.modal-msg strong{font-weight:800}
.modal-status-available{color:#16a34a}
.modal-status-unavailable{color:#dc2626}
.modal-actions{display:flex;flex-direction:column;gap:12px;padding:0 20px 20px}
.btn-admin{background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);color:#fff;border:0;border-radius:12px;padding:14px 18px;font-weight:700;cursor:pointer;box-shadow:0 4px 15px rgba(102,126,234,.35);transition:transform .1s ease,box-shadow .2s ease;display:inline-flex;align-items:center;justify-content:center;gap:8px}
.btn-admin:hover{transform:translateY(-1px);box-shadow:0 6px 20px rgba(102,126,234,.45)}
.btn-outline{background:#fff;border:2px solid #e1e5e9;border-radius:12px;padding:12px 16px;font-weight:700;color:#2d3748;cursor:pointer;transition:transform .1s ease,box-shadow .2s ease}
.btn-outline:hover{transform:translateY(-1px);box-shadow:0 6px 16px rgba(0,0,0,.08)}
.modal-footer-links{padding:0 20px 20px;text-align:center}
.modal-footer-links a{color:#E20B7E;font-weight:500;cursor:pointer}

/* ===== ADMIN ENTRY (STEP 5) ===== */
#step5 .admin-entry{display:grid;gap:14px;max-width:420px;margin:0 auto}
.admin-option{padding:16px;border:2px solid #e8e8e8;border-radius:14px;background:#fff;display:flex;align-items:center;justify-content:space-between}
.admin-option h3{margin:0;font-size:1.05rem;color:#2d3748;font-weight:800}

@media (max-width:480px){.modal{max-width:92vw}}

.hidden{ display:none !important; }
.access-wrapper{ max-width:720px; margin:0 auto; text-align:center; }
.access-title{ font-size:1.6rem; color:#2d3748; font-weight:800; margin-bottom:8px; }
.access-subtitle{ color:#555; margin-bottom:20px; }
.card{ background:#fff; border:1px solid #e8e8e8; border-radius:16px; padding:20px; margin-top:24px; box-shadow:0 8px 20px rgba(0,0,0,.06); }
.card-title{ margin:0 0 12px 0; color:#2d3748; font-weight:700; font-size:1.1rem; }
.access-input .form-input{ text-align:center; font-weight:600; letter-spacing:.5px; }

#step5 .access-intro, .form-step{
  margin-top: clamp(32px, 10vh, 140px); /* empuja solo el texto */
  text-align: center;
  max-width: 640px;
}

/* === Normaliza TODOS los botones al tamaño de .date-next-btn === */
:root{
  --btn-width: 250px;   /* mismo ancho que .date-next-btn */
  --btn-height: 60px;   /* misma altura que .date-next-btn */
  --btn-radius: 12px;
}

.btn-primary,
.btn-next,
.date-next-btn,
.btn-coupon,
.btn-whatsapp,
.btn-secondary{
  /* Tamaño uniforme */
  width: 100%;
  max-width: var(--btn-width);
  height: var(--btn-height);

  /* Layout uniforme */
  padding: 0 24px;              /* altura fija → padding vertical 0 */
  border: none;
  border-radius: var(--btn-radius);
  font-size: 1.1rem;            /* mismo que .date-next-btn */
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 auto;               /* centra como .date-next-btn */
  text-decoration: none;

  /* Evita saltos de línea que rompan la altura */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* (Opcional) Estados hover/focus consistentes */
.btn-primary:hover,
.btn-next:hover,
.date-next-btn:hover,
.btn-coupon:hover,
.btn-whatsapp:hover,
.btn-secondary:hover{
  transform: translateY(-1px);
}

.btn-primary:active,
.btn-next:active,
.date-next-btn:active,
.btn-coupon:active,
.btn-whatsapp:active,
.btn-secondary:active{
  transform: translateY(0);
}

/* ===== Dos columnas para % y vigencia ===== */
.form-row.two{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }

/* Inputs compactos + placeholder pequeño */
.form-input.sm{ height:44px; padding:10px 12px; font-size:14px; }
.form-input::placeholder{ opacity:.75; font-size:13px; }

/* Evitar desborde en la salida del código */
#adminCodeOut .form-input{
  font-family:ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing:.3px;
}
#adminCodeMeta{ white-space:normal; word-break:break-word; line-height:1.35; }



