/* Paleta de colores Salinas Materiales */
:root {
    --verde-olivo: #4F5D46;
    --verde-profundo: #344238;
    --terracota: #C86B3C;
    --arena: #D8C3A5;
    --beige-claro: #F4EFE7;
    --gris-cemento: #8A8D88;
    --gris-oscuro: #343735;
    --blanco: #FFFFFF;
    --azul-oscuro: #1a2a3a; /* Para la barra superior */
}

/* Tipografía */
body {
    font-family: 'Open Sans', sans-serif;
    color: var(--gris-oscuro);
    background-color: var(--beige-claro);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--verde-profundo);
}

/* Barra Superior */
.top-bar {
    background-color: var(--azul-oscuro);
    color: var(--blanco);
    padding: 5px 0;
    font-size: 0.9rem;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar i {
    color: var(--terracota);
    margin-right: 5px;
}

/* Header */
header {
    background-color: var(--verde-olivo);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 60px;
}

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

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: var(--blanco);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--terracota);
}

.btn-header {
    background-color: var(--terracota);
    color: var(--blanco);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.3s;
}

.btn-header:hover {
    background-color: var(--verde-profundo);
}

/* Hero Section */
.hero {
    background-size: cover;
    background-position: center;
    height: 500px;
    display: flex;
    align-items: center;
    color: var(--blanco);
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    max-width: 700px;
    padding: 20px;
}

.hero h1 {
    color: var(--blanco);
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero .btn-group {
    margin-top: 30px;
}

.btn-primary {
    background-color: var(--terracota);
    color: var(--blanco);
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    margin-right: 15px;
}

.btn-secondary {
    background-color: var(--verde-olivo);
    color: var(--blanco);
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
}

/* Sections */
section {
    padding: 80px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--terracota);
}

/* Cards */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.card {
    background-color: var(--blanco);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

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

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

.card-content {
    padding: 20px;
}

.card-content h3 {
    margin-top: 0;
    font-size: 1.2rem;
}

.card-content p {
    font-size: 0.9rem;
    color: var(--gris-cemento);
}

.btn-link {
    color: var(--terracota);
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    margin-top: 15px;
}

/* Footer */
footer {
    background-color: var(--verde-olivo);
    color: var(--blanco);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

footer h4 {
    color: var(--blanco);
    margin-bottom: 20px;
}

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

footer ul li {
    margin-bottom: 10px;
}

footer ul li a {
    color: var(--arena);
    text-decoration: none;
    transition: color 0.3s;
}

footer ul li a:hover {
    color: var(--blanco);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 768px) {
    .top-bar .container {
        flex-direction: column;
        text-align: center;
    }
    header .container {
        flex-direction: column;
    }
    nav ul {
        margin: 20px 0;
    }
    .hero h1 {
        font-size: 2rem;
    }
}
