/* ========== ESTILO 701 VALENCIA - ELEGANTE Y MODERNO ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Ysabeau SC', sans-serif;
    background: #ffffff;
    color: #2d2d2d;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 400;
    letter-spacing: -0.02em;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #1a1a1a;
    position: relative;
    font-weight: 300;
    letter-spacing: -0.01em;
}

.section-title::after {
    content: '';
    width: 60px;
    height: 2px;
    background: #c7a742;
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* ========== HEADER CON MENÚ SANDWICH SIEMPRE VISIBLE ========== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.8rem 2rem;
    display: flex;
    justify-content: center;  /* Centra el contenido */
    align-items: center;
    flex-wrap: wrap;
    position: relative;
}

/* Logo centrado */
.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.logo-img {
    width: 220px;
    height: auto;
    object-fit: contain;
}

.logo-text h3 {
    font-size: 1.5rem;
    color: #1a1a1a;
    margin: 0;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.logo-text span {
    font-size: 0.8rem;
    color: #162cf5;
    letter-spacing: 1px;
}

/* Botón hamburguesa - SIEMPRE VISIBLE */
.menu-toggle {
    position: absolute;
    left: 2rem;  /* Posición izquierda */
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #1a1a1a;
    background: transparent;
    border: none;
    z-index: 1001;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    color: #c7a742;
}

/* Menú desplegable (oculto por defecto) */
.nav-menu {
    position: fixed;
    top: 0;
    left: -280px;  /* Oculto a la izquierda */
    width: 280px;
    height: 100vh;
    background: white;
    box-shadow: 2px 0 20px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    list-style: none;
    padding: 80px 2rem 2rem;
    margin: 0;
    gap: 1.5rem;
    transition: left 0.3s ease;
    z-index: 1000;
}

/* Menú activo (visible) */
.nav-menu.active {
    left: 0;
}

/* Overlay oscuro cuando el menú está abierto */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-overlay.active {
    display: block;
    opacity: 1;
}

.nav-menu li a {
    text-decoration: none;
    color: #4a4a4a;
    font-weight: 400;
    transition: color 0.3s;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    display: block;
    padding: 0.5rem 0;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    color: #c7a742;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .logo-img {
        width: 120px;
    }
    
    .logo-text h3 {
        font-size: 1rem;
    }
    
    .logo-text span {
        font-size: 0.65rem;
    }
    
    .menu-toggle {
        left: 1rem;
        width: 35px;
        height: 35px;
        font-size: 1.3rem;
    }
    
    .nav-menu {
        width: 260px;
        left: -260px;
    }
}

@media (max-width: 480px) {
    .logo-img {
        width: 100px;
    }
    
    .logo-text h3 {
        font-size: 0.85rem;
    }
    
    .logo-text span {
        font-size: 0.55rem;
    }
}

/* ========== SECCIONES ========== */
.section {
    padding: 100px 5%;
    scroll-margin-top: 80px;
}

/* Fondo alternado sutil */
.section:nth-child(even) {
    background: #fafafa;
}

.section:nth-child(odd) {
    background: #ffffff;
}

.section:first-child {
    padding: 0;
}

/* Contenedor principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ========== BOTONES ========== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    background: transparent;
    border: 1px solid #c7a742;
    color: #c7a742;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.btn:hover {
    background: #c7a742;
    color: white;
    transform: translateY(-2px);
}

/* ========== DESCRIPTION - 2 COLUMNAS ELEGANTE ========== */
.description-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* Tarjeta de texto */
.description-text-card {
    background: white;
    padding: 0;
}

.description-text-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
    font-weight: 400;
}

.description-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #5a5a5a;
}

.description-text p {
    margin-bottom: 1.2rem;
}

