/* Reset y base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background-image: url('img/hero.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
}

/* Overlay oscuro sutil */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1;
}

/* Header / Navbar */
.hero-header {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 60px;
    background: rgba(0, 0, 0, 0.4);
}

.hero-logo img {
    height: 60px;
    width: auto;
}

.btn-contacto {
    padding: 12px 35px;
    background: transparent;
    color: white;
    border: 2px solid white;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-contacto:hover {
    background: white;
    color: #333;
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 10;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 60px 40px 60px;
    max-width: 1400px;
}

.hero-text h1 {
    font-size: 72px;
    font-weight: 700;
    color: white;
    line-height: 1.1;
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: -1px;
}

/* Animación de aparición desde abajo */
@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translate(-50%, 40px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%);
    }
}

/* Hero Footer con ubicación */
.hero-footer {
    position: absolute;
    left: 50%;
    bottom: 0px;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0px;
    animation: slideUpFade 1s ease-out 0.5s both;
}

.location-icon {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.location-icon svg {
    width: 28px;
    height: 28px;
    fill: #333;
}

.location-text {
    color: white;
    font-size: 42px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-text h1 {
        font-size: 56px;
    }
    
    .location-text {
        font-size: 32px;
    }
    
    .hero-header {
        padding: 25px 40px;
    }
    
    .hero-content {
        padding: 40px 40px 30px 40px;
    }
    
    .hero-footer {
        gap: 15px;
        bottom: -15px;
    }
}

@media (max-width: 768px) {
    .hero-header {
        padding: 20px 25px;
    }
    
    .hero-logo img {
        height: 45px;
    }
    
    .btn-contacto {
        padding: 10px 25px;
        font-size: 14px;
    }
    
    .hero-content {
        padding: 30px 25px 25px 25px;
    }
    
    .hero-text h1 {
        font-size: 36px;
    }
    
    .hero-footer {
        gap: 12px;
        bottom: 10px;
    }
    
    .location-icon {
        width: 40px;
        height: 40px;
    }
    
    .location-icon svg {
        width: 22px;
        height: 22px;
    }
    
    .location-text {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 400px;
    }
    
    .hero-header {
        padding: 15px 20px;
    }
    
    .hero-logo img {
        height: 35px;
    }
    
    .btn-contacto {
        padding: 8px 18px;
        font-size: 12px;
        border-radius: 20px;
    }
    
    .hero-content {
        padding: 25px 20px 20px 20px;
        justify-content: flex-start;
        padding-top: 80px;
    }
    
    .hero-text h1 {
        font-size: 28px;
        letter-spacing: -0.5px;
    }
    
    .hero-footer {
        gap: 10px;
        bottom: 8px;
    }
    
    .location-icon {
        width: 35px;
        height: 35px;
    }
    
    .location-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .location-text {
        font-size: 18px;
    }
}

@media (max-width: 360px) {
    .hero-text h1 {
        font-size: 24px;
    }
    
    .location-text {
        font-size: 16px;
    }
    
    .hero-footer {
        bottom: 8px;
        gap: 8px;
    }
    
    .location-icon {
        width: 30px;
        height: 30px;
    }
    
    .location-icon svg {
        width: 16px;
        height: 16px;
    }
}

/* ========================================
   SECCIÓN DE DESCRIPCIÓN
   ======================================== */

.description-section {
    background: #452E38;
    padding: 80px 40px;
    position: relative;
    overflow: hidden;
}

.description-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.description-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out 0.3s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.description-title {
    font-size: 34px;
    font-weight: 600;
    font-style: italic;
    color: #ffffff;
    line-height: 1.4;
    margin: 0 0 30px 0;
    letter-spacing: 0.5px;
}

.description-text {
    font-size: 16px;
    line-height: 1.8;
    color: #f0e8ed;
    margin: 0;
    font-weight: 400;
}

.description-text strong {
    font-weight: 700;
    color: #ffffff;
}

/* Responsive descripción */
@media (max-width: 1024px) {
    .description-section {
        padding: 70px 35px;
    }
    
    .description-title {
        font-size: 30px;
        margin-bottom: 25px;
    }
    
    .description-text {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .description-section {
        padding: 60px 30px;
    }
    
    .description-title {
        font-size: 26px;
        margin-bottom: 20px;
    }
    
    .description-text {
        font-size: 14px;
        line-height: 1.7;
    }
}

@media (max-width: 480px) {
    .description-section {
        padding: 50px 25px;
    }
    
    .description-title {
        font-size: 22px;
        margin-bottom: 18px;
        letter-spacing: 0.3px;
    }
    
    .description-text {
        font-size: 13px;
        line-height: 1.7;
    }
}

@media (max-width: 360px) {
    .description-title {
        font-size: 20px;
    }
    
    .description-text {
        font-size: 12px;
    }
}

/* ========================================
   SECCIÓN DE PLANOS
   ======================================== */

.planos-section {
    padding: 80px 40px;
    background-image: url('img/fondo-form.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.planos-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(245, 245, 245, 0.85);
    z-index: 1;
}

.planos-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Lado izquierdo */
.planos-left {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.planos-title {
    font-size: 48px;
    font-weight: 700;
    color: #3d2e2e;
    line-height: 1.1;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.planos-subtitle {
    font-size: 18px;
    color: #6b5b5b;
    margin: -15px 0 0 0;
    font-weight: 400;
}

/* Filtros de dormitorios */
.dormitorios-filter {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-btn {
    padding: 14px 25px;
    background: transparent;
    color: #a88c94;
    border: 2px solid #d4c8c8;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-family: 'Poppins', Arial, sans-serif;
    letter-spacing: 0.5px;
}

.filter-btn:hover {
    border-color: #452E38;
    color: #452E38;
}

.filter-btn.active {
    background: #452E38;
    color: white;
    border-color: #452E38;
}

/* Tipologías */
.tipologias-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tipologia-btn {
    width: 60px;
    height: 60px;
    background: transparent;
    color: #a88c94;
    border: 2px solid #d4c8c8;
    border-radius: 50%;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', Arial, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tipologia-btn:hover {
    border-color: #452E38;
    color: #452E38;
}

.tipologia-btn.active {
    background: #452E38;
    color: white;
    border-color: #452E38;
}

/* Información del plano */
.plano-info {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 20px 0;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-icon {
    width: 28px;
    height: 28px;
    fill: #452E38;
}

.info-item span {
    font-size: 16px;
    font-weight: 600;
    color: #3d2e2e;
}

.info-hexagon {
    width: 100px;
    height: 100px;
}

.info-hexagon svg {
    width: 100%;
    height: 100%;
}

/* Botón de descarga */
.btn-descargar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 35px;
    background: transparent;
    color: #452E38;
    border: 2px solid #452E38;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-family: 'Poppins', Arial, sans-serif;
    letter-spacing: 1px;
    text-decoration: none;
}

.btn-descargar:hover {
    background: #452E38;
    color: white;
}

.btn-descargar svg {
    width: 18px;
    height: 18px;
}

/* Lado derecho - Visor de planos */
.planos-right {
    display: flex;
    align-items: center;
    justify-content: center;
}

.plano-viewer {
    position: relative;
    width: 100%;
    max-width: 700px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.plano-image-container {
    position: relative;
    flex: 1;
    aspect-ratio: 4/3;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.plano-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
}

.plano-label {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #452E38;
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Poppins', Arial, sans-serif;
}

.plano-arrow {
    width: 60px;
    height: 60px;
    background: #452E38;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.plano-arrow:hover {
    background: #5a3e48;
    transform: scale(1.1);
}

.plano-arrow svg {
    width: 24px;
    height: 24px;
}

/* Responsive planos */
@media (max-width: 1200px) {
    .planos-container {
        gap: 40px;
    }
}

@media (max-width: 1024px) {
    .planos-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .planos-left {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .planos-title {
        font-size: 40px;
    }
}

@media (max-width: 768px) {
    .planos-section {
        padding: 60px 30px;
    }
    
    .planos-title {
        font-size: 36px;
    }
    
    .planos-subtitle {
        font-size: 16px;
    }
    
    .filter-btn {
        padding: 12px 20px;
        font-size: 13px;
    }
    
    .tipologia-btn {
        width: 55px;
        height: 55px;
        font-size: 15px;
    }
    
    .plano-info {
        gap: 20px;
    }
    
    .info-icon {
        width: 24px;
        height: 24px;
    }
    
    .info-item span {
        font-size: 14px;
    }
    
    .info-hexagon {
        width: 85px;
        height: 85px;
    }
    
    .plano-arrow {
        width: 50px;
        height: 50px;
    }
    
    .plano-arrow svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .planos-section {
        padding: 50px 25px;
    }
    
    .planos-left {
        gap: 25px;
    }
    
    .planos-title {
        font-size: 32px;
    }
    
    .planos-subtitle {
        font-size: 15px;
        margin-top: -10px;
    }
    
    .filter-btn {
        padding: 11px 18px;
        font-size: 12px;
    }
    
    .tipologia-btn {
        width: 50px;
        height: 50px;
        font-size: 14px;
    }
    
    .plano-info {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .info-hexagon {
        width: 75px;
        height: 75px;
    }
    
    .btn-descargar {
        padding: 14px 30px;
        font-size: 13px;
        width: 100%;
    }
    
    .plano-viewer {
        gap: 15px;
    }
    
    .plano-arrow {
        width: 45px;
        height: 45px;
    }
    
    .plano-image {
        padding: 15px;
    }
    
    .plano-label {
        top: 15px;
        left: 15px;
        padding: 6px 16px;
        font-size: 14px;
    }
}

/* ========================================
   SECCIÓN DE FORMULARIO
   ======================================== */

/* Animaciones de entrada tipo telón */
@keyframes slideInFromLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.form-section {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    overflow: hidden;
}

.form-container {
    width: 100%;
    max-width: none;
    margin: 0;
    display: grid;
    grid-template-columns: auto 1fr;
    min-height: 700px;
}

.form-image {
    position: sticky;
    top: 0;
    overflow: hidden;
    animation: slideInFromLeft 1s ease-out;
    height: 100vh;
}

.form-image img {
    width: auto;
    height: 100%;
    display: block;
}

.form-wrapper {
    background-image: url('img/fondo-form.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 70px;
    animation: slideInFromRight 1s ease-out;
}

.contact-form {
    width: 100%;
    max-width: 480px;
}

.form-header {
    margin-bottom: 30px;
    text-align: left;
}

.form-title {
    font-size: 32px;
    font-weight: 700;
    color: #3d2e2e;
    line-height: 1.15;
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.form-subtitle {
    font-size: 16px;
    color: #6b5b5b;
    font-weight: 500;
    margin: 0;
}

.form-content {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.form-group {
    position: relative;
    width: 100%;
}

.form__label {
    font-family: 'Poppins', Arial, sans-serif;
    color: #8b7d7d;
    font-size: 12px;
    font-weight: 600;
    position: absolute;
    top: 12px;
    left: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s;
    pointer-events: none;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"] {
    font-size: 15px;
    padding: 24px 0 9px 0;
    border: none;
    border-bottom: 1.5px solid #b8a8a8;
    border-radius: 0;
    outline: none;
    font-family: 'Poppins', Arial, sans-serif;
    font-weight: 500;
    background: transparent;
    color: #3d2e2e;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.contact-form input:focus {
    border-bottom: 2px solid #3d2e2e;
}

.contact-form input:focus + .form__label,
.contact-form input:not(:placeholder-shown) + .form__label {
    transform: translateY(-8px);
    font-size: 11px;
    color: #3d2e2e;
}

/* Grupo completo (para dormitorios y checkbox) */
.form-group-full {
    width: 100%;
}

.dormitorios-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #6b5b5b;
    margin-bottom: 12px;
}

.dormitorios-options {
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.dormitorio-btn {
    flex: 1;
    position: relative;
    cursor: pointer;
}

.dormitorio-btn input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.dormitorio-btn span {
    display: block;
    padding: 12px 18px;
    text-align: center;
    border: 2px solid #d4c8c8;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: #6b5b5b;
    background: transparent;
    transition: all 0.3s ease;
}

.dormitorio-btn input[type="radio"]:checked + span {
    background: #3d2e2e;
    color: white;
    border-color: #3d2e2e;
}

.dormitorio-btn:hover span {
    border-color: #3d2e2e;
}

/* Checkbox personalizado */
.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    position: relative;
    padding-left: 32px;
}

.checkbox-container input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    position: absolute;
    left: 0;
    top: 2px;
    height: 20px;
    width: 20px;
    background-color: transparent;
    border: 2px solid #b8a8a8;
    border-radius: 4px;
    transition: all 0.2s;
}

.checkbox-container:hover .checkmark {
    border-color: #3d2e2e;
}

.checkbox-container input[type="checkbox"]:checked ~ .checkmark {
    background-color: #3d2e2e;
    border-color: #3d2e2e;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-container input[type="checkbox"]:checked ~ .checkmark:after {
    display: block;
}

.checkbox-text {
    font-size: 13px;
    color: #6b5b5b;
    line-height: 1.4;
}

/* Botón de envío */
.form-submit {
    background: #3d2e2e;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 14px 40px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-family: 'Poppins', Arial, sans-serif;
    margin-top: 5px;
}

.form-submit:hover {
    background: #2d1e1e;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(61, 46, 46, 0.3);
}

/* ========================================
   POPUP DE ÉXITO
   ======================================== */

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.popup-overlay.active {
    opacity: 1;
}

.mensaje-exito-popup {
    background: white;
    border-radius: 16px;
    padding: 50px 40px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.popup-overlay.active .mensaje-exito-popup {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 32px;
    color: #999;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.popup-close:hover {
    color: #333;
}

.mensaje-exito-icono {
    margin: 0 auto 20px;
    width: 60px;
    height: 60px;
}

.mensaje-exito-titulo {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin: 0 0 15px 0;
}

.mensaje-exito-texto {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* ========================================
   RESPONSIVE FORMULARIO
   ======================================== */

@media (max-width: 1024px) {
    .form-wrapper {
        padding: 45px 55px;
    }
    
    .form-title {
        font-size: 28px;
    }
    
    .form-subtitle {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .form-container {
        display: flex;
        flex-direction: column;
    }
    
    .form-image {
        min-height: unset;
        height: auto;
        animation: none;
        order: 2;
    }
    
    .form-image img {
        width: 100%;
        height: auto;
    }
    
    .form-wrapper {
        padding: 40px 30px;
        animation: none;
        order: 1;
    }
    
    .form-header {
        text-align: center;
    }
    
    .form-title {
        font-size: 26px;
    }
    
    .form-subtitle {
        font-size: 14px;
    }
    
    .form-content {
        gap: 20px;
    }
    
    .dormitorios-options {
        gap: 10px;
    }
    
    .dormitorio-btn span {
        padding: 11px 15px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .form-image {
        min-height: unset;
        height: auto;
    }
    
    .form-image img {
        width: 100%;
        height: auto;
    }
    
    .form-wrapper {
        padding: 35px 25px;
    }
    
    .form-header {
        margin-bottom: 25px;
    }
    
    .form-title {
        font-size: 22px;
    }
    
    .form-subtitle {
        font-size: 13px;
    }
    
    .contact-form input[type="text"],
    .contact-form input[type="email"],
    .contact-form input[type="tel"] {
        font-size: 14px;
        padding: 22px 0 8px 0;
    }
    
    .form__label {
        font-size: 11px;
    }
    
    .form-content {
        gap: 18px;
    }
    
    .dormitorio-btn span {
        padding: 10px 12px;
        font-size: 12px;
    }
    
    .checkbox-text {
        font-size: 12px;
    }
    
    .form-submit {
        padding: 13px 35px;
        font-size: 14px;
    }
    
    .mensaje-exito-popup {
        padding: 40px 30px;
    }
    
    .mensaje-exito-titulo {
        font-size: 24px;
    }
    
    .mensaje-exito-texto {
        font-size: 15px;
    }
}

@media (max-width: 360px) {
    .form-title {
        font-size: 20px;
    }
    
    .form-subtitle {
        font-size: 12px;
    }
    
    .dormitorios-options {
        gap: 8px;
    }
    
    .dormitorio-btn span {
        padding: 9px 10px;
        font-size: 11px;
    }
}
