 @import url('https://fonts.googleapis.com/css2?family=Abril+Fatface&family=Montserrat:wght@300;600&family=Lora:ital,wght@0,400;1,400&display=swap');
 :root {
     --color-bg: #ffffff;
     --color-text: #111111;
     --color-accent: #888888;
     --color-soft: #f8f8f8;
     --color-border: #eeeeee;
     --font-title: 'Abril Fatface', serif;
     --font-accent: 'Montserrat', sans-serif;
     --font-body: 'Lora', serif;
}
 * {
     box-sizing: border-box;
     margin: 0;
     padding: 0;
}
 html {
     scroll-behavior: smooth;
}
 body {
     font-family: var(--font-body);
     background-color: var(--color-bg);
     color: var(--color-text);
     line-height: 1.8;
     font-size: 1.1rem;
     overflow-x: hidden;
     width: 100%;
}
/* NAVIGATION */
 header {
     display: flex;
     justify-content: space-between;
     align-items: center;
     padding: 1.5rem 2rem;
     background-color: rgba(255,255,255,0.95);
     border-bottom: 1px solid var(--color-border);
     position: sticky;
     top: 0;
     z-index: 1000;
}
 nav {
     display: flex;
     align-items: center;
     gap: 3rem;
     max-width: 1200px;
}
 #main-nav {
    display: flex;
    align-items: center;
}
 .nav-links {
     display: flex;
     list-style: none;
     gap: 2.5rem;
     font-family: var(--font-accent);
     text-transform: uppercase;
     font-size: 0.8rem;
     letter-spacing: 0.15em;
}
 .nav-links a {
     text-decoration: none;
     color: var(--color-text);
     transition: color 0.3s;
}
 .nav-links a:hover {
     color: var(--color-accent);
}
 .nav-text {
     vertical-align: middle;
 }
 .hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none; border: none; cursor: pointer;
    z-index: 2000;
}
 .hamburger span { 
    width: 25px; 
    height: 2px; 
    background: var(--color-text); 
}
 .logo-btn {
     width: 50px;
     height: 50px;
     display: flex;
     justify-content: center;
     align-items: center;
     cursor: pointer;
     transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
     display: flex;
     align-items: center;
}
 .logo-btn img { 
    width: 100%; 
    height: auto; 
}
 .logo-btn:hover img {
     -webkit-filter: invert(1.2) drop-shadow(0 0 0.75rem #222);
     filter: invert(1.2) drop-shadow(0 0 0.75rem #222);
}
/* HERO */
 .hero {
     height: 60vh;
     display: flex;
     justify-content: center;
     align-items: center;
     background-color: var(--color-soft);
     border-bottom: 1px solid var(--color-border);
     background-image: url('obras/RefugioInterior.jpeg');
     background-size: cover;
     background-position: center;
     background-repeat: no-repeat;
     position: relative;    
 }
 .hero h1 {
     font-family: var(--font-title);
     font-size: clamp(3.5rem, 12vw, 8rem);
     letter-spacing: -0.02em;
 }
 .hero img {
     display: block;
     max-width: 40vw;
     width: auto;
     height: auto;
     filter: drop-shadow(0 0 2rem #eee);
 }
 section {
     padding: 6rem 10%;
     opacity: 0;
     transform: translateY(30px);
     transition: all 0.8s ease-out;
}
 section.revealed {
     opacity: 1;
     transform: translateY(0);
}
 .section-title {
     font-family: var(--font-accent);
     text-align: center;
     font-size: 1rem;
     margin-bottom: 5rem;
     text-transform: uppercase;
     letter-spacing: 0.4em;
     color: var(--color-accent);
}
 .about-title{
     aspect-ratio: 4/5; 
     position: relative;
     padding: 0 !important;
     display: flex; 
     overflow: hidden;
     flex-direction: column; 
     justify-content: center;
     background-color: var(--color-soft); 
     background-image: url('assets/about.jpeg');
     background-size: cover;
     background-position: center;
     background-repeat: no-repeat;
     position: relative;
     color: whitesmoke;
 }
 .about-inner {
    display:block;
    position: absolute; 
    width:100%; 
    height:100%; 
    display: flex; 
    flex-direction: column; 
    justify-content: flex-end; 
    filter: drop-shadow(0 0 1rem #111);   
 }
 #title{
    font-family: var(--font-title); 
    font-size: 4rem;
    line-height: 90%;
    padding: 4rem 4rem 0 4rem; 
 }
 #subtitle{
    font-family: var(--font-accent); 
    font-size: 1.35rem; 
    letter-spacing: 0.2em; 
    text-transform: uppercase;
    padding: 0 4rem 4rem 4rem; 
 }
 #mobile-title{
    display:none;
    font-family: var(--font-accent);
 }
 
/* IMAGE CONTAINERS & SOLD OVERLAY */
 .img-wrapper {
     position: relative;
     overflow: hidden;
     background: var(--color-soft);
}
 .sold-badge {
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     background: rgba(255, 255, 255, 0.6);
     display: flex;
     justify-content: center;
     align-items: center;
     z-index: 5;
     pointer-events: none;
}
 .sold-badge span {
     background: white;
     padding: 0.6rem 1.2rem;
     border: 1px solid var(--color-text);
     font-family: var(--font-accent);
     font-size: 0.65rem;
     letter-spacing: 0.3em;
     text-transform: uppercase;
}
/* GRIDS */
 .grid-featured {
     display: grid;
     grid-template-columns: 1fr 1fr;
     gap: 4rem;
}
 .featured-card {
     cursor: pointer;
}
 .featured-card .img-wrapper {
     aspect-ratio: 16/10;
     margin-bottom: 1.5rem;
}
 .featured-card img {
     width: 100%;
     height: 100%;
     object-fit: cover;
     transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}
 .featured-card:hover img {
     transform: scale(1.05);
}
 .card-content h3 {
     font-family: var(--font-title);
     font-size: 1.8rem;
     font-weight: normal;
}
 .grid-gallery {
     display: grid;
     grid-template-columns: repeat(4, 1fr);
     gap: 2rem;
}
 .gallery-item {
     cursor: pointer;
}
 .gallery-item .img-wrapper {
     aspect-ratio: 1/1;
}
 .gallery-item img {
     width: 100%;
     height: 100%;
     object-fit: cover;
     transition: opacity 0.3s;
}
 .gallery-item:hover img {
     opacity: 0.7;
}
 .gallery-info {
     padding: 1rem 0;
     font-size: 0.75rem;
     letter-spacing: 0.1em;
     text-transform: uppercase;
     font-family: var(--font-accent);
}
/* MODAL */
 #modal-overlay {
     position: fixed;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     background: white;
     z-index: 2000;
     display: none;
}
 .modal-container {
     width: 100%;
     height: 100%;
     display: flex;
     position: relative;
}
 .modal-close {
     position: absolute;
     top: 2rem;
     right: 3rem;
     font-size: 2rem;
     cursor: pointer;
     z-index: 2100;
}
 .modal-image-side {
     flex: 2;
     padding: 5%;
     display: flex;
     align-items: center;
     justify-content: center;
}
 .modal-image-side img {
     max-width: 100%;
     max-height: 85vh;
}
 .modal-info-side {
     flex: 1;
     padding: 5% 5%;
     border-left: 1px solid var(--color-border);
     display: flex;
     flex-direction: column;
     justify-content: center;
}
 .modal-info-side h2 {
     font-family: var(--font-title);
     font-size: 3rem;
     margin-bottom: 1rem;
}
 .modal-info-side h3 {
     font-family: var(--font-body);
     font-size: 2rem;
     margin-bottom: 1rem;
}
 .modal-price {
     font-family: var(--font-accent);
     letter-spacing: 0.2em;
     font-weight: 600;
     padding-bottom: 0.25rem;
     border-bottom: 1px solid var(--color-text);
}
/* FOOTER & CONTACT */
 .contact-events {
     background-color: var(--color-soft);
     padding: 6rem 10%;
     display: grid;
     grid-template-columns: 1fr 1fr;
     gap: 4rem;
}
 .event-date {
     padding-left: 1rem;
     font-family: var(--font-accent);
     font-size: 0.9rem;
     letter-spacing: 0.1em;
     color: var(--color-accent);
}
 .contact-col {
     display: flex;
     flex-direction: column;
     gap: 1.25rem;
     justify-content: center;
}
 .contact-link-row {
     text-decoration: none;
     color: var(--color-text);
     font-family: var(--font-accent);
     font-size: 0.8rem;
     letter-spacing: 0.1em;
}
 #events-container {
     display: flex;
     flex-direction: column;
     gap: 0.5rem;
     justify-content: center;
}
 footer {
     text-align: center;
     padding: 2rem;
     font-family: var(--font-accent);
     font-size: 0.75rem;
     letter-spacing: 0.3em;
     color: var(--color-accent);
     border-top: 1px solid var(--color-border);
}
 @media (max-width: 1024px) {
     .grid-gallery {
         grid-template-columns: repeat(2, 1fr);
    }
     .grid-featured, .contact-events {
         grid-template-columns: 1fr;
    }
     .modal-container {
         flex-direction: column;
    }
     .modal-info-side {
         border-left: none;
         border-top: 1px solid var(--color-border);
    }
}
 @media (max-width: 926px) {
     .modal-close{
         font-size: 3rem;
         top: 1.5rem;
         right: 2.5rem;
    }
     .nav-icon {
         display: inline-block;
    }   
     .hamburger { 
        display: flex; 
        order: 2;
    }
     #main-nav {
        display: none;
        flex-direction: column;
        position: absolute; 
        top: 100%; 
        left: 0;
        width: 100%; 
        background: white;
        padding: 2rem;
        align-items: flex-start;
        border-bottom: 1px solid var(--color-border);
    }
     #main-nav.active { 
        display: flex; 
    }
     .nav-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        width: 100%;
     }
     .hero img {
        max-width: 60vw;
    }
     #sobre-mi > div {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        max-width: 95% !important; 
    }
     #title {
        font-size: 1.5rem !important; 
        padding: 2rem 1rem 0 1rem !important;
    }
     #subtitle {
        font-size: 0.7rem !important;
        padding: 0 1rem 2rem 1rem !important;
    }
     .about-title {
        aspect-ratio: auto;
        min-height: 520px;
        padding: 0.5rem !important;
        background-position: 50% 60%;
    }
    #mobile-title{
        font-family: var(--font-title);
        display: block;
        padding: 0 1rem;
    }
    .about-inner {
        display:none;
    }
     .about-text {
        padding: 0 1rem;
    }
    .modal-container {
        flex-direction: column;
        overflow-y: auto; 
    }
    
    .modal-image-side {
        flex: none; 
        height: 60vh;
        padding: 2rem;
    }
 
    .modal-image-side img {
        max-width: 100%;
        max-height: 100%; 
        object-fit: contain; 
    }
    
    .modal-info-side {
        flex: none;
        padding: 0.5rem 2rem;
        border-left: none;
        border-top: 1px solid var(--color-border);
    }
    
    /* Reducimos fuentes para que quepan bien en móvil */
    .modal-info-side h2 { font-size: 1.75rem; margin-bottom: 0.25rem; }
    .modal-info-side h3 { font-size: 1.25rem; margin-bottom: 0.25rem; }
    
    .modal-close {
        font-size: 3rem;
        top: 1rem;
        right: 1.5rem;
        padding: 0 0.5rem;
    }
}
 @media (max-width: 400px) {
     .modal-close{
        font-size: 4rem;
        top: 0.65rem;
        right: 1rem;
    }
     nav {
        gap: 1.5rem;
    }
     .nav-links {
         gap: 1rem;
    }
    .hero img {
        max-width: 80vw;
    }
     .about-title {
        aspect-ratio: auto;
        min-height: 350px;
        padding: 0.5rem !important;
    }
    .about-inner{
        display: block;
    }
    #mobile-title{
        font-family: var(--font-title);
        display: none;
        padding: 0 1rem;
    }
    .modal-image-side {
        flex: none; 
        height: 55vh;
        padding: 2rem;
    }

}