/* Feature highlights */
.feature-highlight {
    display: inline-block;
    background: #f0f0f0;
    padding: 0.3rem 1rem;
    border-radius: 30px;
    font-size: 0.75rem;
    color: #4a4a4a;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Tarjeta de detalles - estilo elegante */
.info-card {
    background: #f8f8f8;
    border-radius: 0;
    padding: 2rem;
    box-shadow: none;
    border: 1px solid #eee;
}

.info-card h3 {
    color: #1a1a1a;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
    letter-spacing: 2px;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.detail-item {
    background: white;
    padding: 1rem;
    border-left: 2px solid #c7a742;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.detail-item strong {
    color: #c7a742;
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.detail-item span {
    color: #2d2d2d;
    font-size: 0.9rem;
}

/* ========== GALERÍA ESTILO PREMIUM ========== */
.gallery-section {
    background: #fafafa;
}

.gallery-container {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-wrapper {
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: thin;
}

.gallery-wrapper::-webkit-scrollbar {
    height: 4px;
}

.gallery-wrapper::-webkit-scrollbar-track {
    background: #e0e0e0;
}

.gallery-wrapper::-webkit-scrollbar-thumb {
    background: #c7a742;
}

.gallery-grid {
    display: grid;
    grid-template-rows: repeat(2, auto);
    grid-auto-flow: column;
    grid-auto-columns: 320px;
    gap: 1.5rem;
    padding: 1rem 0.5rem;
    width: max-content;
}

.gallery-item {
    position: relative;
    width: 320px;
    height: 240px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    padding: 1rem;
    transition: bottom 0.3s ease;
    text-align: center;
    color: white;
}

.gallery-item:hover .gallery-overlay {
    bottom: 0;
}

/* Botones navegación galería */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    color: #1a1a1a;
    border: 1px solid #e0e0e0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 10;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.gallery-nav:hover {
    background: #c7a742;
    color: white;
    border-color: #c7a742;
}

.gallery-nav.prev {
    left: -20px;
}

.gallery-nav.next {
    right: -20px;
}

/* ========== FILTROS ========== */
.gallery-filter {
    text-align: center;
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.filter-btn {
    padding: 0.5rem 1.2rem;
    background: transparent;
    border: 1px solid #ddd;
    color: #4a4a4a;
    cursor: pointer;
    border-radius: 30px;
    transition: all 0.3s;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.filter-btn:hover,
.filter-btn.active {
    background: #c7a742;
    border-color: #c7a742;
    color: white;
}

/* ========== LIGHTBOX ========== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: transform 0.3s ease;
    cursor: zoom-in;
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    transition: all 0.3s;
}

.close-lightbox:hover {
    color: #c7a742;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    transition: all 0.3s;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: #c7a742;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* ========== MAPA ========== */
#map {
    height: 450px;
    width: 100%;
    border-radius: 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

/* ========== AGENT CARD ========== */
.agent-card {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    gap: 3rem;
    background: white;
    border: 1px solid #eee;
    padding: 2rem;
    transition: all 0.3s;
}

.agent-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.agent-image {
    flex: 0 0 100px;
}

.agent-image img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    object-position: center 5%;  /* Ajusta este porcentaje */
    border-radius: 70%;
    border: 2px solid #c7a742;
}

.agent-info {
    flex: 1;
}

.agent-info h3 {
    font-size: 2.2rem;
    margin-bottom: 0.3rem;
    color: #1a1a1a;
}

.agent-info .agency {
    color: #c7a742;
    margin-bottom: 1rem;
    font-size: 1.9rem;
    letter-spacing: 1px;
}

.agent-info p {
    margin: 0.5rem 0;
    color: #5a5a5a;
    font-size: 0.9rem;
}

/* ========== CONTACT FORM ========== */
.contact-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.contact-form {
    background: white;
    padding: 2rem;
    border: 1px solid #eee;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #e0e0e0;
    font-family: inherit;
    transition: all 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #c7a742;
}

.contact-form button {
    width: 100%;
    padding: 1rem;
    background: #1a1a1a;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.contact-form button:hover {
    background: #c7a742;
}

.captcha-group {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin: 1rem 0;
    flex-wrap: wrap;
}

/* El footer se oculta inicialmente */
#main-content.hidden footer {
    display: none;
}

/* Cuando el contenido es visible, el footer se muestra */
#main-content.visible footer {
    display: block;
}

/* Asegurar que el footer tenga buen aspecto */
footer {
    background: #1a1a1a;
    color: #aaa;
    text-align: center;
    padding: 2rem;
    font-size: 0.8rem;
    margin-top: 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-logo img {
    width: 120px;
    height: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-logo img:hover {
    opacity: 1;
}

.footer-info p {
    margin: 0.3rem 0;
}

@media (max-width: 768px) {
    .footer-logo img {
        width: 90px;
    }
}

/* ========== EFECTO PERSIANA ========== */
.hero-section {
    padding: 0;
    height: 100vh;
    position: relative;
    overflow: hidden;
    background: #000;
}

.persiana-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.persiana-grid {
    display: flex;
    width: 100%;
    height: 100%;
    position: relative;
}

.persiana-lama {
    flex: 1;
    height: 100%;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: flex 0.5s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.persiana-lama img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.persiana-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    padding: 15px;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.persiana-lama:hover .persiana-overlay {
    transform: translateY(0);
}

/* Estado expandido */
.persiana-container.expanded .persiana-lama {
    flex: 0 !important;
}

.persiana-container.expanded .persiana-lama.active {
    flex: 10 !important;
}

.persiana-info {
    position: absolute;
    bottom: 30px;
    left: 30px;
    color: white;
    z-index: 50;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
    padding: 12px 24px;
    border-radius: 40px;
    pointer-events: none;
}

.persiana-info h2 {
    font-size: 1.2rem;
    margin: 0;
}

.persiana-info p {
    font-size: 0.8rem;
    margin: 0;
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 768px) {
    .persiana-overlay {
        padding: 8px;
        font-size: 0.7rem;
    }
    .persiana-info {
        bottom: 15px;
        left: 15px;
        padding: 8px 16px;
    }
    .persiana-info h2 {
        font-size: 0.9rem;
    }
}

/* ========== PANTALLA DE BIENVENIDA RESPONSIVE ========== */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    overflow: hidden;
}

.splash-screen video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
}

.splash-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.splash-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
    width: 90%;
    max-width: 500px;
    animation: fadeInUp 1s ease;
}

.splash-logo img {
    width: 180px;
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

.splash-logo h2 {
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.splash-logo p {
    font-size: 0.9rem;
    letter-spacing: 3px;
    opacity: 0.8;
}

/* Contenido principal */
.main-content {
    opacity: 0;
    transition: opacity 1.5s ease;
}

.main-content.visible {
    opacity: 1;
}

.hidden {
    display: none;
}

/* Responsive splash */
@media (max-width: 768px) {
    .splash-logo img {
        width: 70px;
    }
    
    .splash-logo h2 {
        font-size: 1.5rem;
    }
    
    .splash-logo p {
        font-size: 0.7rem;
        letter-spacing: 2px;
    }
}

@media (max-width: 480px) {
    .splash-logo img {
        width: 50px;
    }
    
    .splash-logo h2 {
        font-size: 1.2rem;
    }
    
    .splash-logo p {
        font-size: 0.6rem;
    }
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

body.splash-active {
    overflow: hidden;
}







/* ========== SLIDER CON DESVANECIMIENTO (FADE) ========== */
.hero-section {
    padding: 0;
    height: 100vh;
    position: relative;
    overflow: hidden;
    background: #000;
}

.fade-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.fade-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.2s ease-in-out, visibility 1.2s ease-in-out;
    z-index: 1;
}

.fade-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.fade-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Texto sobre el slider */
.slider-text {
    position: absolute;
    bottom: 15%;
    left: 10%;
    color: white;
    z-index: 10;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.slider-text h1 {
    font-size: 3rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.slider-text p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Botones de navegación */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(5px);
    border: none;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.slider-nav:hover {
    background: #c7a742;
    transform: translateY(-50%) scale(1.05);
}

.slider-nav.prev {
    left: 20px;
}

.slider-nav.next {
    right: 20px;
}

/* DOTS INDICADORES (mejorados) */
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 20;
    background: rgba(0,0,0,0.3);
    padding: 8px 16px;
    border-radius: 40px;
    backdrop-filter: blur(5px);
}

.slider-dot {
    width: 10px;
    height: 10px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: #c7a742;
    transform: scale(1.3);
}

.slider-dot:hover {
    background: white;
    transform: scale(1.2);
}

/* Responsive */
@media (max-width: 768px) {
    .slider-text h1 {
        font-size: 1.8rem;
    }
    .slider-text p {
        font-size: 0.9rem;
    }
    .slider-nav {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    .slider-nav.prev {
        left: 10px;
    }
    .slider-nav.next {
        right: 10px;
    }
    .slider-dots {
        bottom: 20px;
        gap: 8px;
        padding: 6px 12px;
    }
    .slider-dot {
        width: 8px;
        height: 8px;
    }
}







/* ========== FOOTER CON LOGO ========== */
footer {
    background: #1a1a1a;
    color: #aaa;
    text-align: center;
    padding: 2rem;
    font-size: 0.8rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-logo img {
    width: 120px;
    height: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-logo img:hover {
    opacity: 1;
}

.footer-info p {
    margin: 0.3rem 0;
}

/* Responsive */
@media (max-width: 768px) {
    .footer-logo img {
        width: 90px;
    }
}






/* ========== LOGO DEL AGENTE ========== */


.agency-logo {
    text-align: center;
}

.agency-logo img {
    width: 120px;
    height: auto;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.agency-logo img:hover {
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .agent-image {
        flex-direction: column;
    }
    
    .agency-logo img {
        width: 100px;
    }
}



.agency-logo-info {
    text-align: center;
    margin-bottom: 1rem;
}

.agency-logo-info img {
    width: 150px;
    height: auto;
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .agency-logo-info img {
        width: 120px;
    }
}