/* Reset y base */
:root {
    --primary-color: #ff0000;
    --dark-bg: #222;
    --darker-bg: #333;
    --light-text: #fff;
    --light-text-muted: rgba(255, 255, 255, 0.8);
    --light-text-dimmed: rgba(255, 255, 255, 0.6);
    --border-light: rgba(255, 255, 255, 0.1);
    --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 5px 15px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s ease;
    --header-height: 65px;
    --border-radius: 5px;
    --container-width: 1400px;
    --container-padding: 0 clamp(15px, 5%, 30px);
    --text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #fff;
    color: #222;
    overflow-x: hidden;
    margin-top: var(--header-height); /* Espacio para el header fijo */
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

ul, ol {
    list-style: none;
}

.container {
    width: 95%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: var(--container-padding);
}

/* ========== HEADER ========== */
header {
    background-color: var(--dark-bg);
    color: var(--light-text);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.4s ease-in-out;
    /* Aumentamos la altura del header */
    --header-height: 70px;
}

header.hide {
    transform: translateY(-100%);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 95%;
    max-width: var(--container-width);
    margin: 0 auto;
    height: 100%;
}

span {
    color:#ff0000
}

.logo a {
    color: var(--light-text);
    font-weight: 700;
    font-size: clamp(1.1rem, 3vw, 1.2rem);
    display: flex;
    align-items: center;
}

.logo a span {
    color: var(--primary-color);
}

.logo a:hover {
    color: var(--primary-color);
}

.menu-items {
    display: flex;
    gap: clamp(10px, 2vw, 15px);
    height: 100%;
    align-items: center;
}

.menu-items li {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.menu-items a {
    color: var(--light-text);
    font-weight: 600;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    height: 100%;
    position: relative;
    /* Ajuste para tamaño uniforme de botones */
    min-width: 130px;
    justify-content: center;
    text-align: center;
}

/* Estilo específico para el botón de alquiler */
.menu-items li:nth-child(2) a {
    flex-direction: column;
    line-height: 1.2;
    padding: 5px 15px;
}

.menu-items a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    transition: width 0.3s ease, left 0.3s ease;
}

.menu-items a:hover {
    color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.05);
}

.menu-items a:hover::after {
    width: 100%;
    left: 0;
}

