@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400');

/* =================== VARIABLES Y RESET =================== */
:root {
    /* Variables eliminadas del gradient - ya no se usan */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    outline: none;
    caret-color: transparent;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    min-height: 100vh;
    padding: 20px;
    line-height: 1.6;
    position: relative;
    cursor: pointer;
    /* FONDO CORRECTO DEL CODEPEN - SOLO 2 COLORES */
    background: linear-gradient(270deg, #e837da, #37e8bb);
    background-size: 200% 200%;
    animation: background-change 10s ease infinite;
}

/* ANIMACIÓN EXACTA DEL CODEPEN */
@keyframes background-change {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* =================== ANIMACIONES BÁSICAS (SIN GRADIENT BACKGROUND) =================== */

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

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

@keyframes borderGlow {
    0% { filter: blur(5px); }
    100% { filter: blur(15px); }
}

@keyframes ticker {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-100%); }
}

/* =================== CONTENEDOR PRINCIPAL =================== */
.container {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(43, 43, 43, 0.432);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    animation: slideUp 0.8s ease-out;
    position: relative;
    z-index: 1;
}

/* =================== CAROUSEL HEADER - CORREGIDO PARA RESPONSIVE =================== */
.header {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    min-height: 200px;
    background: linear-gradient(135deg, #2b2b2b 20%, #1d1d1d 100%);
    text-align: center;
}

.header::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #6b6b6b 0%, #4c6948cb 100%);
    z-index: -1;
    animation: borderGlow 3s ease-in-out infinite alternate;
}

.header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #6b6b6b 0%, #4c6948cb 100%);
    z-index: -1;
}

.header-carousel-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.header-slider {
    background: transparent;
    width: 100%;
    height: 100%;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-slide-track {
    display: flex;
    height: 100%;
    align-items: center;
    animation: header-scroll-continuous 30s linear infinite;
    will-change: transform;
}

.header-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    height: 100%;
    width: 100vw;
    max-width: 100vw;
    min-width: 100vw;
}

.header-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    opacity: 0.95;
    filter: brightness(1.05) contrast(1.05);
}

