* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: #ffffff;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
}

main {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;

}

/* PARTE SUPERIOR (MANOS + TITULAR) */
.hero {
    position: block;
    width: 100%;
    height: 65vh;
    background-image: url('img/manos.webp');
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.hero-content {
    position: relative;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    height: 100%;

}

.hero-text {
    position: block;
    margin-top: 50px;
    color: #ffffff;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-text h1 {
    font-size: 4rem;
    line-height: 0.95;
}

.hero-text h2 {
    font-size: 2.4rem;
    line-height: 1.1;
}

/* PARTE INFERIOR */
.bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.bottom-left {
    height: fit-content;
    width: 40%;
    min-width: 0;
    position: relative;
}

.portrait-block {
    position: absolute;
    top: 0%;
    left: -30%;
    transform: translateY(-35%);


}

.portrait-block img {
    width: 85%;
    display: block;
}

/* Ocultar imagen móvil en desktop */
.mobile-portrait {
    display: none;
}

.title-text-content {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    text-align: right;
}

.title-text-content img {
    margin-top: 10px;
    width: 200px;
}

.bottom-right {
    width: 60%;
    min-width: 0;
    height: fit-content;
}


.bottom-text {
    color: #85305D;
    font-weight: 600;
}

.text-content {
    display: flex;
    justify-content: space-between;
    align-items: end;
}

.price-content {
    font-size: 22px;
    flex-direction: column;
    line-height: 0.9;

}

.subheading {
    color: #70C399;
    font-weight: 800;
    font-size: 2.4rem;
    text-transform: uppercase;
}

.bottom-text h3 {

    font-size: 4rem;
    font-weight: 900;
    line-height: 0.9;
}

.details {
    margin-top: 1.5rem;
    color: #70C399;
    font-weight: 600;
    line-height: 1.4;
    font-size: 22px;
}

.info-list {
    margin-top: 1.2rem;
    padding-left: 1.2rem;
    font-size: 0.9rem;
}

.info-list li {
    margin-bottom: 0.25rem;
}

.organiza {
    margin-top: 1.3rem;
    font-size: 0.85rem;
}

.form-section {
    width: 50%;
    background-color: white;
    margin: 20px 0 10px auto;
}

.form-container {
    padding: 20px;
    display: flex;
    max-height: 350px;
}

.form-section form {
    display: grid;
    gap: 0.8rem;
    width: 100%;
}

.form-section input {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.radio-group {
    margin-top: -5px;
    display: grid;
    gap: 5pxrem;
    font-weight: 600;
    color: #85305D;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.98rem;
}

.radio-group label.radio-with-input {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: nowrap;
}

.radio-group label.radio-with-input input[type="number"] {
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.9rem;
    width: 100px;
    margin-left: 8px;
    display: none;
}

.radio-group label.radio-with-input input[type="number"].visible {
    display: inline-block;
}

/* Input único para número de personas/comensales */
.num-personas-input {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    width: 100%;
    margin-top: 5px;
}

/* Sidebar para nombres de comensales */
.comensales-sidebar {
    display: none;
    margin-left: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 300px;
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
}

.comensales-sidebar.visible {
    display: block;
}

.comensales-sidebar h3 {
    color: #85305D;
    font-size: 1rem;
    margin-bottom: 15px;
    font-weight: 700;
    text-align: center;
}

.comensales-sidebar .comensal-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.comensales-sidebar .comensal-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.comensales-sidebar label {
    display: block;
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 5px;
    font-weight: 600;
}

.comensales-sidebar input[type="text"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.9rem;
    box-sizing: border-box;
}

.comensales-sidebar input[type="text"]:focus {
    outline: none;
    border-color: #85305D;
    box-shadow: 0 0 0 2px rgba(133, 48, 93, 0.2);
}

.comensales-sidebar .field-error {
    font-size: 0.75rem;
    margin-top: 3px;
}

/* Scrollbar personalizado para el sidebar */
.comensales-sidebar::-webkit-scrollbar {
    width: 8px;
}

.comensales-sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.comensales-sidebar::-webkit-scrollbar-thumb {
    background: #85305D;
    border-radius: 4px;
}

.comensales-sidebar::-webkit-scrollbar-thumb:hover {
    background: #6b2550;
}

/* Indicador de precio total */
.precio-total-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #85305D;
    border-radius: 8px;
    padding: 12px 15px;
    text-align: center;
    font-weight: 600;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.precio-total {
    font-size: 1.3rem;
    font-weight: 800;
    color: #85305D;
}

.precio-detalle {
    font-size: 0.85rem;
    color: #70C399;
    font-weight: 500;
}

.form-section button {
    background: #85305D;
    color: #fff;
    border: none;
    padding: 0.75rem 1rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.3s;
}

.form-section button:hover {
    background: #6b2550;
}

.form-section button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Estilos para validación y errores */
.error-messages {
    display: none;
    background-color: #fee;
    border: 1px solid #fcc;
    border-radius: 4px;
   

}

.error-message {
    color: #c33;
    font-size: 0.9rem;
    margin: 0;
   
}

.form-section input.error {
    border-color: #c33;
    background-color: #fee;
}

.field-error {
    display: none;
    color: #c33;
    font-size: 0.8rem;
    margin-top: -10px;

}

.form-section input:focus {
    outline: none;
    border-color: #85305D;
    box-shadow: 0 0 0 2px rgba(133, 48, 93, 0.2);
}

.form-section input:valid:not(:placeholder-shown) {
    border-color: #70C399;
}

/* Estilos para el modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s;
}

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

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 40px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: slideDown 0.3s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

.modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #85305D;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.modal-close:hover {
    color: #6b2550;
}

.modal-icon {
    text-align: center;
    font-size: 64px;
    color: #70C399;
    margin-bottom: 20px;
    line-height: 1;
}

.modal-title {
    color: #85305D;
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 25px;
}

.modal-details {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.modal-details p {
    margin: 10px 0;
    color: #555;
    font-size: 1rem;
}

.modal-details strong {
    color: #85305D;
    font-weight: 700;
}

.modal-message {
    text-align: center;
    margin-bottom: 25px;
}

.modal-message p {
    color: #555;
    margin: 10px 0;
    line-height: 1.6;
}

.modal-message strong {
    color: #85305D;
    font-size: 1.1rem;
}

.modal-date {
    color: #70C399 !important;
    font-weight: 600;
    margin-top: 15px !important;
}

.modal-button {
    width: 100%;
    background: #85305D;
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.modal-button:hover {
    background: #6b2550;
}

.span-memorial{
    white-space: nowrap;
}
/* Responsive para el modal */
@media (max-width: 768px) {
    .modal-content {
        margin: 10% auto;
        padding: 30px 20px;
        width: 95%;
    }

    .modal-title {
        font-size: 1.5rem;
    }

    .modal-icon {
        font-size: 48px;
    }

    .modal-details {
        padding: 15px;
    }

    .modal-details p {
        font-size: 0.9rem;
    }
}

.price-text-span {
    margin: 0 0 0 10px
}

.price-tag-span {
    font-size: 40px;

}

/* MEDIA QUERIES PARA MÓVIL */
@media (max-width: 768px) {
    main {
        padding: 0 15px;
    }

    .hero {
        height: auto;
        min-height: 50vh;
        background-size: cover;
        background-position: center;
    }

    .hero-content {
        padding: 15px;
    }

    .hero-text {
        margin-top: 15px;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2rem;
        line-height: 1.1;
    }

    .form-section {
        width: 100%;
        margin: 20px auto 0;
    }

    .form-container {
        padding: 15px;
        flex-direction: column;
    }
    
    .comensales-sidebar {
        width: 100%;
        margin-left: 0;
        margin-top: 15px;
        max-height: 350px;
    }
    
    .radio-group label.radio-with-input {
        flex-wrap: nowrap;
    }
    
    .radio-group label.radio-with-input input[type="number"] {
        width: 100px;
    }
    
    .precio-total-container {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .precio-total {
        font-size: 1.1rem;
    }
    
    .precio-detalle {
        font-size: 0.75rem;
    }



    .bottom {
        flex-direction: column;
        padding: 40px 0;
    }

    .bottom-left {
        width: 100%;
        display: none;
    }

    .portrait-block {
        display: none;
    }

    /* Imagen móvil al final */
    .mobile-portrait {
        display: block;
        width: 80%;
        text-align: center;
        padding: 0px 20px;
        margin: 20px auto 0;
    }

    .mobile-portrait img {
        width: 100%;
        max-width: 400px;
        display: block;
        margin: 0 auto;
    }

    .bottom-right {
        width: 100%;
        padding: 0;
    }

    .title-text-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }

    .title-text-content img {
        width: 150px;
    }

    .subheading {
        font-size: 1.5rem;
    }

    .bottom-text h3 {
        font-size: 2.5rem;
    }

    .text-content {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        margin-top: 20px;
    }

    .bottom-text {
        width: 100%;
    }

    .price-content {
        text-align: center;
        font-size: 18px;
    }

    .price-tag-span {
        font-size: 32px;
    }

    .details {
        text-align: center;
        font-size: 0.95rem;
    }

    .info-list {
        font-size: 0.85rem;
        text-align: left;
    }

    .organiza {
        text-align: center;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    main {
        padding: 0 10px;
    }

    .hero-content {
        padding: 40px 20px;
    }

    .hero-text h1 {
        font-size: 1.5rem;
    }

    .subheading {
        font-size: 1.2rem;
    }

    .bottom-text h3 {
        font-size: 2rem;
    }

    .price-tag-span {
        font-size: 28px;
    }

    .form-container {
        padding: 10px;
        flex-direction: column;
    }
    
    .comensales-sidebar {
        width: 100%;
        margin-left: 0;
        margin-top: 15px;
        max-height: 300px;
    }
    
    .radio-group label.radio-with-input {
        flex-wrap: wrap;
    }
    
    .radio-group label.radio-with-input input[type="number"] {
        margin-left: 0;
        margin-top: 5px;
        width: 120px;
    }

    .title-text-content img {
        width: 120px;
    }
    .margin-mobile{
        margin: 0 20px ;
    }
    .form-container {
        padding: 20px;
        display: flex;
        max-height: 650px;
    }
   
}