/* Estilos personalizados para centrar el logo */

/* Cambios en la estructura del contenedor del logo */
.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 15px;
    padding: 15px 0;
}

/* Contenedor del logo centrado */
.logo-center {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 10px;
}

/* Ajustes del logo para pantalla grande (PC) */
.logo {
    width: 280px; /* Aumentado de 200px a 280px para PC */
    height: auto;
    margin: 0 auto;
    transition: width 0.3s ease;
}

/* Media queries para dispositivos de diferentes tamaños */
@media (max-width: 1200px) {
    .logo {
        width: 240px; /* Tamaño para pantallas grandes pero no tanto como desktop */
    }
}

@media (max-width: 992px) {
    .logo {
        width: 220px; /* Tamaño para tablets */
    }
    
    h1 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .logo {
        width: 180px; /* Tamaño para tablets pequeñas */
    }
    
    h1 {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .logo {
        width: 160px; /* Tamaño para móviles */
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    .logo-container {
        gap: 10px;
    }
}

@media (max-width: 400px) {
    .logo {
        width: 140px; /* Tamaño para móviles pequeños */
    }
    
    h1 {
        font-size: 1.3rem;
    }
}

/* Ajustes del título */
h1 {
    color: #000000;
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 10px;
}

/* Títulos de las secciones - DESHABILITADO para secciones colapsables */
/* Los colores se manejan en .seccion-titulo h2 */

/* Estilos para botones */
.boton-calcular {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.boton-calcular.hidden {
    display: none !important;
}

/* Sección de información inferior */
.informacion-inferior {
    background: linear-gradient(135deg, #f5f9f5 0%, #e8f5e9 100%);
    padding: 40px 20px;
    margin-top: 60px;
    border-top: 3px solid #4CAF50;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.contenedor-info {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.contenedor-info p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #2c3e50;
    margin: 0;
    font-weight: 500;
}

@media (max-width: 768px) {
    .informacion-inferior {
        padding: 30px 15px;
        margin-top: 40px;
    }
    
    .contenedor-info p {
        font-size: 1rem;
        line-height: 1.6;
    }
}

#calcularPresupuesto {
    padding: 12px 25px;
    font-size: 1.1rem;
    font-weight: 600;
    background: linear-gradient(135deg, #4CAF50, #3e8e41);
    color: white;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

#calcularPresupuesto:hover {
    background: linear-gradient(135deg, #3e8e41, #2d682f);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(76, 175, 80, 0.4);
}

#calcularPresupuesto:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(76, 175, 80, 0.3);
}

#calcularPresupuesto i {
    font-size: 1.2rem;
    color: white;
}

.botones-accion {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px dashed var(--color-border);
}

#volverFormulario {
    background: #6c757d;
    color: white;
    border: 2px solid #6c757d;
}

#volverFormulario:hover {
    background: #5a6268;
    border-color: #5a6268;
    transform: translateY(-2px);
}

#volverFormulario i {
    margin-right: 8px;
}

.botones-accion button {
    min-width: 200px;
    transition: all 0.3s ease;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    background-color: #3e8e41;
    color: white;
}

.botones-accion button:hover {
    background-color: #346e35;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(62, 142, 65, 0.3);
}

.botones-accion button:active {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(62, 142, 65, 0.2);
}

/* Mantener el color específico para el botón de WhatsApp */
#enviarWhatsApp {
    background-color: #25D366;
    color: white;
}

#enviarWhatsApp:hover {
    background-color: #1fbd5a;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

#enviarWhatsApp:active {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.2);
}

/* Actualizar el botón de Email con el color verde de Natugreen */
#enviarEmail {
    background-color: #3e8e41;
    color: white;
}

#enviarEmail:hover {
    background-color: #346e35;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(62, 142, 65, 0.3);
}

#enviarEmail:active {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(74, 122, 255, 0.2);
}

/* Actualizar el botón de Imprimir con el color verde de Natugreen */
#imprimir {
    background-color: #3e8e41;
    color: white;
}

#imprimir:hover {
    background-color: #346e35;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(62, 142, 65, 0.3);
}

#imprimir:active {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(117, 117, 117, 0.2);
}

/* Ajuste para tamaño de íconos en los botones */
.botones-accion button i {
    font-size: 1.1rem;
    margin-right: 8px;
}

/* Ocultar inicialmente los botones de acción */
.presupuesto.hidden .botones-accion {
    display: none;
}

@media (max-width: 768px) {
    .botones-accion {
        flex-direction: column;
        align-items: center;
    }
    
    .botones-accion button {
        width: 80%;
        margin-bottom: 10px;
    }
}

/* Estilos para la despedida */
.despedida {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--color-border);
}

.despedida p {
    margin: 5px 0;
}

.firma {
    font-weight: 600;
    color: var(--color-primary-dark);
}

/* Estilos para modales personalizados */
.modal-personalizado {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(3px);
}

