/* Estilos generales */
body {
    background-color: white;
    min-height: 100vh;
}

.apartment-card {
    transition: all 0.3s ease;
}

.apartment-card:hover {
    transform: translateY(-5px);
}

/* Animaciones para el logo */
.logo {
    animation: fadeInDown 0.5s ease-out;
}

/* Animaciones para los mensajes de éxito */
.success-message {
    animation: slideIn 0.5s ease-out;
}

/* Estilos para Carousel vanilla */
[data-carousel] {
    position: relative;
    overflow: hidden;
}

[data-carousel-slide] {
    display: none;
    width: 100%;
    height: 100%;
}

[data-carousel-slide]:first-child {
    display: block;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    color: white;
    background: rgba(0, 0, 0, 0.3);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    line-height: 1;
    padding: 0;
}

.carousel-nav:hover {
    background: rgba(0, 0, 0, 0.5);
}

.carousel-nav[data-carousel-prev] {
    left: 8px;
}

.carousel-nav[data-carousel-next] {
    right: 8px;
}

.carousel-pagination {
    position: absolute;
    bottom: 8px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 6px;
    z-index: 10;
    pointer-events: none;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
    opacity: 0.7;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
    pointer-events: auto;
}

.carousel-dot.active {
    opacity: 1;
    background: #3B82F6;
}

/* Estilos para DatePicker nativo */
.dp-calendar {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
    font-family: inherit;
    user-select: none;
}

.dp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.dp-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: #155e75;
}

.dp-nav {
    background: none;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 1.3rem;
    line-height: 1;
    color: #155e75;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.dp-nav:hover {
    background: #ecfeff;
}

.dp-days-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 4px;
}

.dp-day-label {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    padding: 4px 0;
}

.dp-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.dp-cell {
    text-align: center;
    padding: 6px 2px;
    font-size: 0.85rem;
    border: none;
    background: none;
    border-radius: 6px;
    cursor: default;
}

.dp-day {
    cursor: pointer;
    color: #1f2937;
    transition: background 0.15s;
}

.dp-day:hover:not(.dp-disabled) {
    background: #ecfeff;
}

.dp-disabled {
    color: #d1d5db;
    cursor: default;
}

.dp-today {
    font-weight: 700;
    color: #0891b2;
}

.dp-start,
.dp-end {
    background: #0891b2 !important;
    color: white !important;
    font-weight: 600;
}

.dp-in-range {
    background: #cffafe;
    color: #155e75;
}

.dp-info {
    margin-top: 8px;
    padding: 8px;
    background: #ecfeff;
    border-radius: 6px;
    font-size: 0.8rem;
    color: #155e75;
    text-align: center;
    font-weight: 500;
}

/* Keyframes */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Estilos para los botones */
button, .btn {
    transition: all 0.3s ease;
}

button:hover, .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Efecto de hover para las tarjetas */
.apartment-card {
    position: relative;
    overflow: hidden;
}

.apartment-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.apartment-card:hover::after {
    opacity: 1;
}


/* Hero Banner */
.hero-banner {
    position: relative;
    background: linear-gradient(135deg, #0ea5e9 0%, #0369a1 100%);
    color: white;
    overflow: hidden;
    padding: 6rem 0;
}

/* Olas animadas */
.waves {
    position: relative;
    width: 100%;
    height: 100%;
    margin-bottom: -7px;
    min-height: 100px;
    max-height: 150px;
}

.waves .parallax > use {
    animation: move-forever 25s cubic-bezier(.55,.5,.45,.5) infinite;
}
.waves .parallax > use:nth-child(1) {
    animation-delay: -2s;
    animation-duration: 7s;
}
.waves .parallax > use:nth-child(2) {
    animation-delay: -3s;
    animation-duration: 10s;
}
.waves .parallax > use:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 13s;
}
.waves .parallax > use:nth-child(4) {
    animation-delay: -5s;
    animation-duration: 20s;
}

