/* Fuentes personalizadas */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

/* Estilos generales */
* {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

html {
    touch-action: manipulation;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #faf7f5;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Hero Section */
.hero {
    position: relative;
    height: 50vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.8) 0%, rgba(118, 75, 162, 0.8) 100%),
                url('https://images.unsplash.com/photo-1574717024653-61fd2cf4d44d?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&h=1080') center/cover no-repeat;
    color: white;
    text-align: center;
}

.hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-logo {
    width: 150px;
    height: auto;
    margin-bottom: 2rem;
}

/* Selector de precios en el hero */
.pricing-toggle-container {
    margin: 1rem 0;
    width: 100%;
    max-width: 500px; /* Aumentado para 3 botones */
    margin-left: auto;
    margin-right: auto;
}

.pricing-toggle {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 8px;
    display: inline-flex;
    gap: 8px;
}

.pricing-btn {
    padding: 12px 25px; /* Ajustado para 3 botones */
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
    color: white;
    font-size: 0.9rem; /* Ligeramente más pequeño */
}

.pricing-btn.active {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.pricing-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Botón principal */
.btn-hero {
    display: inline-block;
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    color: white;
    border: none;
    padding: 10px 25px;
    font-size: 1rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    margin-top: 1rem;
}

.btn-hero:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 107, 107, 0.6);
}

/* Títulos de sección */
.section-title {
    text-align: center;
    font-size: 2rem;
    margin: 2rem 0;
    color: #333;
    position: relative;
    padding-bottom: 15px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, #667eea, #764ba2);
}

/* Secciones de categorías */
.category-section {
    margin-bottom: 2rem;
}

.category-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 8px;
}

.category-title i {
    font-size: 1.8rem;
    color: #667eea;
}

/* Checkbox de Inclusión (NUEVO) */
.inclusion-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    background: #fff;
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.inclusion-toggle label {
    font-weight: 600;
    color: #555;
    cursor: pointer;
    font-size: 0.95rem;
}
.inclusion-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #667eea;
}


/* Grid de servicios */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 1rem;
}

/* Tarjetas de servicios */
.service-card {
    background: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-card > * {
    margin-bottom: 10px;
}
.service-card > *:last-child {
    margin-bottom: 0;
    margin-top: auto; /* Push button to the bottom */
}


.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.service-card.selected {
    border-color: #4caf50;
    background: linear-gradient(135deg, #f8fff8 0%, #e8f5e8 100%);
}

.service-image {
    height: 80px;
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-image i {
    font-size: 3rem;
    color: #667eea;
}

.service-card h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.service-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.4;
    flex-grow: 1; /* Allow description to take available space */
}

.service-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

/* Botón de añadir */
.btn-add {
    width: 100%;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-add:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.btn-add.added {
    background: linear-gradient(45deg, #4caf50, #66bb6a);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.btn-add.added:hover {
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.4);
}

/* Quantity Selector */
.quantity-selector {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 10px 0;
}
.quantity-selector span {
    font-size: 1.2rem;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}
.quantity-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid #667eea;
    background: white;
    color: #667eea;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
    transition: all 0.2s ease;
}
.quantity-btn:hover {
    background: #667eea;
    color: white;
    transform: scale(1.1);
}


/* Custom Service Form (MODIFICADO) */
.custom-service-form {
    display: grid;
    grid-template-columns: 2fr 3fr 3fr 1fr auto; /* Añadida 1 columna para "incluidos" */
    gap: 15px;
    align-items: center;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}
.custom-service-form input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}
.custom-service-form input:focus {
    outline: none;
    border-color: #667eea;
}
.custom-service-form button {
    width: 100%;
}


/* Sección de resumen */
.summary-section {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-top: 3rem;
    position: sticky;
    top: 20px;
}

.summary-title-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-bottom: 20px;
}

.summary-title {
    text-align: center;
    font-size: 1.8rem;
    color: #333;
    font-weight: 600;
    margin: 0; /* Remove default margin */
}

#clear-all-btn {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #e74c3c;
    font-size: 1.4rem;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s, transform 0.3s;
}
#clear-all-btn:hover {
    color: #c0392b;
    transform: translateY(-50%) scale(1.1);
}


.summary-items {
    margin-bottom: 20px;
    min-height: 100px;
    max-height: 40vh; /* Add max height for scrolling on long lists */
    overflow-y: auto; /* Enable vertical scroll */
}

.empty-summary {
    text-align: center;
    color: #999;
    padding: 2rem 0;
}

.empty-summary i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Para que "incluidos" pase a la línea de abajo */
    padding: 12px 0;
    border-bottom: 1px dashed #e0e0e0;
    font-size: 1rem;
}

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

.total-price-container {
    border-top: 2px solid #e0e0e0;
    padding-top: 20px;
    margin-bottom: 20px;
}

.total-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.total-price-row span:first-child {
    font-size: 1.3rem;
    font-weight: 600;
}

.total-price {
    font-size: 2.2rem;
    font-weight: 700;
    color: #667eea;
    transition: all 0.3s ease;
}

.pricing-tier-info {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

.pricing-tier-info span {
    font-weight: 600;
    color: #333;
}

/* Botón de presupuesto */
.btn-presupuesto {
    width: 100%;
    background: linear-gradient(45deg, #4caf50, #66bb6a);
    color: white;
    border: none;
    padding: 15px 20px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.btn-presupuesto:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.4);
}

.btn-presupuesto:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.btn-presupuesto i {
    margin-right: 8px;
}

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

.fadeIn {
    animation: fadeIn 0.5s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .container {
        padding: 1rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .custom-service-form {
        grid-template-columns: 1fr;
    }
    
    .category-title {
        font-size: 1.5rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .pricing-toggle {
        flex-direction: column;
        gap: 5px;
        width: 90%;
        max-width: 300px;
    }
    
    .pricing-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .service-card {
        padding: 15px;
    }
    
    .service-image {
        height: 80px;
    }
    
    .service-image i {
        font-size: 2rem;
    }
}