/* Hero Section Styles */

.hero-section {
    position: relative;
    padding: var(--spacing-xl) 0;
    overflow: hidden;
    width: 100%;
}

/* Background Colors */
.hero-bg-white { background-color: var(--chickin-white); }
.hero-bg-light { background-color: var(--chickin-offwhite); }
.hero-bg-brand { 
    background: linear-gradient(135deg, var(--chickin-orange-web) 0%, #ff8c1a 100%);
    color: white;
}
.hero-bg-brand .hero-title,
.hero-bg-brand .hero-subtitle,
.hero-bg-brand .hero-description {
    color: white;
}

/* Container */
.hero-container {
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
    position: relative;
    z-index: 10;
}

/* Layouts */
.hero-layout-split-right {
    flex-direction: row;
}

.hero-layout-split-left {
    flex-direction: row-reverse;
}

.hero-layout-center {
    flex-direction: column;
    text-align: center;
    justify-content: center;
}

.hero-layout-center .hero-actions {
    justify-content: center;
}

.hero-layout-full-bg {
    min-height: 600px;
    justify-content: center;
    text-align: center;
    color: white;
}

/* Content Typography */
.hero-content {
    flex: 1;
    min-width: 300px;
}

.hero-subtitle {
    display: inline-block;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--chickin-orange);
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    font-weight: 800;
    color: var(--chickin-anthracite);
    margin-bottom: var(--spacing-md);
}

.hero-description {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-lg);
    max-width: 600px;
}

.hero-layout-center .hero-description {
    margin-left: auto;
    margin-right: auto;
}

/* Actions */
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

/* Buttons (Global in style.css) */
/* Context-specific button overrides */
.hero-bg-brand .btn-outline {
    color: white;
    border-color: white;
}

.hero-bg-brand .btn-outline:hover {
    background-color: white;
    color: var(--chickin-orange);
}

/* Image */
.hero-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    max-width: 600px; /* Evitar que la imagen sea excesivamente grande */
}

.hero-image {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    object-fit: cover;
    z-index: 2;
    transform: rotate(2deg);
    transition: transform 0.3s ease;
}

.hero-image:hover {
    transform: rotate(0deg) scale(1.02);
}

.hero-blob {
    position: absolute;
    width: 120%;
    height: 120%;
    background-color: var(--chickin-lilac);
    opacity: 0.3;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    z-index: 1;
    animation: blob-float 10s infinite alternate;
}

@keyframes blob-float {
    0% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; transform: rotate(0deg); }
    100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; transform: rotate(10deg); }
}

/* Full Background Layout Specifics */
.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.hero-layout-full-bg .hero-title,
.hero-layout-full-bg .hero-description,
.hero-layout-full-bg .hero-subtitle {
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Responsive */
@media (max-width: 991px) {
    .hero-container {
        flex-direction: column-reverse; /* Imagen arriba en layout split */
        text-align: center;
        padding-top: var(--spacing-lg);
        padding-bottom: var(--spacing-lg);
    }
    
    .hero-layout-split-left .hero-container {
        flex-direction: column-reverse;
    }
    
    .hero-actions {
        justify-content: center;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-image-wrapper {
        margin-bottom: var(--spacing-lg);
        width: 80%;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
}
