/* RESET Y BASE MEJORADO */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: 1.7;
    font-weight: 400;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* TIPOGRATÍA JERÁRQUICA */
h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--color-text), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--color-text);
}

p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

/* NAVBAR MEJORADA */
.navbar {
    background-color: var(--color-primary);
    padding: 1.2rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h2 {
    font-size: 1.8rem;
    margin: 0;
    background: linear-gradient(135deg, var(--color-text), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* SELECTOR DE TEMAS MEJORADO */
.theme-selector {
    display: flex;
    gap: 8px;
    background: var(--color-background);
    padding: 8px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.theme-btn {
    padding: 10px 20px;
    border: 2px solid transparent;
    background: transparent;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
}

.theme-btn.active {
    background-color: var(--color-secondary);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.theme-btn:hover:not(.active) {
    background-color: var(--color-surface);
    transform: translateY(-2px);
}

/* HERO SECTION MEJORADA */
.hero {
    background: var(--gradient-hero);
    padding: 120px 20px;
    text-align: center;
    border-radius: 0 0 40px 40px;
    position: relative;
    overflow: hidden;
}

.hero::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 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: cover;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.hero p {
    font-size: 1.3rem;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

/* BOTONES MEJORADOS */
.btn {
    padding: 15px 35px;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-secondary), var(--color-accent));
    color: white;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--color-secondary);
    color: var(--color-secondary);
    margin-left: 15px;
}

.btn-secondary:hover {
    background: var(--color-secondary);
    color: white;
    transform: translateY(-3px);
}

/* CARDS MEJORADAS */
.card {
    background: var(--color-card-bg, var(--color-background));
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 35px 30px;
    box-shadow: var(--shadow-card);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, var(--color-secondary), var(--color-accent));
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card p {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.8;
}

/* SECCIONES MEJORADAS */
.section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.8rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, var(--color-secondary), var(--color-accent));
    border-radius: 2px;
}

/* GRID MEJORADO */
.grid {
    display: grid;
    gap: 40px;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

/* PREVIEW DE COLORES MEJORADO */
.color-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.color-box {
    height: 100px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1rem;
    text-align: center;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.color-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
}

.color-box:hover {
    transform: scale(1.05);
}

/* EFECTOS DE PROFUNDIDAD */
.shadow-depth {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.shadow-deep {
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

/* RESPONSIVE MEJORADO */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero {
        padding: 80px 20px;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .theme-selector {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .btn-secondary {
        margin-left: 0;
        margin-top: 10px;
    }
    
    .nav-content {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .card {
        padding: 25px 20px;
    }
}
/* ESTILOS PARA HABITACIONES */
.room-carousel {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 20px;
}

.carousel-images {
    position: relative;
    height: 250px;
}

.carousel-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.carousel-img.active {
    opacity: 1;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 10px;
}

.carousel-btn {
    background: rgba(255,255,255,0.8);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: white;
    transform: scale(1.1);
}

.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: white;
    transform: scale(1.2);
}

.room-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-secondary);
    margin: 15px 0;
}

.room-features {
    list-style: none;
    margin: 20px 0;
}

.room-features li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.room-features i {
    color: var(--color-accent);
    width: 20px;
}

.btn-block {
    width: 100%;
    margin-top: 15px;
}

.text-center {
    text-align: center;
}

/* ESTILOS PARA FOOTER */
.footer {
    background: linear-gradient(135deg, var(--color-text), var(--color-secondary));
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
    color: white;
    margin-bottom: 20px;
}

.footer-section p {
    opacity: 0.8;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    padding: 8px 0;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-section ul li:hover {
    opacity: 1;
}

.footer-section ul li i {
    margin-right: 10px;
    color: var(--color-accent);
}

.footer-section a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--color-accent);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--color-accent);
    transform: translateY(-3px);
}

.newsletter-form {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 25px;
    background: rgba(255,255,255,0.1);
    color: white;
}

.newsletter-form input::placeholder {
    color: rgba(255,255,255,0.7);
}

.newsletter-form button {
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    background: var(--color-accent);
    color: var(--color-text);
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background: white;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.7;
}

/* AGREGAMOS DESDE AQUI LO DE TIPOFGRAFIAS */

/* ===== SISTEMA DE TIPOGRAFÍA - AGREGAR AL FINAL ===== */

body {
    font-family: var(--font-primary);
    font-weight: var(--font-normal);
    font-size: var(--text-base);
}

/* JERARQUÍA TIPOGRÁFICA ACTUALIZADA */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: var(--font-bold);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
    font-size: var(--text-base);
    line-height: 1.6;
}

/* CLASES UTILITARIAS DE FUENTE */
.font-primary { font-family: var(--font-primary); }
.font-secondary { font-family: var(--font-secondary); }
.font-accent { font-family: var(--font-accent); }

.text-light { font-weight: var(--font-light); }
.text-normal { font-weight: var(--font-normal); }
.text-medium { font-weight: var(--font-medium); }
.text-semibold { font-weight: var(--font-semibold); }
.text-bold { font-weight: var(--font-bold); }

.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }
.text-3xl { font-size: var(--text-3xl); }
.text-4xl { font-size: var(--text-4xl); }
.text-5xl { font-size: var(--text-5xl); }

.lead { font-size: var(--text-xl); font-weight: var(--font-light); }
.small { font-size: var(--text-sm); opacity: 0.8; }

/* SELECTOR DE FUENTES */
.font-selector {
    margin-left: 15px;
}

.font-select {
    padding: 8px 15px;
    border: 2px solid var(--color-border);
    border-radius: 20px;
    background: var(--color-background);
    color: var(--color-text);
    font-family: var(--font-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.font-select:focus {
    outline: none;
    border-color: var(--color-secondary);
}