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

body {
    font-family: 'Poppins', Arial, sans-serif;
    background-color: #f5f0eb;
    color: #333;
    min-height: 100vh;
}

/* ========== HEADER ========== */
header {
    background: #F5F0EB;
    color: #4B2D2B;
    padding: 20px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-bottom: 3px solid #2E7D32;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-left img {
    height: 60px;
}

.header-title h1 {
    font-size: 22px;
    font-weight: 700;
    color: #4B2D2B;
}

.header-title p {
    font-size: 13px;
    color: #2E7D32;
    font-weight: 600;
}

.header-right {
    font-size: 13px;
    color: #4B2D2B;
    text-align: right;
}

/* ========== BANNER ========== */
.banner {
    background: linear-gradient(135deg, #2E7D32, #1B5E20);
    color: white;
    text-align: center;
    padding: 40px 20px;
}

.banner h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.banner p {
    font-size: 15px;
    font-weight: 300;
    opacity: 0.9;
}

/* ========== HERRAMIENTAS GRID ========== */
.tools-section {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: #4A2C2A;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 3px solid #2E7D32;
    display: inline-block;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

/* ========== TARJETA HERRAMIENTA ========== */
.tool-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 4px solid #2E7D32;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.tool-icon {
    font-size: 50px;
    margin-bottom: 15px;
}

.tool-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #4A2C2A;
    margin-bottom: 10px;
}

.tool-card p {
    font-size: 14px;
    color: #777;
    margin-bottom: 20px;
    line-height: 1.5;
}

.tool-btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #2E7D32, #1B5E20);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    transition: background 0.3s, transform 0.2s;
}

.tool-btn:hover {
    background: linear-gradient(135deg, #1B5E20, #0d3d11);
    transform: scale(1.05);
}

/* ========== TARJETA PRÓXIMAMENTE ========== */
.tool-card.coming-soon {
    border-top: 4px solid #ccc;
    opacity: 0.6;
}

.tool-card.coming-soon .tool-btn {
    background: #ccc;
    cursor: not-allowed;
    pointer-events: none;
}

/* ========== FOOTER ========== */
footer {
    background: #4A2C2A;
    color: #d4c5b9;
    text-align: center;
    padding: 20px;
    font-size: 13px;
    margin-top: 50px;
}

footer a {
    color: #81C784;
    text-decoration: none;
}

/* ========== CARRUSEL DE ANUNCIOS ========== */
.anuncios-carrusel {
    max-width: 1100px;
    margin: 30px auto 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.anuncios-contenedor {
    flex: 1;
    position: relative;
    min-height: 80px;
}

.anuncio {
    display: none;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 20px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    animation: fadeIn 0.5s ease-in-out;
}

.anuncio.activo {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.anuncio-icono {
    font-size: 22px;
    flex-shrink: 0;
}

.anuncio-contenido strong {
    display: block;
    margin-bottom: 3px;
}

.anuncio-fecha {
    font-size: 12px;
    opacity: 0.7;
    margin-top: 5px;
}

/* Tipos de anuncio */
.anuncio-info {
    background: #E3F2FD;
    color: #1565C0;
    border-left: 4px solid #1565C0;
}

.anuncio-alerta {
    background: #FFF3CD;
    color: #856404;
    border-left: 4px solid #FFB300;
}

.anuncio-urgente {
    background: #FDEDED;
    color: #B71C1C;
    border-left: 4px solid #D32F2F;
}

.anuncio-exito {
    background: #E8F5E9;
    color: #2E7D32;
    border-left: 4px solid #2E7D32;
}

/* Botones del carrusel */
.carrusel-btn {
    background: #4B2D2B;
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 16px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.3s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carrusel-btn:hover {
    background: #2E7D32;
    transform: scale(1.1);
}

/* Indicadores (puntos) */
.carrusel-indicadores {
    text-align: center;
    margin-top: 12px;
}

.indicador {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #D4C5B9;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.indicador-activo {
    background: #2E7D32;
    transform: scale(1.3);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 600px) {
    header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .header-right {
        text-align: center;
    }

    .banner h2 {
        font-size: 22px;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }
}