.modal-contenido {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 450px;
    overflow: hidden;
    position: relative;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.modal-personalizado.active .modal-contenido {
    transform: translateY(0);
}

.modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-header i {
    font-size: 1.5rem;
}

.modal-contenido.info .modal-header {
    background-color: rgba(33, 150, 243, 0.1);
}

.modal-contenido.info .modal-header i {
    color: #2196F3;
}

.modal-contenido.error .modal-header {
    background-color: rgba(244, 67, 54, 0.1);
}

.modal-contenido.error .modal-header i {
    color: #F44336;
}

.modal-contenido.confirmacion .modal-header {
    background-color: rgba(255, 152, 0, 0.1);
}

.modal-contenido.confirmacion .modal-header i {
    color: #FF9800;
}

.modal-contenido.exito .modal-header {
    background-color: rgba(76, 175, 80, 0.1);
}

.modal-contenido.exito .modal-header i {
    color: #4CAF50;
}

.cerrar-modal {
    cursor: pointer;
    font-size: 24px;
    font-weight: bold;
    color: #777;
    transition: color 0.2s;
}

.cerrar-modal:hover {
    color: #000;
}

.modal-body {
    padding: 20px;
    font-size: 1rem;
    line-height: 1.5;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Ajustar estilos para móviles */
@media (max-width: 500px) {
    .modal-contenido {
        width: 90%;
    }
    
    .modal-header h3 {
        font-size: 1.1rem;
    }
    
    .modal-body {
        padding: 15px;
        font-size: 0.9rem;
    }
    
    .modal-footer {
        padding: 10px 15px;
    }
}

/* Clase para cuando se está imprimiendo */
body.imprimiendo .presupuesto {
    display: block !important;
    page-break-inside: avoid;
    margin: 0 auto;
    max-width: 100%;
}

/* Estilos mejorados para impresión */
@media print {
    body {
        background-color: white !important;
        font-size: 9pt !important;
        color: black !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 210mm !important; /* Ancho A4 */
        height: 297mm !important; /* Alto A4 */
    }
    
    .container {
        width: 100% !important; 
        max-width: 100% !important;
        margin: 0 !important;
        padding: 5mm !important;
        box-shadow: none !important;
        background-color: white !important;
    }
    
    /* Configuración de página para reducir márgenes */
    @page {
        size: A4 portrait;
        margin: 6mm;
    }
    
    /* Ocultar elementos que no necesitamos imprimir */
    .datos-personales, 
    .ubicacion, 
    .planes, 
    .boton-calcular, 
    header .header-info,
    footer,
    .info-envio,
    button,
    .botones-accion,
    .modal-personalizado {
        display: none !important;
    }
    
    /* Estilos específicos para el contenido impreso dinámicamente */
    #contenido-impresion {
        display: block !important;
    }
    
    .contenedor-impresion {
        padding: 0 !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        font-size: 9pt !important;
    }
    
    .cabecera-impresion {
        margin-bottom: 4mm !important;
        text-align: center !important;
    }
    
    .cabecera-impresion img {
        width: 120px !important;
        height: auto !important;
        display: block !important;
        margin: 0 auto 3mm auto !important;
    }
    
    .cabecera-impresion h1 {
        font-size: 14pt !important;
        margin-bottom: 2mm !important;
        color: #333333 !important;
        border-bottom: 0.5px solid #cccccc !important;
        padding-bottom: 1mm !important;
    }
    
    .datos-cliente-impresion {
        margin-bottom: 3mm !important;
        font-size: 8pt !important;
        border: 0.5px solid #dddddd !important;
        padding: 1.5mm !important;
        background-color: #f8f8f8 !important;
    }
    
    .datos-cliente-impresion table {
        width: 100% !important;
        border-collapse: collapse !important;
    }
    
    .datos-cliente-impresion td {
        padding: 1mm !important;
        vertical-align: top !important;
    }
    
    .cuerpo-impresion h2 {
        font-size: 12pt !important;
        margin: 3mm 0 2mm 0 !important;
        padding-bottom: 1mm !important;
        color: #333333 !important;
        text-align: center !important;
        border-bottom: 0.5px solid #cccccc !important;
    }
    
    .cuerpo-impresion .resumen-presupuesto {
        padding: 2mm !important;
        margin-bottom: 3mm !important;
        font-size: 8pt !important;
        border: 0.5px solid #dddddd !important;
    }
    
    .cuerpo-impresion .fila {
        padding: 1mm 2mm !important;
        margin-bottom: 0.5mm !important;
        border-bottom: 0.5px solid #eeeeee !important;
    }
    
    .cuerpo-impresion .fila.total {
        border-top: 1px solid #333333 !important;
        border-bottom: none !important;
        font-weight: bold !important;
        font-size: 10pt !important;
        padding-top: 1.5mm !important;
        margin-top: 1mm !important;
    }
    
    .cuerpo-impresion .fila.plan-elegido {
        background-color: #f0f7f0 !important;
        border-left: 2px solid #4CAF50 !important;
        padding-left: 2mm !important;
        font-weight: 600 !important;
    }
    
    .cuerpo-impresion .nota-info {
        font-size: 7pt !important;
        margin: 1mm 0 !important;
        line-height: 1.3 !important;
        padding: 1mm !important;
        background-color: #f9f9f9 !important;
        border-left: 1px solid #2196F3 !important;
        color: #555555 !important;
    }
    
    .cuerpo-impresion .despedida {
        margin-top: 4mm !important;
        padding-top: 1.5mm !important;
        font-size: 8pt !important;
        line-height: 1.3 !important;
        text-align: right !important;
        border-top: 0.5px solid #dddddd !important;
    }
    
    .cuerpo-impresion .despedida p {
        margin: 0.5mm 0 !important;
    }
    
    .cuerpo-impresion .firma {
        font-weight: bold !important;
        margin-top: 1.5mm !important;
    }
    
    .pie-impresion {
        margin-top: 5mm !important;
        font-size: 7pt !important;
        color: #777777 !important;
        text-align: center !important;
        border-top: 0.5px solid #eeeeee !important;
        padding-top: 1.5mm !important;
    }
    
    .pie-impresion p {
        margin: 0.5mm 0 !important;
        line-height: 1.3 !important;
    }
    
    /* Estilos para la imagen del césped */
    .imagen-cesped-impresion {
        margin-top: 5mm !important;
        page-break-before: auto !important;
        page-break-inside: avoid !important;
    }
    
    .imagen-cesped-impresion h3 {
        font-size: 11pt !important;
        margin-bottom: 2mm !important;
        padding-bottom: 1mm !important;
        border-bottom: 0.5px solid #cccccc !important;
        color: #333333 !important;
        text-align: center !important;
    }
    
    .imagen-contenedor {
        border: 0.5px solid #dddddd !important;
        padding: 2mm !important;
        text-align: center !important;
        background-color: #f8f8f8 !important;
    }
    
    /* Para evitar cortes */
    .cuerpo-impresion, 
    .resumen-presupuesto, 
    .despedida,
    .imagen-cesped-impresion {
        page-break-inside: avoid !important;
    }
    
    /* Forzar colores para mejor impresión */
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        color-adjust: exact !important;
    }
}

