/**
 * Estilos específicos para la página de inicio (front-page.php)
 * Extraídos del HTML inline para mejorar el rendimiento
 */

/* =========================================
   HERO CTA GROUP
   ========================================= */
.home-organic .hero-cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .home-organic .hero-cta-group {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }

    .home-organic .hero-cta-group .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* =========================================
   PROPUESTA GRID (Por Qué Elegirnos)
   ========================================= */
.propuesta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.propuesta-card {
    background: white;
    padding: 2.5rem 1.5rem;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.propuesta-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: var(--color-accent);
}

.propuesta-icon {
    width: 70px;
    height: 70px;
    background: #f8fafc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.2rem;
    color: var(--color-accent);
}

.propuesta-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    font-family: var(--font-heading);
    color: var(--color-wood);
    width: 100%;
    font-weight: 400;
}

.propuesta-card p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #64748b;
    margin: 0;
}

@media (max-width: 900px) {
    .propuesta-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .propuesta-grid { grid-template-columns: 1fr; }
}

/* =========================================
   PROCESS GRID (Tu Proyecto en 6 Pasos)
   ========================================= */
.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.step-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    position: relative;
    transition: transform 0.3s ease, background 0.3s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.step-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-accent);
}

.step-number-bg {
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 5rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.05);
    font-family: var(--font-heading);
    line-height: 1;
    z-index: 0;
}

.step-icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-accent) 0%, #ff8f00 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 20px rgba(255, 107, 0, 0.3);
    position: relative;
    z-index: 1;
    color: white;
}

.step-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: white;
    position: relative;
    z-index: 1;
    font-family: var(--font-heading);
}

.step-card p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin: 0;
    position: relative;
    z-index: 1;
}

@media (min-width: 992px) {
    .step-card::after {
        content: '→';
        position: absolute;
        right: -20px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 2rem;
        color: rgba(255,255,255,0.1);
        z-index: 2;
    }
    .step-card:nth-child(3)::after,
    .step-card:nth-child(6)::after {
        content: none;
    }
}

@media (max-width: 900px) {
    .process-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .process-grid { grid-template-columns: 1fr; }
}

/* =========================================
   PRODUCTS SECTION (Nuestras Líneas)
   ========================================= */
.products-section .product-image {
    height: 250px;
    border-radius: 12px 12px 0 0;
    position: relative;
    background-color: #f8fafc;
    overflow: hidden;
    display: block;
}

.products-section .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.products-section .product-card:hover .product-image img {
    transform: scale(1.05);
}

.products-section .product-info {
    padding: 1.5rem;
    background: white;
    border-radius: 0 0 12px 12px;
}

.products-section .product-info h3 {
    font-size: 1.3rem;
    color: var(--color-wood);
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.products-section .product-info p {
    color: #64748b;
    font-size: 0.95rem;
    margin: 0;
}

.products-section .product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.products-section .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: var(--color-accent);
}

.products-section .product-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

/* =========================================
   FAQ SECTION (Preguntas Frecuentes)
   ========================================= */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.faq-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.03);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.08);
    border-color: var(--color-accent);
}

details.modern-faq {
    width: 100%;
}

summary.faq-trigger {
    padding: 1.5rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-family: var(--font-heading);
    color: var(--color-wood);
    font-size: 1.1rem;
    transition: color 0.2s;
}

summary.faq-trigger::-webkit-details-marker {
    display: none;
}

summary.faq-trigger:hover {
    color: var(--color-accent);
}

.faq-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f1f5f9;
    color: var(--color-primary);
    font-weight: bold;
    font-family: monospace;
    font-size: 1.2rem;
    transition: transform 0.3s ease, background 0.3s;
    flex-shrink: 0;
    margin-left: 1rem;
}

details[open] .faq-icon {
    transform: rotate(45deg);
    background: var(--color-accent);
    color: white;
}

details[open] summary.faq-trigger {
    border-bottom: 1px solid #f1f5f9;
}

.faq-content {
    padding: 1.5rem;
    padding-top: 0;
    color: #64748b;
    line-height: 1.6;
    font-size: 1rem;
    animation: slideDown 0.3s ease-out;
}

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

@media (max-width: 768px) {
    .faq-grid { grid-template-columns: 1fr; }
}
