/* ===== PARCELAS CHILOÉ - ESTILOS PRINCIPALES ===== */

/* Sección Hero */
.parcelas-hero {
    background: linear-gradient(135deg, rgba(30, 58, 47, 0.7) 0%, rgba(30, 58, 47, 0.5) 100%);
    background-size: cover;
    background-position: center;
    color: white;
    padding: 120px 20px;
    text-align: left;
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.parcelas-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
    max-width: 600px;
}

.parcelas-hero .subtitle {
    font-size: 1.25rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    max-width: 600px;
}

.parcelas-hero p {
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 600px;
    color: rgba(255, 255, 255, 0.85);
}

.parcelas-hero .buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.parcelas-hero .btn {
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.parcelas-hero .btn-primary {
    background: oklch(0.75 0.12 75);
    color: oklch(0.18 0.04 155);
}

.parcelas-hero .btn-primary:hover {
    background: oklch(0.80 0.12 75);
    transform: translateY(-2px);
}

.parcelas-hero .btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.parcelas-hero .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.parcelas-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.parcelas-stats .stat {
    text-align: left;
}

.parcelas-stats .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: 'Fraunces', serif;
    color: oklch(0.75 0.12 75);
}

.parcelas-stats .stat-label {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.5rem;
}

/* Sección Características */
.parcelas-caracteristicas {
    padding: 80px 20px;
    background: white;
}

.parcelas-caracteristicas h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: oklch(0.20 0.02 60);
}

.parcelas-caracteristicas .intro {
    font-size: 1.125rem;
    color: oklch(0.55 0.02 0 / 0.6);
    margin-bottom: 3rem;
    max-width: 600px;
}

.caracteristicas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.caracteristica-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.caracteristica-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: oklch(0.28 0.07 155 / 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: oklch(0.28 0.07 155);
    flex-shrink: 0;
    font-size: 1.5rem;
}

.caracteristica-item h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: oklch(0.20 0.02 60);
    margin-bottom: 0.5rem;
}

.caracteristica-item p {
    font-size: 0.95rem;
    color: oklch(0.55 0.02 0 / 0.6);
    line-height: 1.5;
}

/* Sección Catálogo */
.parcelas-catalogo {
    padding: 80px 20px;
    background: white;
}

.parcelas-catalogo h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: oklch(0.20 0.02 60);
}

.parcelas-catalogo .intro {
    font-size: 1.125rem;
    color: oklch(0.55 0.02 0 / 0.6);
    margin-bottom: 2rem;
    max-width: 600px;
}

.parcelas-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border: 1px solid oklch(0.88 0.02 90);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
}

.stat-card .number {
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Fraunces', serif;
    color: oklch(0.28 0.07 155);
}

.stat-card .label {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: oklch(0.55 0.02 0 / 0.6);
    margin-top: 0.5rem;
}

.filtros-parcelas {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filtro-btn {
    padding: 0.625rem 1.25rem;
    border: 1px solid oklch(0.88 0.02 90);
    background: white;
    border-radius: 9999px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    color: oklch(0.55 0.02 0 / 0.6);
}

.filtro-btn:hover,
.filtro-btn.active {
    background: oklch(0.28 0.07 155);
    color: white;
    border-color: oklch(0.28 0.07 155);
}

.parcelas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.parcela-card {
    background: white;
    border: 1px solid oklch(0.88 0.02 90);
    border-radius: 1.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.parcela-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.parcela-card-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    position: relative;
    overflow: hidden;
}

.parcela-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.parcela-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
}

.parcela-card-content {
    padding: 1.5rem;
}

.parcela-numero {
    font-size: 0.875rem;
    color: oklch(0.55 0.02 0 / 0.6);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.parcela-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: oklch(0.20 0.02 60);
    margin-bottom: 0.5rem;
}

.parcela-sector {
    font-size: 0.875rem;
    color: oklch(0.55 0.02 0 / 0.6);
    margin-bottom: 1rem;
}

.parcela-precio {
    font-size: 1.5rem;
    font-weight: 700;
    color: oklch(0.28 0.07 155);
    margin-bottom: 1rem;
}

.parcela-descripcion {
    font-size: 0.95rem;
    color: oklch(0.55 0.02 0 / 0.6);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.parcela-caracteristicas {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.caracteristica-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8rem;
    color: oklch(0.28 0.07 155);
    background: oklch(0.28 0.07 155 / 0.1);
    padding: 0.375rem 0.625rem;
    border-radius: 0.5rem;
}

/* Modal */
.parcelas-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.parcelas-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 1.5rem;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: oklch(0.55 0.02 0 / 0.6);
}

.modal-close:hover {
    color: oklch(0.20 0.02 60);
}

/* Paginación */
.parcelas-pagination {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 0.625rem 0.875rem;
    border: 1px solid oklch(0.88 0.02 90);
    background: white;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: oklch(0.55 0.02 0 / 0.6);
}

.pagination-btn:hover,
.pagination-btn.active {
    background: oklch(0.28 0.07 155);
    color: white;
    border-color: oklch(0.28 0.07 155);
}

/* Formulario de contacto */
.parcelas-contacto {
    padding: 80px 20px;
    background: linear-gradient(135deg, rgba(30, 58, 47, 0.9) 0%, rgba(30, 58, 47, 0.8) 100%);
    color: white;
}

.parcelas-contacto h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.parcelas-contacto .intro {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    max-width: 600px;
    color: rgba(255, 255, 255, 0.85);
}

.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

@media (max-width: 768px) {
    .contacto-grid {
        grid-template-columns: 1fr;
    }
}

.contacto-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-item {
    display: flex;
    gap: 1rem;
}

.info-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: oklch(0.75 0.12 75 / 0.2);
    border: 1px solid oklch(0.75 0.12 75 / 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: oklch(0.75 0.12 75);
    flex-shrink: 0;
}

.info-content .label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 0.25rem;
}

.info-content .value {
    font-size: 1rem;
    font-weight: 500;
    color: white;
}

.contacto-form {
    background: white;
    border-radius: 1.5rem;
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: oklch(0.55 0.02 0 / 0.6);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid oklch(0.88 0.02 90);
    border-radius: 0.75rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: oklch(0.28 0.07 155);
    box-shadow: 0 0 0 3px oklch(0.28 0.07 155 / 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit {
    width: 100%;
    padding: 1rem;
    background: oklch(0.28 0.07 155);
    color: white;
    border: none;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-submit:hover {
    background: oklch(0.22 0.07 155);
}

.form-submit:active {
    transform: scale(0.98);
}

/* Footer */
.parcelas-footer {
    background: oklch(0.15 0.05 155);
    color: white;
    padding: 3rem 2rem 1.5rem;
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.5rem;
    text-decoration: none;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .parcelas-hero h1 {
        font-size: 2rem;
    }

    .parcelas-hero {
        padding: 60px 20px;
        min-height: auto;
    }

    .parcelas-caracteristicas,
    .parcelas-catalogo,
    .parcelas-contacto {
        padding: 40px 20px;
    }

    .parcelas-hero .buttons {
        flex-direction: column;
    }

    .parcelas-hero .btn {
        width: 100%;
        text-align: center;
    }

    .parcelas-grid {
        grid-template-columns: 1fr;
    }
}