/* Estilo específico para el mensaje de provincias */
.provincias-info {
    margin-top: 15px;
    background-color: rgba(33, 150, 243, 0.1);
    border-left: 3px solid #2196F3;
}

.provincias-info i.fas {
    color: #2196F3;
}

/* Estilos para la sección de estado del césped - Diseño compacto */
.estado-cesped {
    background-color: var(--color-light);
    border-radius: var(--border-radius);
    padding: 15px;
    margin-bottom: 25px;
    border-left: 4px solid #4CAF50;
    transition: var(--transition);
    position: relative;
}

.estado-cesped::after {
    content: "OPCIONAL";
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: rgba(76, 175, 80, 0.1);
    color: var(--color-primary-dark);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.estado-cesped:hover {
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.2);
}

/* Nuevo diseño compacto */
.estado-cesped-compacto {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 10px;
}

.estado-cesped-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.estado-cesped-info p {
    margin-bottom: 15px;
    color: #333;
}

.option-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.imagen-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 0.95rem;
    color: #333;
    transition: all 0.3s ease;
    cursor: pointer;
    flex: 1;
}

.imagen-btn:hover {
    background-color: #f5f5f5;
    border-color: #aaa;
}

.imagen-btn i {
    margin-right: 8px;
    color: #9C27B0;
}

.imagen-preview-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.imagen-preview {
    width: 100%;
    aspect-ratio: 4/3;
    background-color: white;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 2px dashed #ddd;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.imagen-preview i {
    font-size: 2.5rem;
    color: #9C27B0;
    margin-bottom: 10px;
    opacity: 0.5;
}

.imagen-preview p {
    font-size: 0.9rem;
    color: #777;
    margin: 0;
}