/* ANIMACIÓN CONTINUA MEJORADA */
@keyframes header-scroll-continuous {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.header h1 {
    color: #424242;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 0 10px #fff, 0 0 20px #1f1f1f;
    position: relative;
    z-index: 1;
}

.header p {
    color: #2d3748;
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

/* =================== CARROUSEL =================== */
#carrousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    height: 1.6rem;
    background: transparent;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

#carrousel {
    font-family: 'Share Tech Mono', monospace;
    color: #ffffffc2;
    font-size: 1.1rem;
    white-space: nowrap;
    display: inline-block;
    padding-left: 100%;
    animation: ticker 20s linear infinite;
}

/* =================== FORMULARIO =================== */
.form-container {
    padding: 40px 30px;
}

.form-section {
    margin-bottom: 40px;
    animation: fadeIn 0.6s ease-out;
}

.section-title {
    font-size: 1.5rem;
    color: #2d3748;
    margin-bottom: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    -webkit-text-stroke: 1px #e7e7e77c;
    paint-order: stroke fill; 
}



.section-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: linear-gradient(135deg, #07948d, #7a7a7acb);
    border-radius: 2px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #272727;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-input {
    color: #2d3748 !important;
    font-weight: bold;
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #363636cb;
    border-radius: 12px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #cab8a3 0%, #cccbc8 100%);
    box-shadow: 0 10px 30px #292929;
    caret-color: auto !important;
}

.form-input::placeholder {
    color: #2d3748;
    font-weight: bold;
}

.form-input:focus {
    outline: none;
    border-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(255, 154, 158, 0.1);
    transform: translateY(-2px);
}

.form-input:hover {
    border-color: #ffffff;
}

.form-input option {
    color: #333;
    font-weight: bold;
    background: #fff;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* =================== CARRUSEL DE SERVICIOS SIN BOTONES =================== */
.services-carousel {
    position: relative;
    width: 100%;
    overflow: visible;
    border-radius: 16px;
    margin-top: 30px;
    margin-bottom: 30px;
    padding: 0 10px;
}

.carousel-container {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.carousel-wrapper {
    flex: 1;
    overflow-x: auto;
    overflow-y: visible;
    border-radius: 12px;
    position: relative;
    padding-top: 10px;
    padding-bottom: 10px;
    margin-top: 10px;
    scrollbar-width: none; 
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    will-change: scroll-position;
    transform: translateZ(0);
    -webkit-mask-image: linear-gradient(to right, transparent 0px, black 30px, black calc(100% - 30px), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0px, black 30px, black calc(100% - 30px), transparent 100%);
}

.carousel-wrapper::-webkit-scrollbar {
    display: none;
}

.carousel-track {
    display: flex;
    gap: 20px;
    width: max-content;
    cursor: grab;
    padding: 0 10px;
    scroll-behavior: smooth;
    animation: none;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

.carousel-track:active {
    cursor: grabbing;
}

.service-card {
    min-width: 280px;
    width: 280px;
    background: linear-gradient(135deg, #cab8a3 0%, #cccbc8 100%);
    border-radius: 16px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #363636cb;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    touch-action: pan-x;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: transform;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    border-color: #ffffff;
    background: #f7f5f0;
    transform: translateY(-2px);
}

.service-card.selected {
    border-color: #ffffff !important;
    background: linear-gradient(135deg, #52e08691 0%, #55c98077 100%) !important;
    color: #1f2937 !important;
    transform: translateY(-8px) !important; 
    position: relative !important;
    z-index: 10 !important;
}

.service-card.selected::before {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent) !important;
}

.service-card.selected h3,
.service-card.selected p,
.service-card.selected .service-price {
    color: #1f2937 !important;
    font-weight: bold !important;
}

.service-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #2d3748;
}

.service-card p {
    opacity: 0.8;
    margin-bottom: 15px;
    font-size: 0.95rem;
    color: #2d3748;
}

.service-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
}

/* =================== FECHA Y HORA - CORREGIDO PARA iOS =================== */
.date-time-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.calendar-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.calendar-input {
    color: #2d3748;
    cursor: pointer;
    background: linear-gradient(135deg, #cab8a3 0%, #cccbc8 100%);
    box-shadow: 0 10px 30px #494949;
    border: 2px solid #363636cb;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 16px;
    width: 100%; 
    max-width: 100%;
    box-sizing: border-box;
    /* FIX ESPECÍFICO PARA iOS */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    position: relative;
}

/* FIX ADICIONAL PARA iOS SAFARI */
@supports (-webkit-touch-callout: none) {
    .calendar-input {
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
    }
}

.time-slots {
    color: #ffffff !important;
    font-weight: bold;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 12px;
    margin-top: 20px;
}

/* =================== TIME-SLOT =================== */
.time-slot {
    padding: 12px 16px;
    border: 2px solid #363636cb;
    border-radius: 10px;
    background: linear-gradient(135deg, #cab8a3 0%, #cccbc8 100%);
    cursor: pointer;
    text-align: center;
    font-weight: bold;
    transition: all 0.3s ease;
    color: #2d3748;
    box-shadow: 0 10px 30px #494949;
    position: relative;
    -webkit-appearance: none;
    appearance: none;
    min-width: 120px;
    max-width: 120px;
    width: 120px;
    min-height: 48px;
    max-height: 48px;
    height: 48px;
    font-size: 1.1em;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.time-slot::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, #4ade80, #22c55e);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    pointer-events: none;
    z-index: 10;
}

.time-slot:hover {
    border-color: #ffffff;
    background: #f7f5f0;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.425);
}

.time-slot.selected {
    border-color: #ffffff;
    background: linear-gradient(135deg, #8fd19e 0%, #90c49c 100%);
    color: #2d3748;
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.425);
}

/* ESTADO RESERVADO - MANTENER APARIENCIA NORMAL CON CRUZ */
/* PANAL CON IMAGEN DE FONDO EN ROJO - MÁS GRANDE */
.time-slot.reservado::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://cdn.pixabay.com/photo/2022/06/12/22/48/gradient-7258997_960_720.png');
    background-size: 150px 150px; /* Más grande = menos hexágonos */
    background-repeat: repeat;
    background-position: center;
    opacity: 0.6;
    z-index: 1;
    pointer-events: none;
    filter: invert(17%) sepia(95%) saturate(7471%) hue-rotate(345deg) brightness(91%) contrast(119%);
    mix-blend-mode: multiply;
}

/* =================== COMENTARIOS =================== */
.comments-textarea {
    width: 100%;
    padding: 20px;
    border: 2px solid #363636cb;
    border-radius: 12px;
    font-size: 1rem;
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #dfdfdf73 0%, #ffffffbd 100%);
    color: #242424;
}

.comments-textarea:focus {
    outline: none;
    border-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(255, 154, 158, 0.1);
}

/* =================== BOTÓN MEJORADO =================== */
.button-container {
    display: flex;
    flex-direction: column; 
    align-items: center;  
    width: 100%;
    gap: 6px;               
    margin-bottom: 5px;       
}

#button-wrapper {
    font-family: 'Roboto', sans-serif;
    font-size: 21px;
    text-transform: none;
    letter-spacing: 6px;
    color: white;
    width: 400px;
    height: 120px;
    position: relative;
    padding: 20px 0px;
    overflow: visible;
    display: flex;
    justify-content: center;
    align-items: center;
}

#button-wrapper::selection,
.submit::selection {
    background: transparent;
}

/* =================== ELEMENTOS BASE =================== */
.submit, .loader, .loader-wrapper {
    position: absolute;
    left: 0;
    right: 0;
    margin: 0 auto;
}

/* =================== BOTÓN ESTADO INICIAL/IDLE =================== */
.submit {
    z-index: 2;
    width: 380px;
    height: 110px;
    background: linear-gradient(to right, #353535 0%, #5b70e7 100%); 
    display: block;
    border-radius: 200px;
    text-align: center;
    color: rgba(255,255,255,1);
    text-decoration: none;
    line-height: 400%;
    transition: all 0.7s ease, line-height 0s ease, color 0.4s ease, filter 0.2s ease;
    cursor: pointer;
    border: none;
    outline: none;
    font-size: 28px;
    font-weight: bold;
    position: relative;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    -webkit-touch-callout: none;
    user-select: none;
}

.button-text {
    font-weight: bold !important;
    pointer-events: none;
}

.submit:before {
    content: "";
    z-index: -2;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, #353535 0%, #5b70e7 100%); 
    display: block;
    border-radius: 200px;
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    transform: scale(0.9) translateY(15px);
    filter: blur(0px);
    transition: all 0.2s ease;
}

.submit:after {
    content: "";
    z-index: -4;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, #94ff63 0%, #54b826 100%); 
    display: block;
    border-radius: 200px;
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    transform: scale(1);
}

.submit:hover:before {
    opacity: 0.3;
    transform: scale(0.9) translateY(5px);
    filter: blur(0px);
}

.submit:active {
    line-height: 460%;
    filter: brightness(0.95);
    transition: all 0s;
}

/* =================== ESTADO SENDING =================== */
.sending .submit {
    width: 380px !important;
    height: 110px !important;
     
    background: linear-gradient(to right, #94ff63 0%, #54b826 100%) !important;
    border-radius: 200px !important;
    color: rgba(255,255,255,1) !important;
    line-height: 400% !important;
    animation: none !important;
    transform: none !important;
    box-shadow: none !important;
    font-size: 28px !important;
    font-weight: bold !important;
}

.sending .submit:before {
    background: linear-gradient(to right, #353535 0%, #5b70e7 100%) !important;
    opacity: 0 !important;
    transform: scale(0.9) translateY(15px) !important;
    filter: blur(0px) !important;
    box-shadow: none !important;
}

/* =================== FIX ESPECÍFICO PARA iOS =================== */
@supports (-webkit-touch-callout: none) {
    .submit,
    .submit:before,
    .submit:after,
    .sending .submit,
    .sending .submit:before {
        box-shadow: none !important;
        filter: none !important;
    }
    
    .submit:hover:before {
        filter: none !important;
        box-shadow: none !important;
    }
}

/* OCULTAR TODOS LOS LOADERS EN SENDING */
.sending .loader {
    opacity: 0 !important;
    display: none !important;
}

.sending .loader-wrapper {
    opacity: 0 !important;
    display: none !important;
}

.sending .check-wrapper,
.sending .error-wrapper {
    opacity: 0 !important;
    display: none !important;
}

/* =================== ESTADOS SUCCESS Y ERROR - BASE =================== */
.checked .submit,
.error .submit {
    width: 110px !important;
    height: 110px !important;
    border-radius: 50% !important;
    color: rgba(255,255,255,0) !important;
    animation: submit-anim 4s cubic-bezier(0.39, 0.575, 0.565, 1) !important;
    line-height: normal !important;
    background: linear-gradient(to right, #94ff63 0%, #54b826 100%) !important;
}

.checked .submit:before {
    background: linear-gradient(to right, #94ff63 0%, #54b826 100%) !important;
}

.checked .submit:after {
    background: linear-gradient(to right, #94ff63 0%, #54b826 100%) !important;
    opacity: 0;
    animation: submit-after-anim 0.5s 4.4s cubic-bezier(0.39, 0.575, 0.565, 1) !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.checked {
    -webkit-filter: url("#goo-button");
    filter: url("#goo-button");
}

/* =================== ESTADO ERROR (ROJO) =================== */
.error .submit {
    background: linear-gradient(to right, #ff6b6b 0%, #e53935 100%) !important;
}

.error .submit:after {
    background: linear-gradient(to right, #ff6b6b 0%, #e53935 100%) !important;
    opacity: 0;
    animation: submit-after-anim 0.5s 4.4s cubic-bezier(0.39, 0.575, 0.565, 1) !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.error {
    -webkit-filter: url("#goo-button");
    filter: url("#goo-button");
}

/* =================== CONTROL DE VISIBILIDAD POR ESTADO =================== */

/* ESTADO SUCCESS - Solo elementos verdes */
.checked .loader.red1,
.checked .loader.red2,
.checked .loader.red3,
.checked .error-wrapper {
    display: none !important;
    opacity: 0 !important;
}

/* ESTADO ERROR - Solo elementos rojos */
.error .loader.yellow,
.error .loader.pink,
.error .loader.orange,
.error .check-wrapper {
    display: none !important;
    opacity: 0 !important;
}

/* =================== LOADERS SUCCESS (VERDE) =================== */
.loader.yellow,
.yellow { 
    background-color: #94ff63 !important; 
} 

.loader.pink,
.pink { 
    background-color: #54b826 !important; 
}

.loader.orange,
.orange { 
    background-color: #74d946 !important; 
    transform: scale(0.2) rotate(30deg) translate(0px); 
}

.checked .loader.pink,
.checked .pink {
    background-color: #54b826 !important;
    animation: loader-anim-pink 4s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.checked .loader.yellow,
.checked .yellow {
    background-color: #94ff63 !important;
    animation: loader-anim-yellow 4s 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.checked .loader.orange,
.checked .orange {
    background-color: #74d946 !important;
    animation: loader-anim-orange 4s 0.7s cubic-bezier(0.645, 0.045, 0.355, 1);
}

/* =================== LOADERS ERROR (ROJO) =================== */
.red1 { 
    background-color: #ff6d6d; 
}

.red2 { 
    background-color: #ff4747; 
}

.red3 { 
    background-color: #ff2f2f; 
    transform: scale(0.2) rotate(30deg) translate(0px); 
}

.error .red2 {
    animation: loader-anim-pink 4s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.error .red1 {
    animation: loader-anim-yellow 4s 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.error .red3 {
    animation: loader-anim-orange 4s 0.7s cubic-bezier(0.645, 0.045, 0.355, 1);
}

/* =================== CONFIGURACIÓN GENERAL DE LOADERS =================== */
.loader {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    opacity: 0;
    z-index: 1;
}

.checked .loader, 
.error .loader {
    opacity: 1;
}

.checked .loader-wrapper, 
.error .loader-wrapper {
    animation: wrapper-loader-anim 4.2s linear;
    width: 110px;
    height: 110px;
    transform: scale(0);
}

/* =================== ICONOS SUCCESS Y ERROR =================== */
.check-wrapper, 
.error-wrapper {
    position: absolute;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 110px;
    height: 110px;
    z-index: -1;
    opacity: 1;
    border: none !important;
    outline: none !important;
    background: transparent !important;
}

/* =================== ICONO SUCCESS (CHECKMARK) - CENTRADO CORREGIDO =================== */
.check-wrapper svg {
    margin-top: 36px;
    margin-left: 22px;
}

.check {
    fill: none;
    stroke: #ffffff;
    stroke-width: 10;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-miterlimit: 10;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
}

.checked .check-wrapper {
    z-index: 3;
}

.checked .check {
    animation: check 4s 4.4s ease forwards;
}

/* =================== ICONO ERROR (X) - MEJORADO =================== */
.error-wrapper {
    z-index: 3;
}

.error-wrapper svg {
    margin-top: 22px;
    margin-left: 22px;
    width: 65px;
    height: 65px;
}

.cross-line {
    stroke: #ffffff !important;
    stroke-width: 12;
    stroke-linecap: round;
    stroke-dasharray: 70;
    stroke-dashoffset: 70;
    opacity: 0;
    fill: none !important;
}

.error .cross-line {
    animation: cross-draw 0.4s ease-out forwards;
    animation-delay: 4.4s;
}

/* =================== ANIMACIONES =================== */

/* Animaciones de loaders */
@keyframes loader-anim-pink {
    0% { transform: scale(0.2) rotate(0deg) translate(220px, 0px); }
    100% { transform: scale(0.2) rotate(1100deg) translate(300px, 0px); }
}

@keyframes loader-anim-yellow {
    0% { transform: scale(0.2) rotate(0deg) translate(300px, 0px); }
    100% { transform: scale(0.2) rotate(1100deg) translate(220px, 0px); }
}

@keyframes loader-anim-orange {
    0%, 70% { transform: scale(0.2) rotate(30deg) translate(0px); }
    85% { transform: scale(0.2) rotate(30deg) translate(-300px); }
    100% { transform: scale(0.2) rotate(30deg) translate(0px); }
}

@keyframes wrapper-loader-anim {
    0% { transform: scale(0) translateY(0px); }
    10% { transform: scale(1) translateY(20px); }
    50% { transform: scale(1.2) translateY(10px); }
    90% { transform: scale(1) translateY(-10px); }
    100% { transform: scale(0) translateY(0px); }
}

@keyframes submit-after-anim {
    0% { transform: scale(1); opacity: 0.3; }
    100% { transform: scale(2); opacity: 0; }
}

@keyframes submit-anim {
    0% { transform: scale(1); }
    5%, 95% { transform: scale(0.7); }
    100% { transform: scale(1); }
}

@keyframes check {
    from { stroke-dashoffset: 1000; }
    to { stroke-dashoffset: 0; }
}

@keyframes cross-draw {
    0% {
        stroke-dashoffset: 70;
        opacity: 0;
    }
    1% {
        opacity: 1;
    }
    100% {
        stroke-dashoffset: 0;
        opacity: 1;
    }
}

/* =================== INFORMACIÓN DEL LOCAL =================== */
.location-info {
    background: linear-gradient(135deg, #cab8a3 0%, #cccbc8 100%);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px #292929;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.location-info h3 {
    color: #2d3748;
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.location-info-with-map {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
}

.location-text {
    flex: 1;
    min-width: 280px;
    box-sizing: border-box;
    width: 100%;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    color: #2d3748;
    font-size: 0.95rem;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.contact-item span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.contact-item svg {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    color: #2d3748;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2d3748, #333333);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #dadada;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px #292929;
    flex-shrink: 0;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    touch-action: manipulation;
}

.social-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px #dadada;
}

/* =================== MAPA =================== */
.map-container {
    flex: 0 0 320px;
    width: 320px;
    height: 250px;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    -webkit-mask-image: 
        linear-gradient(to right, transparent 0px, black 20px, black calc(100% - 20px), transparent 100%),
        linear-gradient(to bottom, transparent 0px, black 20px, black calc(100% - 20px), transparent 100%);
    -webkit-mask-composite: destination-in;
    mask-image: 
        linear-gradient(to right, transparent 0px, black 20px, black calc(100% - 20px), transparent 100%),
        linear-gradient(to bottom, transparent 0px, black 20px, black calc(100% - 20px), transparent 100%);
    mask-composite: intersect;
    box-sizing: border-box;
}

#salon-map {
    width: 100%;
    height: 100%;
}

/* =================== RESPONSIVE MEJORADO CON FONDO ANIMADO =================== */
@media (max-width: 1200px) {
    .header {
        height: 280px;
        min-height: 280px;
    }
    
    .header-carousel {
        height: 280px;
        min-height: 280px;
    }
    
    .header-carousel-track {
        height: 280px;
        min-height: 280px;
    }
    
    .header-carousel-track img {
        height: 280px;
        min-height: 280px;
    }
    
    body {
        background: linear-gradient(270deg, #e837da, #37e8bb);
        background-size: 200% 200%;
        animation: background-change 8s ease infinite;
    }
}

@media (max-width: 768px) {
    .header {
        height: 220px;
    }

    
    
    body {
        background: linear-gradient(270deg, #e837da, #37e8bb);
        background-size: 200% 200%;
        animation: background-change 6s ease infinite;
        padding: 10px;
    }
    
    .container {
        margin: 10px;  
        border-radius: 20px;
        width: calc(100% - 20px);
        box-sizing: border-box;
    }

    .header h1 {
        font-size: 1.6rem;
    }

    .form-container {
        padding: 30px 20px;
        box-sizing: border-box;
    }

    .date-time-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .time-slots {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        gap: 10px;
    }

    .time-slot {
        padding: 12px 10px;
        min-width: 100px;
        max-width: 100px;
        width: 100px;
        min-height: 45px;
        max-height: 45px;
        height: 45px;
        font-size: 0.9em;
    }

    /* AJUSTE PARA RESERVADO EN TABLET */
    .time-slot.reservado {
        min-width: 100px !important;
        max-width: 100px !important;
        width: 100px !important;
        min-height: 45px !important;
        max-height: 45px !important;
        height: 45px !important;
        font-size: 0.9em !important;
        padding: 12px 10px !important;
    }

    .social-links {
        justify-content: center;
        gap: 10px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .location-info {
        padding: 20px;
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        box-sizing: border-box;
    }

    .location-info-with-map {
        flex-direction: column;
        gap: 20px;
        width: 100%;
    }
    
    .location-text {
        min-width: 100%;
        width: 100%;
    }
    
    .map-container {
        flex: none;
        width: 100%;
        max-width: 100%;
        height: 200px;
    }

    .button-container {
        justify-content: center;
    }

    #button-wrapper {
        width: 100%;
        max-width: 400px;
    }

    .submit {
        width: 320px;
        height: 100px;
        font-size: 26px;
    }

    .sending .submit {
        width: 320px !important;
        height: 100px !important;
        font-size: 26px !important;
    }
}

@media (max-width: 480px) {
    .header {
        height: 180px;
    }
    
    body {
        padding: 5px;
        background: linear-gradient(270deg, #e837da, #37e8bb);
        background-size: 200% 200%;
        animation: background-change 5s ease infinite;
    }

    .container {
        margin: 5px;
        width: calc(100% - 10px);
        box-sizing: border-box;
    }

    .header h1 {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .form-container {
        padding: 20px 15px;
        box-sizing: border-box;
    }

    .service-card {
        padding: 20px;
        min-width: 260px;
        width: 260px;
    }

    .location-info {
        padding: 15px;
        margin-bottom: 20px;
        width: 100%;
        box-sizing: border-box;
    }

    .location-text {
        min-width: 100%;
    }

    .contact-item {
        font-size: 0.85rem;
    }

    .social-links {
        gap: 8px;
        justify-content: center;
    }

    .social-link {
        width: 40px;
        height: 40px;
    }

    .time-slot {
        padding: 10px 8px;
        min-width: 85px;
        max-width: 85px;
        width: 85px;
        min-height: 40px;
        max-height: 40px;
        height: 40px;
        font-size: 0.8em;
    }

    /* AJUSTE PARA RESERVADO EN MÓVIL */
    .time-slot.reservado {
        min-width: 85px !important;
        max-width: 85px !important;
        width: 85px !important;
        min-height: 40px !important;
        max-height: 40px !important;
        height: 40px !important;
        font-size: 0.8em !important;
        padding: 10px 8px !important;
    }

    /* LÍNEA DIAGONAL AJUSTADA PARA MÓVIL */
    .time-slot.reservado::before {
        top: 3px;
        right: 3px;
        width: calc(100% - 6px);
        height: 2px;
    }

    .submit {
        width: 290px;
        height: 95px;
        font-size: 22px;
    }

    .sending .submit {
        width: 290px !important;
        height: 95px !important;
        font-size: 22px !important;
    }

    #button-wrapper {
        font-size: 22px;
        letter-spacing: 4px;
    }
}

@media (max-width: 375px) {
    .header {
        height: 160px;
    }
    
    body {
        background: linear-gradient(270deg, #7e1f76, #37e8bb);
        background-size: 200% 200%;
        animation: background-change 4s ease infinite;
    }
    
    .container {
        margin: 2px;
        width: calc(100% - 4px);
    }
    
    .form-container {
        padding: 15px 10px;
    }
    
    .location-info {
        padding: 12px;
    }
    
    .contact-item {
        font-size: 0.8rem;
        margin-bottom: 8px;
    }
    
    .social-links {
        justify-content: center;
        gap: 10px;
    }
    
    .social-link {
        width: 36px;
        height: 36px;
        gap: 8px;
        justify-content: center;
    }
    
    .service-card {
        min-width: 240px;
        width: 240px;
        padding: 15px;
    }

    .time-slot {
        min-width: 72px;
        max-width: 72px;
        width: 72px;
        min-height: 38px;
        max-height: 38px;
        height: 38px;
        font-size: 0.75em;
        padding: 8px 6px;
    }

    /* AJUSTE PARA RESERVADO EN MÓVIL PEQUEÑO */
    .time-slot.reservado {
        min-width: 72px !important;
        max-width: 72px !important;
        width: 72px !important;
        min-height: 38px !important;
        max-height: 38px !important;
        height: 38px !important;
        font-size: 0.75em !important;
        padding: 8px 6px !important;
    }

    /* LÍNEA DIAGONAL AJUSTADA PARA MÓVIL PEQUEÑO */
    .time-slot.reservado::before {
        top: 2px;
        right: 2px;
        width: calc(100% - 4px);
        height: 1.5px;
    }
}

/* =================== CORRECCIONES ADICIONALES PARA iOS SAFARI =================== */
@supports (-webkit-touch-callout: none) {
    .carousel-wrapper {
        -webkit-overflow-scrolling: touch;
        overflow-scrolling: touch;
    }
    
    .service-card {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
    
    .calendar-container {
        position: relative;
        width: 100%;
        max-width: 100%;
        overflow: visible;
    }
    
    .date-time-container {
        overflow: visible;
    }
}




/* ===== HEADER: CARRUSEL CINTA INFINITA CON CONTROL TÁCTIL ===== */
.header-carousel {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
}

.header-carousel:active {
  cursor: grabbing;
}

.header-carousel-track {
  display: flex;
  width: max-content;
  height: 100%;
  animation: header-scroll 40s linear infinite;
  transition: animation-play-state 0.3s ease;
  will-change: transform;
}

.header-carousel-track.paused {
  animation-play-state: paused;
}

.header-carousel-track img {
  height: 100%;
  width: auto;
  display: block;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  object-position: center;
  flex-shrink: 0;
  transition: none; /* Importante para drag suave */
}

@keyframes header-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* FIX PARA ELIMINAR ESPACIO EXTRA EN DESKTOP */
@media (min-width: 1024px) {
  .header {
    height: 300px;
    margin-bottom: 0;
  }
  
  .header-carousel {
    height: 300px;
  }
  
  .form-container {
    margin-top: 0;
    padding-top: 40px;
  }
}

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


.comments-textarea::placeholder {
  color: #222020;
  opacity: 1;
}




