* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: rgb(55, 200, 204);
    --color-secondary: rgb(248, 55, 93);
    --color-accent: rgb(208, 223, 87);
    --color-light: rgb(235, 242, 243);
    --color-white: #FFFFFF;
    --color-dark: rgb(7, 42, 77);
    --color-text: rgb(138, 139, 145);
    --color-text-dark: rgb(33, 55, 77);
    --color-footer: rgb(58, 68, 77);
}

body {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: #f5f5f5;
}

a {
    color: #03a9f4;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-primary);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Muli', sans-serif;
    color: var(--color-text-dark);
    margin-bottom: 16px;
}

h1 {
    font-weight: 300;
    font-size: 2.5em;
    line-height: 1.26;
}

h2 {
    font-weight: 300;
    font-size: 2em;
    line-height: 1.143;
    letter-spacing: -2px;
}

h3 {
    font-weight: 300;
    font-size: 1.4em;
    line-height: 1.25;
}

h4 {
    font-weight: 600;
    font-size: 1.2em;
    line-height: 1.6;
}

p {
    margin-bottom: 16px;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

.col {
    flex: 1;
    padding: 15px;
}

.col-12 { flex: 0 0 100%; }
.col-6 { flex: 0 0 50%; }
.col-4 { flex: 0 0 33.333%; }
.col-3 { flex: 0 0 25%; }

/* Estilos del nuevo encabezado */
header {
    background-color: #51393C;
    padding: 20px;
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navigation {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.logo-container {
    width: 30%;
    display: flex;
    align-items: center;
}

.logo {
    width: 180px;
    height: 180px;
    display: block;
}

.header-content {
    width: 70%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header-title {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    margin: 0 auto;
    position: relative;
}

.menu-toggle span {
    height: 3px;
    width: 100%;
    background-color: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.main-nav {
    width: 100%;
    display: flex;
    justify-content: flex-end;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #ff6b6b;
}

/* Estilos para submenús */
.has-submenu {
    position: relative;
}

.submenu {
    display: none;
    background-color: #51393C;
    position: absolute;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 10;
    padding: 10px 0;
}

.submenu li {
    width: 100%;
}

.submenu .nav-link {
    padding: 10px 20px;
}

.has-submenu:hover .submenu {
    display: block;
}

/* Añadir espacio para el header fijo */
body {
    padding-top: 220px;
}

/* Hero Section */
.hero {
    background: var(--color-footer);
    color: var(--color-white);
    padding: 150px 0 80px;
    text-align: center;
    margin-top: -220px;
    padding-top: 370px;
}

.hero h1, .hero h2 {
    color: var(--color-white);
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.hero .subtitle {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 2.2em;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

/* Main Content */
.main-content {
    padding: 80px 0;
}

.post-card {
    background: var(--color-white);
    border-radius: 5px;
    box-shadow: 0 10px 40px rgba(1, 51, 74, 0.15);
    overflow: hidden;
    margin-bottom: 40px;
}

.post-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.post-content {
    padding: 40px;
}

.post-meta {
    font-size: 14px;
    color: var(--color-text);
    margin-bottom: 20px;
}

.post-meta a {
    color: #03a9f4;
}

.post-text {
    color: var(--color-text-dark);
}

.post-text p {
    color: var(--color-footer);
}

.categories, .tags {
    margin: 20px 0;
    padding: 20px 0;
    border-top: 1px solid #eee;
}

.categories span, .tags span {
    font-size: 14px;
    color: var(--color-text);
    margin-right: 10px;
}

.category-link, .tag-link {
    display: inline-block;
    margin: 2px 5px;
    color: var(--color-text);
    font-size: 14px;
}

.category-link:hover, .tag-link:hover {
    color: var(--color-dark);
}

/* CTA Section */
.cta-section {
    background: rgba(58, 68, 77, 0.06);
    padding: 40px 0;
    text-align: center;
}

.cta-title {
    font-family: 'Lustria', serif;
    font-size: 2.25em;
    line-height: 1;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

.cta-price {
    font-size: 25px;
    color: var(--color-dark);
    margin-bottom: 30px;
}

.cta-button {
    display: inline-block;
    background: var(--color-secondary);
    color: var(--color-white);
    padding: 18px 30px;
    border-radius: 5px;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 20px;
    border: 2px solid var(--color-primary);
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

/* Gallery Section */
.gallery-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Post Navigation */
.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.nav-previous, .nav-next {
    flex: 1;
    max-width: 48%;
}

.nav-next {
    text-align: right;
}

.post-navigation a {
    display: block;
    color: var(--color-text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-navigation a:hover {
    color: var(--color-primary);
}

.meta-nav {
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--color-text);
    display: block;
    margin-bottom: 5px;
}

.post-title {
    font-size: 14px;
    line-height: 1.4;
}

/* Estilos del Footer Mejorado */
.footer-navigation {
    background-color: #000;
    color: white;
    padding: 40px 0;
}

.footer-navigation .container > div {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.footer-navigation h3 {
    margin-bottom: 20px;
    color: white;
    font-size: 1.3rem;
}

.footer-navigation ul {
    list-style: none;
    padding: 0;
}

.footer-navigation li {
    margin-bottom: 10px;
}

.footer-navigation a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.footer-navigation a:hover {
    color: #4fbfba;
}

.footer-navigation i {
    margin-right: 10px;
    color: #4fbfba;
}

/* Footer Principal */
.footer {
    background: #333;
    color: white;
    padding: 40px 0;
    text-align: center;
}

.social-icons {
    margin-bottom: 20px;
}

.social-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: #ff6b6b;
    border-radius: 50%;
    margin: 0 10px;
    color: white;
    line-height: 40px;
    font-size: 1.2rem;
    text-decoration: none;
}

.social-icon:hover {
    background-color: #ff5252;
}

.footer-links {
    margin-bottom: 20px;
}

.footer-link {
    color: white;
    margin: 0 15px;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-link:hover {
    color: #ff6b6b;
}

.footer-bottom {
    background: #1f1f1f;
    padding: 40px 0;
    text-align: center;
}

.footer-bottom p {
    color: #999;
    font-size: 14px;
}

.footer-bottom a {
    color: var(--color-primary);
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--color-primary);
    color: var(--color-white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--color-dark);
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #128C7E;
}

/* Mobile Styles */
@media screen and (max-width: 992px) {
    .logo-container {
        width: 100%;
        justify-content: center;
        margin-bottom: 10px;
    }
    
    .header-content {
        width: 100%;
    }
    
    .nav-menu {
        position: fixed;
        top: 220px;
        left: -100%;
        flex-direction: column;
        background-color: #51393C;
        width: 100%;
        height: calc(100vh - 220px);
        overflow-y: auto;
        transition: 0.3s;
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        padding: 15px 20px;
        font-size: 18px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .menu-toggle {
        display: flex;
        margin-top: 10px;
        margin-bottom: 10px;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    .submenu {
        position: static;
        display: none;
        box-shadow: none;
        background-color: #433033;
        padding: 0;
    }
    
    .has-submenu {
        position: relative;
    }
    
    .submenu-toggle {
        position: absolute;
        right: 20px;
        top: 15px;
        color: white;
        font-size: 18px;
        cursor: pointer;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        justify-content: center;
        width: 30px;
    }
    
    .submenu .nav-link {
        padding-left: 40px;
    }
    
    .has-submenu.active .submenu {
        display: block;
    }
    
    .logo {
        width: 140px;
        height: 140px;
    }

    body {
        padding-top: 160px;
    }

    .hero {
        margin-top: -160px;
        padding-top: 310px;
    }

    .footer-navigation .container > div {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media screen and (max-width: 576px) {
    .logo {
        width: 100px;
        height: 100px;
    }
    
    .nav-menu {
        top: 140px;
        height: calc(100vh - 140px);
    }

    body {
        padding-top: 140px;
    }

    .hero {
        margin-top: -140px;
        padding-top: 290px;
    }

    .col-3, .col-4, .col-6 {
        flex: 0 0 100%;
    }

    .post-content {
        padding: 20px;
    }

    .post-navigation {
        flex-direction: column;
        gap: 20px;
    }

    .nav-previous, .nav-next {
        max-width: 100%;
        text-align: left;
    }

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

    .footer-navigation .container > div {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mb-20 { margin-bottom: 20px; }
.hidden { display: none; }

/* Lightbox modal (galería) */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
}

/* Reserva de espacio para evitar Cumulative Layout Shift */
.post-image, .gallery-item img {
    aspect-ratio: 16 / 9;
}