.imagen-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.imagen-info {
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.imagen-info p {
    margin: 0;
    font-size: 0.9rem;
    color: #333;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 0.85rem;
}

.cesped-nota {
    margin-top: 15px;
    padding: 10px;
    background-color: rgba(156, 39, 176, 0.05);
    border-radius: 8px;
    border-left: 3px solid #9C27B0;
}

.cesped-nota p {
    margin: 0;
    font-size: 0.85rem;
    color: #333;
}

.cesped-nota i {
    color: #9C27B0;
}

/* Estilos para la cámara */
.camera-container {
    width: 100%;
    aspect-ratio: 4/3;
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.camera-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.camera-buttons {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 10px;
}

@media (max-width: 768px) {
    .estado-cesped-compacto {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .option-buttons {
        flex-direction: row;
        gap: 10px;
    }
    
    .imagen-preview-container {
        margin-top: 10px;
    }
    
    .imagen-preview {
        aspect-ratio: 3/2;
    }
    
    .imagen-preview i {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .option-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .imagen-btn {
        width: 100%;
    }
}
/* Los headers mantienen el mismo estilo abiertos o cerrados */

/* Estilos para secciones tipo wizard (solo una visible a la vez) */
.seccion-colapsable {
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    border: 1px solid #e0e0e0;
    display: none; /* Ocultar por defecto */
}

.seccion-colapsable.activa {
    display: block; /* Solo mostrar la activa */
    animation: fadeInSlide 0.4s ease;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.seccion-colapsable.completada {
    background: #ffffff;
}

/* En modo wizard, las secciones no activas NO deben ocupar espacio */
.seccion-colapsable:not(.activa) {
    display: none !important;
}

/* Bordes de secciones completadas según su color */
.datos-personales.completada {
    border: 1px solid #bbdefb;
}

.ubicacion.completada {
    border: 1px solid #ffe0b2;
}

.planes.completada {
    border: 1px solid #c8e6c9;
}

.estado-cesped.completada {
    border: 1px solid #e1bee7;
}

.seccion-colapsable.activa {
    box-shadow: 0 4px 16px rgba(76, 175, 80, 0.2);
    border: 1px solid #4CAF50;
}

/* Bordes activos por sección */
.datos-personales.activa {
    box-shadow: 0 4px 16px rgba(33, 150, 243, 0.2);
    border-color: #2196F3;
}

.ubicacion.activa {
    box-shadow: 0 4px 16px rgba(255, 152, 0, 0.2);
    border-color: #FF9800;
}

.planes.activa {
    box-shadow: 0 4px 16px rgba(76, 175, 80, 0.2);
    border-color: #4CAF50;
}

.estado-cesped.activa {
    box-shadow: 0 4px 16px rgba(156, 39, 176, 0.2);
    border-color: #9C27B0;
}

.seccion-colapsable.bloqueada {
    border: 1px solid #f0f0f0;
}

.badge-opcional {
    background: #9C27B0;
    color: white;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    margin-left: 10px;
    box-shadow: 0 2px 6px rgba(156, 39, 176, 0.3);
    border: 2px solid #9C27B0;
    text-transform: uppercase;
}

.seccion-colapsable.bloqueada .badge-opcional {
    background: #bdbdbd;
    border-color: #bdbdbd;
    box-shadow: none;
    color: white;
}

/* Badge se mantiene visible y legible cuando está activa */
.seccion-colapsable.activa .badge-opcional,
.estado-cesped.activa .badge-opcional {
    background: #9C27B0 !important;
    color: white !important;
    border: 2px solid #9C27B0 !important;
    box-shadow: 0 3px 8px rgba(156, 39, 176, 0.4) !important;
}

/* Badge cuando está completada */
.seccion-colapsable.completada .badge-opcional {
    background: #BA68C8;
    border-color: #BA68C8;
    color: white;
}

.seccion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: #ffffff;
    color: #2c3e50;
    cursor: default; /* No es clickable en modo wizard */
    user-select: none;
    transition: all 0.3s ease;
    border-bottom: 3px solid #4CAF50;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Colores distintivos por sección */
.datos-personales .seccion-header {
    border-bottom-color: #2196F3;
}

.ubicacion .seccion-header {
    border-bottom-color: #FF9800;
}

.planes .seccion-header {
    border-bottom-color: #4CAF50;
}

.estado-cesped .seccion-header {
    border-bottom-color: #9C27B0;
}

.seccion-header:hover {
    background: #f8fef9;
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.15);
    transform: translateY(-1px);
}

.seccion-colapsable.bloqueada .seccion-header {
    background: #f5f5f5;
    border-bottom: 3px solid #bdbdbd;
    cursor: not-allowed;
    color: #9e9e9e;
}

.seccion-colapsable.bloqueada .seccion-header:hover {
    transform: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.seccion-colapsable.completada .seccion-header {
    background: #ffffff;
}

/* Bordes de headers completados según su color */
.datos-personales.completada .seccion-header {
    border-bottom: 3px solid #2196F3;
}

.ubicacion.completada .seccion-header {
    border-bottom: 3px solid #FF9800;
}

.planes.completada .seccion-header {
    border-bottom: 3px solid #4CAF50;
}

.estado-cesped.completada .seccion-header {
    border-bottom: 3px solid #9C27B0;
}

.seccion-colapsable.activa .seccion-header {
    color: white;
    border-bottom-width: 3px;
}

/* Headers activos mantienen el mismo estilo que cuando están cerrados */
.seccion-colapsable.activa .seccion-header {
    background: #ffffff;
    color: #2c3e50;
}

/* Solo se intensifica el color del borde cuando está activa */
.datos-personales.activa .seccion-header {
    border-bottom-color: #2196F3;
    box-shadow: 0 4px 8px rgba(33, 150, 243, 0.15);
}

.ubicacion.activa .seccion-header {
    border-bottom-color: #FF9800;
    box-shadow: 0 4px 8px rgba(255, 152, 0, 0.15);
}

.planes.activa .seccion-header {
    border-bottom-color: #4CAF50;
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.15);
}

.estado-cesped.activa .seccion-header {
    border-bottom-color: #9C27B0;
    box-shadow: 0 4px 8px rgba(156, 39, 176, 0.15);
}

.seccion-titulo {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.numero-paso {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #4CAF50 0%, #66BB6A 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    border: 2px solid #4CAF50;
    color: white;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
    transition: all 0.3s ease;
}

/* Números de paso con colores por sección */
.datos-personales .numero-paso {
    background: linear-gradient(135deg, #2196F3 0%, #42A5F5 100%);
    border-color: #2196F3;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
}

.ubicacion .numero-paso {
    background: linear-gradient(135deg, #FF9800 0%, #FFA726 100%);
    border-color: #FF9800;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
}

.planes .numero-paso {
    background: linear-gradient(135deg, #4CAF50 0%, #66BB6A 100%);
    border-color: #4CAF50;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.estado-cesped .numero-paso {
    background: linear-gradient(135deg, #9C27B0 0%, #BA68C8 100%);
    border-color: #9C27B0;
    box-shadow: 0 2px 8px rgba(156, 39, 176, 0.3);
}

.seccion-colapsable.bloqueada .numero-paso {
    background: linear-gradient(135deg, #e0e0e0 0%, #bdbdbd 100%);
    border: 2px solid #bdbdbd;
    color: #757575;
    box-shadow: none;
}

.seccion-colapsable.completada .numero-paso {
    background: linear-gradient(135deg, #66BB6A 0%, #81C784 100%);
    border: 2px solid #66BB6A;
}

/* Los números de paso mantienen su estilo original cuando está activa */
.seccion-colapsable.activa .numero-paso {
    /* Mantiene el estilo por defecto de cada sección */
}

.seccion-titulo h2 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    letter-spacing: 0.3px;
    transition: color 0.3s ease;
}

/* Títulos mantienen color oscuro siempre */
.seccion-colapsable.activa .seccion-titulo h2,
#presupuestoForm .seccion-colapsable.activa .seccion-titulo h2,
#presupuestoForm .datos-personales.activa .seccion-titulo h2,
#presupuestoForm .ubicacion.activa .seccion-titulo h2,
#presupuestoForm .planes.activa .seccion-titulo h2,
#presupuestoForm .estado-cesped.activa .seccion-titulo h2 {
    color: #2c3e50 !important;
}

/* Títulos con color de sección cuando está completada */
.datos-personales.completada:not(.activa) .seccion-titulo h2 {
    color: #1976D2;
}

.ubicacion.completada:not(.activa) .seccion-titulo h2 {
    color: #F57C00;
}

.planes.completada:not(.activa) .seccion-titulo h2 {
    color: #2e7d32;
}

.estado-cesped.completada:not(.activa) .seccion-titulo h2 {
    color: #7B1FA2;
}

/* Títulos grises cuando la sección está bloqueada */
.seccion-colapsable.bloqueada .seccion-titulo h2 {
    color: #9e9e9e;
}

.estado-icono {
    margin-left: auto;
    font-size: 1.2rem;
    transition: transform 0.3s ease, color 0.3s ease, opacity 0.3s ease;
    opacity: 0.8;
    color: inherit;
    display: none; /* Ocultar en modo wizard */
}

.seccion-colapsable.activa .estado-icono,
#presupuestoForm .seccion-colapsable.activa .estado-icono,
#presupuestoForm .datos-personales.activa .estado-icono,
#presupuestoForm .ubicacion.activa .estado-icono,
#presupuestoForm .planes.activa .estado-icono,
#presupuestoForm .estado-cesped.activa .estado-icono {
    opacity: 1 !important;
    transform: rotate(180deg);
    color: inherit !important;
}

.seccion-colapsable.bloqueada .estado-icono {
    opacity: 0.5;
}

/* Iconos de estado con color de sección cuando está completada */
.datos-personales.completada:not(.activa) .estado-icono {
    color: #1976D2;
}

.ubicacion.completada:not(.activa) .estado-icono {
    color: #F57C00;
}

.planes.completada:not(.activa) .estado-icono {
    color: #2e7d32;
}

.estado-cesped.completada:not(.activa) .estado-icono {
    color: #7B1FA2;
}

.check-completo {
    font-size: 1.5rem;
    color: #4CAF50;
    animation: checkPop 0.5s ease;
    background: white;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.4);
}

/* Check completado por sección */
.datos-personales .check-completo {
    color: #2196F3;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.4);
}

.ubicacion .check-completo {
    color: #FF9800;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.4);
}

.planes .check-completo {
    color: #4CAF50;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.4);
}

.estado-cesped .check-completo {
    color: #9C27B0;
    box-shadow: 0 2px 8px rgba(156, 39, 176, 0.4);
}

/* El check mantiene su color original */
.seccion-colapsable.activa .check-completo {
    /* Mantiene el color por defecto de cada sección */
}

@keyframes checkPop {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

.seccion-contenido {
    padding: 25px;
    display: block; /* Siempre visible cuando la sección está activa */
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Navegación tipo Wizard */
.navegacion-wizard {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin: 30px 0;
    padding: 20px;
}

.navegacion-wizard .btn {
    min-width: 150px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.navegacion-wizard .btn i {
    transition: transform 0.3s ease;
}

.navegacion-wizard .btn:hover i.fa-arrow-right {
    transform: translateX(3px);
}

.navegacion-wizard .btn:hover i.fa-arrow-left {
    transform: translateX(-3px);
}

#btnAnterior {
    background: #6c757d;
    color: white;
    border: 2px solid #6c757d;
}

#btnAnterior:hover:not(:disabled) {
    background: #5a6268;
    border-color: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

#btnAnterior:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #e0e0e0;
    color: #999;
    border-color: #e0e0e0;
}

#btnSiguiente {
    margin-left: auto;
}

@media (max-width: 768px) {
    .navegacion-wizard {
        flex-direction: column;
        gap: 15px;
    }
    
    .navegacion-wizard .btn {
        width: 100%;
        justify-content: center;
    }
    
    #btnSiguiente {
        margin-left: 0;
        order: -1; /* Mostrar primero en móvil */
    }
}

/* Indicador de progreso general */
.indicador-progreso {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(135deg, #ffffff 0%, #f8fef9 100%);
    padding: 20px 0;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    border-bottom: 1px solid #e8f5e9;
}

.barra-progreso {
    height: 10px;
    background: #f0f0f0;
    border-radius: 20px;
    overflow: hidden;
    margin: 0 auto;
    max-width: 90%;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

.barra-progreso-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50 0%, #66BB6A 50%, #81C784 100%);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.4);
    position: relative;
}

.barra-progreso-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        rgba(255, 255, 255, 0) 100%);
    animation: shimmer 2s infinite;
}

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

.texto-progreso {
    text-align: center;
    margin-top: 12px;
    font-size: 0.95rem;
    color: #2c3e50;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Estilos responsivos para secciones colapsables */
@media (max-width: 768px) {
    .seccion-header {
        padding: 15px 18px;
    }
    
    .seccion-titulo h2 {
        font-size: 1.1rem;
    }
    
    .numero-paso {
        width: 30px;
        height: 30px;
        font-size: 0.95rem;
    }
    
    .seccion-contenido {
        padding: 18px;
    }
    
    .seccion-colapsable.activa .seccion-contenido {
        padding: 18px;
    }
    
    .indicador-progreso {
        padding: 10px 0;
    }
    
    .texto-progreso {
        font-size: 0.85rem;
        padding: 0 10px;
    }
}

/* Estilos para formularios más intuitivos */
.form-group {
    transition: all 0.3s ease;
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 15px;
}

.form-group:focus-within {
    border-color: #3e8e41;
    background-color: rgba(62, 142, 65, 0.05);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(62, 142, 65, 0.1);
}

.form-group label {
    transition: all 0.3s ease;
}

.form-group:focus-within label {
    color: #3e8e41;
    font-weight: 600;
    transform: translateY(-2px);
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="number"],
select {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid #e0e0e0;
}

input[type="text"]:focus,
input[type="tel"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
select:focus {
    border-color: #3e8e41;
    box-shadow: 0 0 0 3px rgba(62, 142, 65, 0.2);
    outline: none;
}

/* Estilos para indicar formulario completado */
.form-group.completed {
    border-left: 3px solid #3e8e41;
    background-color: rgba(62, 142, 65, 0.03);
}

.form-group.completed label {
    color: #3e8e41;
}

/* Estilos para secciones completadas y destacadas */
.section-completed {
    position: relative;
}

.section-completed::after {
    content: '✓';
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    background-color: #3e8e41;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    animation: pulse 1s ease-in-out;
}

.section-highlight {
    border-left-width: 6px;
    animation: highlight 0.6s ease-in-out;
    position: relative;
}

.section-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(62, 142, 65, 0.1) 0%, transparent 70%);
    pointer-events: none;
    opacity: 0;
    animation: fadeIn 1s ease-in-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes highlight {
    0% { transform: translateX(0); }
    25% { transform: translateX(5px); }
    50% { transform: translateX(-3px); }
    75% { transform: translateX(2px); }
    100% { transform: translateX(0); }
}

.highlight-action {
    animation: pulse 1.5s infinite;
}

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

/* Estilos para plan seleccionado */
.plan-label.selected {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(62, 142, 65, 0.2);
}

/* Estilos para el botón de ubicación */
#obtenerUbicacion.loading {
    background-color: #64b5f6;
    cursor: wait;
}

#obtenerUbicacion.success {
    background-color: #3e8e41;
}

/* Spinner para carga */
.fa-spin {
    animation: fa-spin 1s infinite linear;
}

@keyframes fa-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Crear un indicador de progreso en la parte superior */
.container::before {
    content: '';
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, 
        var(--color-primary) var(--progress, 0%), 
        #f0f0f0 var(--progress, 0%)
    );
    z-index: 100;
    transition: all 0.5s ease;
}

/* Estilos para los números de paso */
.paso-numero {
    position: absolute;
    top: 15px;
    left: -15px;
    width: 30px;
    height: 30px;
    background-color: #f0f0f0;
    color: #666;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 2;
    transition: all 0.3s ease;
    border: 2px solid white;
}

.paso-completado {
    background-color: #3e8e41;
    color: white;
    transform: scale(1.1);
}

/* Ajustar posición de los encabezados para dar espacio a los números */
/* DESHABILITADO - Ahora se usa sistema de secciones colapsables */

/* Línea conectora entre pasos */
.datos-personales::before, .ubicacion::before, .planes::before, .estado-cesped::before {
    content: '';
    position: absolute;
    top: 45px;
    left: 0;
    height: calc(100% - 50px);
    width: 2px;
    background-color: #f0f0f0;
    z-index: 1;
}

.section-completed::before {
    background-color: #3e8e41;
    animation: lineGrow 0.6s ease-in-out;
}

@keyframes lineGrow {
    from { height: 0; }
    to { height: calc(100% - 50px); }
}

/* Hacer pasos más visibles en móvil */
@media (max-width: 768px) {
    .paso-numero {
        left: -10px;
        width: 25px;
        height: 25px;
        font-size: 0.9rem;
    }
    
    /* DESHABILITADO - Los estilos se manejan en .seccion-titulo h2 */
}

/* Estilos para la lista de servicios */
.servicios {
    list-style: none;
    padding-left: 0;
    margin-bottom: 5px;
}

.servicios li {
    margin-bottom: 6px;
    padding-left: 20px;
    position: relative;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    line-height: 1.3;
}

.servicios li i {
    position: absolute;
    left: 0;
    top: 3px;
    color: #3e8e41;
    width: 16px;
    text-align: center;
}

.servicios li:last-child {
    margin-bottom: 0;
}

.servicios li:not(:last-child) {
    margin-bottom: 6px;
}

/* Crear líneas divisorias entre elementos */
.servicios li:not(:last-child) {
    border-bottom: 1px dashed rgba(0, 0, 0, 0.07);
    padding-bottom: 12px;
}

/* Estilos específicos para planes */
.plan:nth-child(1) .servicios li i {
    color: #7cb342; /* Verde claro para básico */
}

.plan:nth-child(2) .servicios li i {
    color: #f57c00; /* Naranja para standard */
}

.plan:nth-child(3) .servicios li i {
    color: #8e24aa; /* Morado para premium */
}

/* Resaltar características al seleccionar un plan */
.plan input[type="radio"]:checked + .plan-label .servicios li {
    animation: highlight-feature 0.5s ease forwards;
}

@keyframes highlight-feature {
    0% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(5px);
    }
    100% {
        transform: translateX(0);
    }
}

/* Aplicar animación escalonada a cada elemento de la lista */
.plan input[type="radio"]:checked + .plan-label .servicios li:nth-child(1) {
    animation-delay: 0.1s;
}

.plan input[type="radio"]:checked + .plan-label .servicios li:nth-child(2) {
    animation-delay: 0.2s;
}

.plan input[type="radio"]:checked + .plan-label .servicios li:nth-child(3) {
    animation-delay: 0.3s;
}

.plan input[type="radio"]:checked + .plan-label .servicios li:nth-child(4) {
    animation-delay: 0.4s;
}

.plan input[type="radio"]:checked + .plan-label .servicios li:nth-child(5) {
    animation-delay: 0.5s;
}

/* Mejora visual para los sub-items */
.servicios li ul {
    margin-top: 12px;
    padding-left: 5px;
    width: 100%;
}

.servicios li ul li.bullet-item {
    position: relative;
    padding-left: 15px;
    margin-bottom: 8px;
    font-size: 0.95em;
    color: #555;
    border-bottom: none;
    padding-bottom: 0;
}

.servicios li ul li.bullet-item::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 0;
    color: inherit;
    font-size: 1.2em;
}

/* Mejorar visualización de elementos en móvil */
@media (max-width: 768px) {
    .planes-container {
        gap: 10px;
    }
    
    .plan-label {
        padding: 10px;
    }
    
    .servicios li {
        font-size: 0.8rem;
        margin-bottom: 5px;
    }
    
    .servicios li i {
        font-size: 0.9rem;
    }
}


/* Cambiar el color de los botones primarios */
.btn-primary {
    background-color: #3e8e41 !important;
    color: white;
    box-shadow: 0 3px 6px rgba(62, 142, 65, 0.16);
}

.btn-primary:hover {
    background-color: #346e35 !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(62, 142, 65, 0.2);
}

/* Cambiar color de los botones secundarios */
.btn-secondary {
    background-color: #3e8e41;
    color: white;
}

.btn-secondary:hover {
    background-color: #346e35;
}

.plan-label::after {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: #3e8e41;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
    z-index: 2;
}

.plan input[type="radio"]:checked + .plan-label {
    border-color: #3e8e41;
    box-shadow: 0 5px 20px rgba(62, 142, 65, 0.15);
    transform: translateY(-3px);
}

.plan input[type="radio"]:checked + .plan-label::before {
    border-color: #3e8e41;
}

/* Estilos para el mensaje de disponibilidad */
.nota-disponibilidad {
    margin: 30px 0 20px 0;
    padding: 15px;
    border-radius: 8px;
    font-size: 1rem;
    line-height: 1.5;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.nota-disponibilidad.alta-demanda {
    background-color: #fff3cd;
    border-left: 5px solid #ffc107;
    color: #856404;
}

.nota-disponibilidad.alta-demanda i {
    color: #ffc107;
    margin-right: 5px;
}

.nota-disponibilidad.baja-demanda {
    background-color: #d4edda;
    border-left: 5px solid #3e8e41;
    color: #155724;
}

.nota-disponibilidad.baja-demanda i {
    color: #3e8e41;
    margin-right: 5px;
}

.nota-disponibilidad strong {
    font-weight: 600;
}

/* Estilos para el mensaje de condiciones de agenda */
.nota-agenda {
    margin: 20px 0;
    padding: 18px;
    border-radius: 8px;
    font-size: 1rem;
    line-height: 1.6;
    background-color: #fff8e1;
    border-left: 5px solid #ff9800;
    color: #663c00;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.nota-agenda i {
    color: #ff9800;
    margin-right: 8px;
    font-size: 1.1rem;
}

.nota-agenda strong {
    font-weight: 600;
    color: #ff6f00;
}

.nota-agenda:hover {
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .nota-agenda {
        font-size: 0.95rem;
        padding: 15px;
    }
}

.btn-danger {
    background-color: #f44336;
    color: white;
}

.btn-danger:hover {
    background-color: #d32f2f;
}

/* Estilos para los planes de mantenimiento - tamaño más compacto */
.planes-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.plan {
    position: relative;
    transition: all 0.3s ease;
}

.plan-label {
    display: block;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    border-top: 5px solid transparent;
}

/* Colores específicos para cada plan */
#plan-basico .plan-label {
    border-top-color: #4CAF50;
}

#plan-standard .plan-label {
    border-top-color: #2196F3;
}

