/* ========================================
   KEYMEX - Estilos Específicos Index
   ======================================== */

/* Red Section */
.red-section {
    background: linear-gradient(135deg, #ad1d28 0%, #8b1720 100%);
    color: white;
    padding: 80px 50px;
    display: flex;
    gap: 60px;
    align-items: center;
}

.red-section-left {
    flex: 1;
    text-align: center;
}

.red-section-logo {
    width: 200px;
    height: auto;
    margin: 0 auto 30px;
    display: block;
    animation: float 3s ease-in-out infinite;
}

.pin-icon {
    background: white;
    width: 180px;
    height: 180px;
    margin: 0 auto 30px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: float 3s ease-in-out infinite;
}

.pin-icon-content {
    transform: rotate(45deg);
    text-align: center;
}

.pin-icon-content .logo {
    color: #c9302c;
    font-weight: 700;
    font-size: 24px;
}

.pin-icon-content .subtitle {
    font-size: 9px;
    color: #c9302c;
    letter-spacing: 1px;
}

.red-section-right {
    flex: 1.5;
}

.red-section-right h2 {
    font-family: "chantal", sans-serif;
    font-weight: 500;
    font-style: normal;
    font-size: 32px;
    margin-bottom: 30px;
    line-height: 1.2;
    text-align: center;
}

.red-section-right p {
    margin-bottom: 20px;
    line-height: 1.8;
    font-size: 15px;
    padding-right: 100px;
    text-align: justify;
}

.red-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.red-btn {
    padding: 12px 30px;
    border: 2px solid white;
    background: transparent;
    color: white;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.red-btn:hover {
    background: white;
    color: #c9302c;
    transform: translateY(-3px);
}

/* Features Section */
.features {
    padding: 80px 50px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
    max-width: 1400px;
    margin: 0 auto;
}

.feature h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-transform: uppercase;
    line-height: 1.4;
}

.feature p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
}

/* Cards Section */
.cards-section {
    padding: 50px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.card h3 {
    font-size: 32px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.2;
    margin: 0;
}

.card p {
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.card-body p + p {
    margin-top: 8px;
}

.card-button {
    background: #000;
    color: #fff;
    padding: 12px 30px;
    border-radius: 25px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    align-self: flex-start;
    text-transform: uppercase;
    font-size: 12px;
    transition: all 0.3s ease;
}

.card-button:hover {
    background: #222;
    transform: scale(1.05);
}

/* News Section */
.news-section {
    padding: 80px 50px;
    background: #f8f8f8;
}

.news-section h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-weight: 700;
}

.news-section h3 {
    text-align: left;
    font-size: 1.8rem;
    margin-bottom: 50px;
    font-weight: 900;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.news-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover img {
    transform: scale(1.1);
}

.news-content {
    padding: 25px;
}

.news-date {
    font-size: 11px;
    color: #999;
    margin-bottom: 10px;
}

.news-title {
    font-size: 16px;
    font-weight: 700;
    color: #c9302c;
    margin-bottom: 15px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.news-card:hover .news-title {
    color: #a82824;
}

.news-text {
    font-size: 13px;
    line-height: 1.6;
    color: #666;
}

.footer-text {
    font-size: 11px;
    line-height: 1.8;
    color: #666;
    max-width: 900px;
    margin: 30px auto;
}

.copyright {
    font-size: 11px;
    color: #999;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.input-error {
    border: 2px solid red;
    outline: none;
}

@media (max-width: 768px) {
    .features {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 30px 15px;
    }
    
    .feature {
        padding: 20px;
    }
    
    .cards-section {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 30px 15px;
    }
    
    .red-section {
        flex-direction: column;
        padding: 30px 20px;
    }
    
    .red-section-left,
    .red-section-right {
        width: 100%;
    }

    .red-section-right {
        text-align: center;
    }

    .red-section-right p {
        padding-right: 0;
        text-align: center;
    }

    .red-buttons {
        justify-content: center;
    }
    
    /* Cards más compactos */
    .card,
    .news-card {
        padding: 20px;
    }
    
    .card h3,
    .news-card h3 {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .feature h3 {
        font-size: 16px;
    }
    
    .card h3,
    .news-card h3 {
        font-size: 16px;
    }
}
