

/* Modificar la animación de la excavadora */
@keyframes moveExcavator {
    0% {
        left: -100px;
        transform: translateX(0);
    }
    100% {
        left: 100%;
        transform: translateX(-100%);
    }
}

/* Animación del brazo y cubo */
@keyframes digMotion {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(15deg); }
}

@keyframes boomMotion {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(-20deg); }
}

@keyframes bucketMotion {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(45deg); }
}

/* Script para generar grietas dinámicamente */
@keyframes createCrack {
    0% {
        width: 0;
        opacity: 0;
    }
    100% {
        width: 30px;
        opacity: 1;
    }
}

@keyframes crackAppear {
    from {
        transform: scaleY(0);
        opacity: 0;
    }
    to {
        transform: scaleY(1);
        opacity: 1;
    }
}

/* Efecto de tierra removida */
@keyframes pileUp {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes excavateGround {
    0% {
        height: 0;
        opacity: 0;
    }
    100% {
        height: 40px;
        opacity: 1;
    }
}

@keyframes throwDirt {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(-50px) rotate(180deg);
        opacity: 0;
    }
}

/* Estilos de la sección de cotización */
.cotizacion-section {
    padding: 40px;
    background: linear-gradient(145deg, #f5f7fa 0%, #e9ecef 100%);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-width: 1200px;
    margin: 40px auto;
    opacity: 0;
    transform: translateY(30px);
}

.tipo-inmueble-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.tipo-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
}

.tipo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.tipo-card.selected {
    border: 2px solid #FFD700;
    background: linear-gradient(145deg, #fff, #fafafa);
}

.tipo-icon {
    font-size: 2.5em;
    margin-bottom: 15px;
    color: #333;
}

.parametros-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
    opacity: 0;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group label {
    position: absolute;
    top: -10px;
    left: 10px;
    background: white;
    padding: 0 5px;
    font-size: 0.9em;
    color: #666;
}

.input-group input {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s;
}

.input-group input:focus {
    border-color: #FFD700;
    outline: none;
}

.resultado-cotizacion {
    background: linear-gradient(145deg, #333, #222);
    color: white;
    padding: 30px;
    border-radius: 12px;
    margin-top: 30px;
    opacity: 0;
    transform: scale(0.95);
}

.precio-total {
    font-size: 2.5em;
    font-weight: bold;
    color: #FFD700;
    text-align: center;
    margin: 20px 0;
}

.desglose-precios {
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.cotizar-btn {
    background: linear-gradient(145deg, #FFD700, #FFA500);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    cursor: pointer;
    transition: transform 0.3s;
    margin-top: 20px;
    width: 100%;
}

.cotizar-btn:hover {
    transform: translateY(-2px);
}

.currency-selector select {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    background-color: white;
    cursor: pointer;
    transition: border-color 0.3s;
}

.currency-selector select:focus {
    border-color: #FFD700;
    outline: none;
}

.currency-selector select:hover {
    border-color: #FFD700;
}

/* Animaciones */
@keyframes floatAnimation {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

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

/* Responsive styles */
@media screen and (max-width: 768px) {
    .cotizacion-section {
        padding: 20px;
        margin: 20px;
    }

    .tipo-inmueble-options {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .tipo-card {
        padding: 15px;
    }

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

    .input-group {
        margin-bottom: 15px;
    }

    .excavator-container {
        height: 300px;
    }

    .excavator {
        transform: scale(0.7);
    }

    .resultado-cotizacion {
        padding: 20px;
    }

    .precio-total {
        font-size: 2em;
    }

    .desglose-precios {
        font-size: 0.9em;
    }
}

@media screen and (max-width: 480px) {
    .excavator {
        transform: scale(0.5);
    }

    .precio-total {
        font-size: 1.8em;
    }

    .tipo-icon {
        font-size: 2em;
    }

    .cotizar-btn {
        padding: 12px 20px;
        font-size: 1em;
    }
}

/* Ajustes para la animación en móviles */
@media screen and (max-width: 768px) {
    @keyframes moveExcavator {
        0% {
            left: -50px;
            transform: translateX(0) scale(0.7);
        }
        100% {
            left: 100%;
            transform: translateX(-100%) scale(0.7);
        }
    }
}

@media screen and (max-width: 480px) {
    @keyframes moveExcavator {
        0% {
            left: -30px;
            transform: translateX(0) scale(0.5);
        }
        100% {
            left: 100%;
            transform: translateX(-100%) scale(0.5);
        }
    }
}