#plan-premium .plan-label {
    border-top-color: #FF9800;
}

.plan-header {
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.plan-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.plan-header h3 i {
    margin-right: 8px;
}

#plan-basico .plan-header h3 i {
    color: #4CAF50;
}

#plan-standard .plan-header h3 i {
    color: #2196F3;
}

#plan-premium .plan-header h3 i {
    color: #FF9800;
}

.precio {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
}

/* Efectos cuando se selecciona un plan */
.plan input[type="radio"]:checked + .plan-label {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

#plan-basico input[type="radio"]:checked + .plan-label {
    background-color: rgba(76, 175, 80, 0.05);
}

#plan-standard input[type="radio"]:checked + .plan-label {
    background-color: rgba(33, 150, 243, 0.05);
}

#plan-premium input[type="radio"]:checked + .plan-label {
    background-color: rgba(255, 152, 0, 0.05);
}

/* Servicios dentro de los planes */
.servicios {
    padding-left: 0;
    list-style-type: none;
}

.servicios li {
    margin-bottom: 10px;
    padding-left: 28px;
    position: relative;
    font-size: 0.95rem;
}

.servicios li i {
    position: absolute;
    left: 0;
    top: 3px;
    width: 20px;
    text-align: center;
}

.producto-beneficio {
    padding-left: 40px !important;
    font-size: 0.9rem !important;
    margin-bottom: 8px !important;
}

