﻿/* ================= RESET Y BASE ================= */
body, html {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', 'sans-serif';
    background-color: #f4f6f9;
    overflow-x: hidden;
    color: #333;
}

/* ================= CONTENEDOR PRINCIPAL (DIVISIÓN 2 COLUMNAS) ================= */
.registro-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}
/* ================= COLUMNA IZQUIERDA (Info + Imagen) ================= */
.left-panel {
    width: 35%;
    background-color: #f4f6f9;
    display: flex;
    flex-direction: column;
    position: relative;
    border-right: 1px solid #e0e0e0;
    overflow: hidden;
}

.left-panel-content {
    padding: 50px 40px 20px 40px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    position: relative;
    z-index: 2;
}

/* Logo */
.left-panel .logo {
    width: 220px;
    margin-bottom: 25px;
}

/* Título y Texto (Alineados a la izquierda) */
.left-panel h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -0.5px;
    text-align: left;
}

    .left-panel h1 span {
        color: #dc3545;
    }

.left-panel p {
    font-size: 0.95rem;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 40px;
    text-align: left;
    max-width: 100%;
}

/* ================= LISTA DE BENEFICIOS (CENTRADA) ================= */
.benefits-list {
    list-style: none; /* Quita los puntos de la lista */
    padding: 0;
    margin: auto 0; /* Centra la lista verticalmente en el espacio disponible */
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 20px; /* Espacio entre cada beneficio */
    width: 100%;
    max-width: 340px; /* Ancho máximo para que quepan las descripciones */
}

    .benefits-list li {
        display: flex;
        align-items: flex-start; /* Alinea el icono con la primera línea de texto */
        gap: 15px; /* Espacio entre el icono y el texto */
    }

        /* Icono circular con fondo rojo claro */
        .benefits-list li .icon-wrapper {
            flex-shrink: 0; /* Evita que el icono se encoja */
            width: 45px;
            height: 45px;
            background-color: #fce8e8; /* Rojo muy claro de fondo */
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

            .benefits-list li .icon-wrapper i {
                color: #dc3545; /* Rojo intenso para el icono */
                font-size: 1.3rem;
                margin: 0;
                width: auto;
            }

/* Texto del beneficio */
.benefit-text {
    display: flex;
    flex-direction: column;
}

    .benefit-text strong {
        font-size: 1rem;
        color: #333;
        font-weight: 700;
        line-height: 1.2;
        margin-bottom: 2px;
    }

    .benefit-text span {
        font-size: 0.85rem;
        color: #6c757d;
        font-weight: 400;
        line-height: 1.3;
    }

/* ================= IMAGEN MACHU PICCHU (BANNER VERTICAL) ================= */
.machu-picchu-container {
    position: relative;
    width: 100%;
    margin-top: auto; /* Empuja la imagen hacia el fondo */
    line-height: 0;
    /* Eliminamos el max-height para que la imagen pueda crecer lo que necesite */
    /* max-height: 40vh;  <-- ELIMINADO */
    overflow: hidden;
}

.machu-picchu-img {
    width: 100%;
    height: auto; /* La imagen mantiene su proporción natural */
    display: block;
    object-fit: cover;
    object-position: center top; /* Enfoca la parte superior (el cielo) */
    /* DEGRADADO MUCHO MÁS SUAVE: Solo difumina el 5% superior */
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 5%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 5%);
}

/* Franja Roja Curva */
.red-curve-overlay {
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 60%;
    height: 40px;
    background-color: #dc3545;
    border-top-left-radius: 100% 100%;
    z-index: 3;
}

/* ================= COLUMNA DERECHA (Formulario) ================= */
.right-panel {
    width: 65%;
    padding: 40px 30px;
    overflow-y: auto;
    background-color: #f4f6f9;
}

/* ================= TARJETAS DE SECCIÓN ================= */
.section-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.04);
}

.section-title {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: #dc3545;
    margin-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
}

/* Iconos circulares rojos */
.icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: #dc3545;
    color: #fff;
    border-radius: 50%;
    margin-right: 12px;
    font-size: 14px;
}

/* ================= FORMULARIOS ================= */
.form-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: #495057;
    margin-bottom: 5px;
}

.required-label::after {
    content: " *";
    color: #dc3545;
    font-weight: bold;
}

.form-control, .form-select {
    border-radius: 6px;
    border: 1px solid #ced4da;
    font-size: 0.9rem;
    padding: 8px 12px;
    color: #333;
}

    .form-control:focus, .form-select:focus {
        border-color: #dc3545;
        box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
    }

.section-card select.form-select {
    text-overflow: ellipsis;
    padding-right: 25px;
}

/* ================= TABLA DE CONTACTOS ================= */
.contactos-table {
    font-size: 0.9rem;
    margin-bottom: 0;
}

    .contactos-table thead th {
        background-color: #f8f9fa;
        color: #495057;
        font-weight: 600;
        border-bottom: 2px solid #dee2e6;
        padding: 10px;
        vertical-align: middle;
    }

    .contactos-table tbody td {
        vertical-align: middle;
        padding: 8px;
    }

    .contactos-table input, .contactos-table select {
        font-size: 0.85rem;
        padding: 5px 8px;
    }

.btn-add-contacto {
    background-color: #dc3545;
    color: #fff;
    border: none;
    font-size: 0.85rem;
    padding: 8px 16px;
    border-radius: 6px;
    transition: background 0.3s;
}

    .btn-add-contacto:hover {
        background-color: #bb2d3b;
        color: #fff;
    }

.btn-eliminar-contacto {
    background: #dc3545;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 5px 8px;
}

    .btn-eliminar-contacto:hover {
        background: #bb2d3b;
    }

/* ================= BOTONES PRINCIPALES ================= */
.btn-registrar {
    background-color: #dc3545;
    color: #fff;
    padding: 10px 30px;
    border-radius: 6px;
    font-weight: 600;
    border: none;
    transition: 0.3s;
}

    .btn-registrar:hover {
        background-color: #bb2d3b;
        color: #fff;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
    }

.btn-cancelar {
    border: 1px solid #6c757d;
    color: #6c757d;
    padding: 10px 30px;
    border-radius: 6px;
    background: transparent;
    font-weight: 600;
    text-decoration: none;
}

    .btn-cancelar:hover {
        background-color: #6c757d;
        color: #fff;
    }

/* ================= RESPONSIVE ================= */
@media (max-width: 992px) {
    .registro-container {
        flex-direction: column;
    }

    .left-panel, .right-panel {
        width: 100%;
    }

    .left-panel {
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
    }

        .left-panel .logo {
            width: 140px;
        }

        .left-panel h1 {
            font-size: 1.8rem;
        }

    .machu-picchu-img {
        max-height: 250px;
        object-fit: cover;
    }
}