@keyframes move-forever {
    0% {
        transform: translate3d(-90px,0,0);
    }
    100% { 
        transform: translate3d(85px,0,0);
    }
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.5;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 1.125rem;
    }
    .waves {
        height: 40px;
        min-height: 40px;
    }
}

/* Estilos para las olas */
.waves {
    position: relative;
    width: 100%;
    height: 15vh;
    margin-bottom: -7px;
    min-height: 100px;
    max-height: 150px;
}

.parallax > use {
    animation: move-forever 25s cubic-bezier(.55,.5,.45,.5) infinite;
}
.parallax > use:nth-child(1) {
    animation-delay: -2s;
    animation-duration: 7s;
}
.parallax > use:nth-child(2) {
    animation-delay: -3s;
    animation-duration: 10s;
}
.parallax > use:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 13s;
}
.parallax > use:nth-child(4) {
    animation-delay: -5s;
    animation-duration: 20s;
}

@keyframes move-forever {
    0% {
        transform: translate3d(-90px,0,0);
    }
    100% { 
        transform: translate3d(85px,0,0);
    }
}

/* Hero banner styles */
.hero-banner {
    position: relative;
    margin-top: 0;
    padding-top: 70px;
    background: linear-gradient(to bottom, rgba(14, 165, 233, 0.90), rgba(56, 189, 248, 0.90)),
                url('../images/banner1.avif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.hero-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, rgb(186, 230, 253), rgba(186, 230, 253, 0));
    pointer-events: none;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff10" fill-opacity="1" d="M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,208C1248,224,1344,192,1392,176L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    opacity: 0.1;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-banner .waves {
    position: relative;
    width: 100%;
    height: 15vh;
    margin-bottom: -7px;
    min-height: 100px;
    max-height: 150px;
}

/* Animaciones del Hero */
@keyframes fade-in-down {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in-up {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in-right {
    0% {
        opacity: 0;
        transform: translateX(20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-in-down {
    animation: fade-in-down 0.7s ease-out forwards;
}

.animate-fade-in-up {
    animation: fade-in-up 0.7s ease-out forwards;
    animation-delay: 0.3s;
    opacity: 0;
}

.animate-fade-in-right {
    animation: fade-in-right 0.7s ease-out forwards;
    animation-delay: 0.5s;
    opacity: 0;
}

/* Hero Banner Mejorado */
.hero-banner {
    position: relative;
    background: linear-gradient(135deg, #0ea5e9 0%, #0369a1 100%);
    color: white;
    overflow: hidden;
    padding: 6rem 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero-subtitle {
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Efectos hover para botones */
.group:hover .group-hover\:translate-x-1 {
    transform: translateX(0.25rem);
}

/* Responsive ajustes */
@media (max-width: 768px) {
    .hero-banner {
        padding-top: 6rem;
        padding-bottom: 4rem;
    }
    
    .hero-title span:first-child {
        font-size: 2.5rem;
    }
    
    .hero-title span:last-child {
        font-size: 2rem;
    }
}

/* Estilos para los iconos y números de contacto */
.contact-icon {
    font-size: 1.5rem;
    color: #3B82F6;
    margin-right: 0.5rem;
    transition: transform 0.3s ease;
}

.contact-number {
    font-weight: 600;
    color: #1E40AF;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.contact-link:hover .contact-icon {
    transform: scale(1.2);
}

.contact-link:hover .contact-number {
    color: #2563EB;
}

/* Estilos específicos para WhatsApp */
.whatsapp-icon {
    color: #25D366;
}

.whatsapp-link:hover .whatsapp-icon {
    transform: scale(1.2);
}

/* Scroll suave */
html {
    scroll-behavior: smooth;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .waves {
        height: 40px;
        min-height: 40px;
    }
    
    .hero-banner {
        padding: 4rem 0;
    }
}

#mobile-menu:not(.hidden) { display: block; }