.producto-beneficio i {
    left: 20px !important;
}

@media (max-width: 768px) {
    .planes-container {
        grid-template-columns: 1fr;
    }
    
    .plan-label {
        padding: 15px;
    }
    
    .plan-header h3 {
        font-size: 1.2rem;
    }
    
    .servicios li {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }
}

/* Estilos unificados para todas las secciones del formulario */
#presupuestoForm section {
    position: relative;
    margin-bottom: 30px;
    padding: 25px 20px;
    border-radius: 10px;
    background-color: #f5f5f5;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* Barra de gradiente en la parte superior de cada sección */
#presupuestoForm section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(to right, rgba(255,255,255,0.5), rgba(255,255,255,0));
    z-index: 1;
}

/* Estilo para los títulos de sección con números - DESHABILITADO */
/* Los estilos se manejan en .seccion-titulo h2 */

/* Estilos específicos para cada sección - DESHABILITADOS para usar sistema de secciones colapsables */
/* Los colores ahora se manejan en .seccion-colapsable */

/* Presupuesto - Verde claro */
#presupuestoForm .presupuesto {
    border-left: 5px solid #8BC34A;
}

#presupuestoForm .presupuesto::before {
    background: linear-gradient(to right, #8BC34A, rgba(139, 195, 74, 0.2));
}

