* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

header {
    background: linear-gradient(to right, #2e7d32, #4caf50);
    color: white;
    text-align: center;
    padding: 3rem 1rem;
}

.header-content h1 {
    font-family: 'Roboto', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

header p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

main {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 1rem;
}

h2 {
    color: #2e7d32;
    margin: 2rem 0 1rem;
    font-family: 'Roboto', sans-serif;
}

.intro,
.sensores,
.implementacion,
.recursos,
.cta {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

ul,
ol {
    padding-left: 1.5rem;
    margin: 1rem 0;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.card {
    background: #f1f8e9;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 5px solid #4caf50;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 1rem;
}

blockquote {
    background: #e8f5e9;
    padding: 1rem;
    border-left: 5px solid #66bb6a;
    margin: 1.5rem 0;
    font-style: italic;
}

button {
    background: #4caf50;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 1.1rem;
    border-radius: 8px;
    cursor: pointer;
    margin: 1rem 0;
}

button:hover {
    background: #388e3c;
}

footer {
    text-align: center;
    padding: 1.5rem;
    background: #2e7d32;
    color: white;
    margin-top: 3rem;
}

/* Responsivo */
@media (max-width: 768px) {
    .header-content h1 {
        font-size: 2rem;
    }

    main {
        padding: 0 0.8rem;
    }
}

/* Base styles para enlaces de tarjetas index */
.idea-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}