/* Dropdown */
.dropdown-menu {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 100%;
    left: -65%;
    background-color: var(--dark-bg);
    min-width: 300px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.dropdown:hover .dropdown-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-menu li {
    width: 100%;
    height: auto;
}

/* Estilos corregidos para el dropdown */
.dropdown-menu li a {
    padding: 10px 30px; /* Padding más equilibrado */
    border-radius: 0;
    width: 100%;
    min-height: 60px; /* Cambiado a min-height en lugar de height fijo */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.4; /* Mejor espaciado entre líneas */
    transition: background-color 0.2s ease;
}

.dropdown-menu li a::after {
    display: none;
}

.dropdown-menu li:first-child a {
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.dropdown-menu li:last-child a {
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.dropdown-menu li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Hamburguesa */
.hamburger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 10px;
    z-index: 1010;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--light-text);
    transition: 0.4s;
    border-radius: 3px;
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: 635px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    margin-top: calc(-1 * var(--header-height)); /* Compensa el espacio del header */
    padding-top: var(--header-height);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1150px;
    padding: 0 clamp(20px, 5%, 40px);
    color: var(--light-text);
    text-align: center;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: clamp(15px, 3vh, 20px);
    text-shadow: var(--text-shadow);
    line-height: 1.2;
}

.hero-content h1 span {
    color: var(--primary-color);
}

.hero-content p {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    text-shadow: var(--text-shadow);
    line-height: 1.5;
    max-width: 800px;
    margin: 0 auto;
}

.imagen {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

/* ========== FOOTER ========== */
.footer {
    background-color: var(--dark-bg);
    color: var(--light-text);
    padding: clamp(40px, 6vw, 60px) clamp(15px, 3vw, 20px) clamp(15px, 3vw, 20px);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: clamp(25px, 4vw, 40px);
    margin-bottom: clamp(30px, 5vh, 40px);
}

.footer-logo a {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    color: var(--light-text);
    display: inline-block;
    margin-bottom: 15px;
}

.footer-logo a span {
    color: var(--primary-color);
}

.footer-logo a:hover {
    color: var(--primary-color);
}

.footer-logo p {
    opacity: 0.8;
    line-height: 1.6;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.social-links a:hover::before {
    opacity: 1;
}

.social-links a.facebook { background-color: #1877F2; color: var(--light-text); }
.social-links a.instagram {
    background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
    color: var(--light-text);
}
.social-links a.whatsapp { background-color: #25D366; color: var(--light-text); }

.social-links a:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: var(--shadow-lg);
}

/* Footer Sections */
.footer-links h3,
.footer-contact h3 {
    font-size: clamp(1.1rem, 3vw, 1.3rem);
    margin-bottom: clamp(15px, 3vh, 20px);
    position: relative;
    padding-bottom: 10px;
    color: var(--light-text);
}

.footer-links h3::after,
.footer-contact h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.footer-links:hover h3::after,
.footer-contact:hover h3::after {
    width: 70px;
}

.footer-links li,
.footer-contact li {
    margin-bottom: clamp(8px, 1.5vh, 10px);
    transition: transform 0.3s ease;
}

.footer-links li:hover,
.footer-contact li:hover {
    transform: translateX(5px);
}

.footer-links a,
.footer-contact a {
    color: var(--light-text-muted);
    display: inline-block;
    position: relative;
    padding: 2px 0;
}

.footer-links a::after,
.footer-contact a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--primary-color);
}

.footer-links a:hover::after,
.footer-contact a:hover::after {
    width: 100%;
}

.footer-contact i {
    margin-right: 10px;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.footer-contact li:hover i {
    transform: scale(1.2);
}

/* Footer inferior */
.footer-bottom {
    border-top: 1px solid var(--border-light);
    padding: clamp(15px, 2vh, 20px) 0;
    text-align: center;
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    color: var(--light-text-dimmed);
}

.legal-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: clamp(10px, 2vw, 15px);
    margin-top: clamp(8px, 1.5vh, 10px);
}

.legal-links a {
    color: var(--light-text-dimmed);
    position: relative;
    padding: 2px 4px;
}

.legal-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.legal-links a:hover {
    color: var(--primary-color);
}

.legal-links a:hover::after {
    width: 100%;
}

/* Fade-in Animation */
.fade-in {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive styles */
@media (max-width: 992px) {
    .hamburger-menu {
        display: flex;
    }

    .menu-items {
        display: none;
        flex-direction: column;
        background-color: var(--dark-bg);
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        z-index: 999;
        padding: 10px 0;
        box-shadow: var(--shadow-md);
        align-items: center; /* Centrar todos los elementos del menú */
        height: auto;
        max-height: calc(100vh - var(--header-height));
        overflow-y: auto;
    }

    .menu-items.active {
        display: flex;
    }

    .menu-items li {
        width: 100%;
        height: auto;
        text-align: center; /* Centrar el texto */
    }

    .menu-items a {
        padding: 15px 20px;
        width: 100%;
        justify-content: center; /* Centrar el contenido del enlace */
        height: auto;
        text-align: center; /* Asegurar que el texto esté centrado */
    }
    
    .menu-items a::after {
        display: none;
    }

    .dropdown-menu {
        position: static;
        visibility: visible;
        opacity: 1;
        /* Eliminar display: none para que siempre esté visible */
        background-color: var(--darker-bg);
        border-radius: 0;
        box-shadow: none;
        transform: none;
        padding-left: 15px;
        display: block; /* Mantener siempre visible */
    }

    /* Eliminar esta regla para que el menú desplegable siempre esté visible */
    /* 
    .dropdown.active .dropdown-menu {
        display: block;
    }
    */

    .dropdown > a {
        display: flex;
        justify-content: center; /* Centrar el contenido */
        align-items: center;
    }

    .dropdown > a::after {
        content: "▼";
        font-size: 0.7rem;
        margin-left: 10px;
        transform: rotate(180deg); /* Girar para indicar que está abierto */
        transition: transform 0.3s ease;
        position: static;
        width: auto;
        height: auto;
        background-color: transparent;
    }

    /* Eliminar estas reglas ya que queremos que el menú siempre esté abierto */
    /*
    .dropdown.active > a::after {
        transform: rotate(180deg);
    }

    .dropdown:hover .dropdown-menu {
        display: none;
    }

    .dropdown.active:hover .dropdown-menu {
        display: block;
    }
    */
    
    .dropdown-menu li:first-child a,
    .dropdown-menu li:last-child a {
        border-radius: 0;
    }

    .dropdown-menu li {
        text-align: center; /* Centrar el texto en los elementos del menú desplegable */
    }

    .dropdown-menu a {
        justify-content: center; /* Centrar el contenido de los enlaces del menú desplegable */
        text-align: center; /* Asegurar que el texto esté centrado */
    }

    .bar.active:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .bar.active:nth-child(2) {
        opacity: 0;
    }
    
    .bar.active:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}

@media (max-width: 768px) {
    .hero {
        height: clamp(350px, 70vh, 550px);
    }
    
    .hero-content h1 {
        font-size: clamp(1.8rem, 5vw, 2.5rem);
    }
    
    .hero-content p {
        font-size: clamp(1rem, 3vw, 1.3rem);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-logo,
    .footer-links,
    .footer-contact {
        text-align: center;
    }

    .footer-links h3::after,
    .footer-contact h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-links:hover h3::after,
    .footer-contact:hover h3::after {
        width: 70px;
    }

    .social-links {
        justify-content: center;
    }
    
    .footer-links li:hover,
    .footer-contact li:hover {
        transform: translateX(0) translateY(-3px);
    }

    .legal-links {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    :root {
        --header-height: 60px;
    }
    
    .hero-content h1 {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }
    
    .hero-content p {
        font-size: clamp(0.9rem, 4vw, 1.1rem);
    }
    
    .footer {
        padding: 30px 15px 15px;
    }
}

/* Print styles */
@media print {
    header {
        position: static;
        box-shadow: none;
    }
    
    body {
        margin-top: 0;
    }
    
    .hamburger-menu,
    .social-links,
    .footer {
        display: none;
    }
    
    .hero {
        height: auto;
        margin-top: 0;
        padding-top: 20px;
    }
    
    .hero-content {
        color: #000;
        text-shadow: none;
    }
    
    .hero-content h1 span {
        color: #000;
        font-weight: bold;
    }
}

/* Estilos para el botón de búsqueda */
.search-container {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: auto;
    margin-right: 15px;
}

.search-icon {
    color: var(--light-text);
    font-size: 18px;
    cursor: pointer;
    padding: 10px;
    transition: var(--transition);
}

.search-icon:hover {
    color: var(--primary-color);
}

.search-form {
    position: absolute;
    right: 0;
    top: 100%;
    background-color: var(--dark-bg);
    padding: 15px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    display: none;
    z-index: 1001;
    width: 280px;
}

.search-form.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.search-form form {
    display: flex;
    align-items: center;
}

.search-form input {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-size: 14px;
    outline: none;
}

.search-form button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    padding: 10px 15px;
    cursor: pointer;
    transition: var(--transition);
}

.search-form button:hover {
    background-color: #cc0000;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Media queries para el buscador */
@media (max-width: 992px) {
    .search-container {
        margin-right: 50px;
    }
    
    .search-form {
        width: 250px;
    }
}

@media (max-width: 480px) {
    .search-container {
        margin-right: 40px;
    }
    
    .search-form {
        width: 200px;
        right: -40px;
    }
}