#presupuestoForm .presupuesto h2 {
    color: #689F38;
}

/* Estilos para pantalla pequeña */
@media (max-width: 768px) {
    #presupuestoForm section {
        padding: 20px 15px;
    }
    
    #presupuestoForm section h2 {
        font-size: 1.2rem;
    }
}

/* Espaciado reducido para la sección de Datos Personales */
#presupuestoForm .datos-personales .form-grid {
    gap: 12px;
    margin-bottom: 5px;
}

/* Ajustes en los márgenes y paddings para hacer el formulario más compacto */
#presupuestoForm section {
    padding-top: 20px;
    padding-bottom: 20px;
}

/* DESHABILITADO - Colores manejados en .seccion-titulo h2 */

#presupuestoForm .datos-personales {
    padding-bottom: 15px;
}

/* Estilos para pantalla pequeña */
@media (max-width: 768px) {
    #presupuestoForm section {
        padding: 20px 15px;
    }
    
    #presupuestoForm section h2 {
        font-size: 1.2rem;
    }
}

/* Mejoras para la sección de presupuesto */
.resumen-presupuesto {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

.fila {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.fila:last-child {
    border-bottom: none;
}

.fila span {
    font-size: 1rem;
}

.fila i {
    width: 20px;
    text-align: center;
    margin-right: 8px;
}

.subtotal, .total {
    font-weight: 600;
    font-size: 1.05rem;
}

.total {
    font-weight: 700;
    color: #333;
    font-size: 1.2rem;
    padding: 15px 0 5px;
    margin-top: 5px;
    border-top: 2px solid #8BC34A;
}

.plan-elegido {
    background-color: rgba(139, 195, 74, 0.1);
    border-radius: 8px;
    padding: 12px 15px !important;
    margin-bottom: 15px;
    border: none;
}

.plan-elegido span:first-child i {
    color: #8BC34A;
}

.plan-elegido span:last-child {
    font-weight: 600;
    color: #333;
}

.nota-info {
    background-color: rgba(33, 150, 243, 0.05);
    border-radius: 8px;
    padding: 12px 15px;
    margin: 10px 0;
    border-left: 3px solid #2196F3;
}

.nota-info p {
    margin: 0;
    font-size: 0.9rem;
    color: #333;
}

.nota-info i {
    color: #2196F3;
    margin-right: 8px;
}

.nota-verificacion {
    background-color: rgba(255, 152, 0, 0.05);
    border-radius: 8px;
    padding: 12px 15px;
    margin: 10px 0;
    border-left: 3px solid #FF9800;
}

.nota-verificacion p {
    margin: 0;
    font-size: 0.9rem;
    color: #333;
}

.nota-verificacion i {
    color: #FF9800;
    margin-right: 8px;
}

.info-envio {
    text-align: center;
    margin: 10px 0 20px 0;
    padding: 15px;
    background-color: rgba(139, 195, 74, 0.05);
    border-radius: 8px;
    border-left: 3px solid #8BC34A;
}


@media (max-width: 768px) {
    #calcularPresupuesto {
        width: 80%;
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    .fila span {
        font-size: 0.95rem;
    }
    
    .total {
        font-size: 1.1rem;
    }
    
    .info-envio {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    #calcularPresupuesto {
        width: 100%;
        padding: 10px 15px;
    }
    
    .resumen-presupuesto {
        padding: 15px;
    }
    
    .fila span {
        font-size: 0.9rem;
    }
}

/* Añadir un efecto visual para indicar la aparición del campo */
#numeroFactura:focus {
    animation: highlight-field 1s ease;
}

@keyframes highlight-field {
    0% { box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.15); }
    50% { box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.3); }
    100% { box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.15); }
} 