/* Reset some default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Typography */
body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Header Styles */
header {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.logo-container {
    text-align: center;
    padding: 20px 0;
}

.logo {
    max-width: 100%;
    height: auto;
    width: 100%;
    max-width: 1300px; /* Original width */
    height: auto;
}

/* Navbar Styles */
.navbar {
    background: rgba(255, 255, 255, 0.9);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 10px 0;
}

.navbar li {
    margin: 0 15px;
}

.navbar a {
    text-decoration: none;
    color: #333;
    font-weight: 700;
    transition: color 0.3s ease;
}

.navbar a:hover {
    color: #007BFF;
}

/* Section Styles */
.section {
    padding: 60px 20px;
    animation: fadeIn 1s ease-in-out;
}

.container {
    max-width: 1200px;
    margin: auto;
}

h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2em;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    width: 50px;
    height: 3px;
    background: #007BFF;
    display: block;
    margin: 10px auto 0;
}

/* Tips List */
.tips-list {
    list-style: disc inside;
    max-width: 600px;
    margin: auto;
    line-height: 2;
}

/* Mattress Types */
.mattress-types {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.mattress {
    flex: 1 1 45%;
    background: #f9f9f9;
    margin: 10px;
    padding: 20px;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mattress:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.mattress h3 {
    margin-bottom: 10px;
    color: #007BFF;
}

/* Footer Styles */
footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .navbar ul {
        flex-direction: column;
    }

    .navbar li {
        margin: 10px 0;
    }

    .mattress {
        flex: 1 1 100%;
    }
}

/* Initial hidden state */
.hidden {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Visible state */
.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Sección de Consejos para Dormir Mejor */
.tips-list {
    list-style: decimal inside;
    max-width: 800px;
    margin: auto;
    line-height: 1.8;
    font-size: 1.1em;
}

.tips-list li {
    margin-bottom: 15px;
}

.tips-list strong {
    color: #007BFF;
}

/* Animaciones para los consejos */
.hidden-tip {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.visible-tip {
    opacity: 1;
    transform: translateX(0);
}
