:root {
    --cream: #f8f5f0;
    --light-cream: #fcfbf8;
    --dark-cream: #e8e4dc;
    --gold: #c5b28a;
    --dark-gold: #a8956a;
    --light-gold: #d4c8aa;
    --charcoal: #2c2c2c;
    --light-charcoal: #4a4a4a;
    --white: #ffffff;
    --primary-black: #1a1a1a;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hero Section con Fondo Parallax */
.hero-section {
    position: relative;
    color: var(--white);
    padding: 180px 0 100px;
    text-align: left;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Fondo Parallax con imagen separada */
.hero-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    z-index: -2;
    transform: translateZ(0);
    will-change: transform;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/image.webp');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            rgba(0, 0, 0, 0.95) 0%,
            rgba(0, 0, 0, 0.7) 50%,
            rgba(0, 0, 0, 0.4) 100%);
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.3) 0%,
            rgba(0, 0, 0, 0.1) 50%,
            rgba(0, 0, 0, 0.3) 100%);
    z-index: -1;
}

/* ===== DECORACIONES DORADAS ===== */

/* Líneas doradas verticales */
.hero-gold-decoration {
    position: absolute;
    background: var(--gold);
    z-index: 1;
    opacity: 0.6;
}

.hero-gold-line-left {
    left: 5%;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom,
            transparent 0%,
            var(--gold) 20%,
            var(--gold) 80%,
            transparent 100%);
}

.hero-gold-line-right {
    right: 5%;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom,
            transparent 0%,
            var(--gold) 20%,
            var(--gold) 80%,
            transparent 100%);
}

/* Esquinas doradas */
.hero-gold-corner-tl {
    top: 50px;
    left: 50px;
    width: 100px;
    height: 2px;
    background: linear-gradient(to right,
            transparent 0%,
            var(--gold) 50%,
            transparent 100%);
}

.hero-gold-corner-tl::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    width: 2px;
    height: 20px;
    background: var(--gold);
}

.hero-gold-corner-tr {
    top: 50px;
    right: 50px;
    width: 100px;
    height: 2px;
    background: linear-gradient(to left,
            transparent 0%,
            var(--gold) 50%,
            transparent 100%);
}

.hero-gold-corner-tr::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 0;
    width: 2px;
    height: 20px;
    background: var(--gold);
}

.hero-gold-corner-bl {
    bottom: 50px;
    left: 50px;
    width: 100px;
    height: 2px;
    background: linear-gradient(to right,
            transparent 0%,
            var(--gold) 50%,
            transparent 100%);
}

.hero-gold-corner-bl::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 2px;
    height: 20px;
    background: var(--gold);
}

.hero-gold-corner-br {
    bottom: 50px;
    right: 50px;
    width: 100px;
    height: 2px;
    background: linear-gradient(to left,
            transparent 0%,
            var(--gold) 50%,
            transparent 100%);
}

.hero-gold-corner-br::before {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 0;
    width: 2px;
    height: 20px;
    background: var(--gold);
}

/* Ornamentos decorativos */
.hero-gold-ornament-top {
    top: 115px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            var(--gold) 20%,
            var(--gold) 80%,
            transparent 100%);
}

.hero-gold-ornament-top::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
}

.hero-gold-ornament-bottom {
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            var(--gold) 20%,
            var(--gold) 80%,
            transparent 100%);
}

.hero-gold-ornament-bottom::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
}

/* ===== CONTENIDO DEL HERO ===== */

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: left;
    position: relative;
    z-index: 2;
}

/* Marco para el título */
.hero-title-wrapper {
    position: relative;
}

.hero-frame-left,
.hero-frame-right {
    position: absolute;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom,
            transparent 0%,
            var(--gold) 10%,
            var(--gold) 90%,
            transparent 100%);
    opacity: 0.4;
}

.hero-frame-left {
    left: -20px;
}

.hero-frame-right {
    right: -20px;
}

/* Contenido del Hero */
.hero-tagline {
    font-size: 1.2rem;
    color: var(--gold);
    margin-bottom: 15px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0;
    animation: heroFadeInUp 0.8s ease 0.2s forwards;
    position: relative;
    display: inline-block;
    padding: 0 10px;
}

.hero-tagline::before,
.hero-tagline::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 20px;
    height: 1px;
    background: var(--gold);
    opacity: 0.5;
}

.hero-tagline::before {
    left: -20px;
}

.hero-tagline::after {
    right: -20px;
}

.hero-main-title {
    font-size: 3.8rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 15px;
    color: var(--white);
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    opacity: 0;
    animation: heroFadeInUp 0.8s ease 0.4s forwards;
}

.hero-gold-highlight {
    color: var(--gold);
    position: relative;
    display: inline-block;
}

.hero-gold-highlight::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg,
            transparent 0%,
            var(--gold) 20%,
            var(--gold) 80%,
            transparent 100%);
}

.hero-subtitle {
    font-size: 1.8rem;
    color: var(--light-gold);
    margin-bottom: 10px;
    font-weight: 400;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
    opacity: 0;
    animation: heroFadeInUp 0.8s ease 0.6s forwards;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: #ddd;
    max-width: 600px;
    line-height: 1.7;
    opacity: 0;
    animation: heroFadeInUp 0.8s ease 0.8s forwards;
    position: relative;
    padding-left: 20px;
}

.hero-description::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background: linear-gradient(to bottom,
            transparent 0%,
            var(--gold) 10%,
            var(--gold) 90%,
            transparent 100%);
}

/* Botones mejorados */
.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
    opacity: 0;
    animation: heroFadeInUp 0.8s ease 1s forwards;
}

.hero-btn-primary,
.hero-btn-secondary {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.hero-btn-gold-line {
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom,
            var(--light-gold) 0%,
            var(--gold) 50%,
            var(--light-gold) 100%);
    transition: var(--transition);
    z-index: 2;
}

.hero-btn-primary:hover .hero-btn-gold-line {
    width: 5px;
    background: linear-gradient(to bottom,
            var(--gold) 0%,
            var(--light-gold) 50%,
            var(--gold) 100%);
}

.hero-btn-secondary:hover .hero-btn-gold-line {
    width: 5px;
    background: linear-gradient(to bottom,
            var(--gold) 0%,
            var(--light-gold) 50%,
            var(--gold) 100%);
}

.hero-btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--dark-gold));
    color: var(--primary-black);
    padding: 18px 40px 18px 45px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(197, 178, 138, 0.3);
}

.hero-btn-primary:hover {
    background: linear-gradient(135deg, var(--dark-gold), var(--gold));
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(197, 178, 138, 0.4);
    padding-left: 50px;
}

.hero-btn-secondary {
    background-color: transparent;
    color: var(--white);
    padding: 18px 35px 18px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    border: 2px solid var(--gold);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.hero-btn-secondary:hover {
    background-color: rgba(197, 178, 138, 0.15);
    transform: translateY(-5px);
    border-color: var(--light-gold);
    padding-left: 45px;
}

/* Features mejorados */
.hero-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 900px;
    margin-top: 30px;
    opacity: 0;
    animation: heroFadeInUp 0.8s ease 1.2s forwards;
}

.hero-feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(197, 178, 138, 0.1);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.hero-feature-icon-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.hero-feature-gold-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid var(--gold);
    border-radius: 50%;
    opacity: 0.5;
    transition: var(--transition);
}

.hero-feature-item:hover .hero-feature-gold-frame {
    transform: scale(1.1);
    opacity: 0.8;
    border-width: 3px;
}

.hero-feature-icon {
    font-size: 2.5rem;
    color: var(--gold);
    transition: var(--transition);
    z-index: 1;
}

.hero-feature-item:hover .hero-feature-icon {
    transform: scale(1.1);
}

.hero-feature-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--white);
    position: relative;
    padding-bottom: 10px;
}

.hero-feature-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: var(--gold);
}

.hero-feature-desc {
    font-size: 0.95rem;
    color: #bbb;
    line-height: 1.5;
    max-width: 250px;
}

.hero-feature-bottom-line {
    position: absolute;
    bottom: 0;
    left: 20%;
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg,
            transparent 0%,
            var(--gold) 20%,
            var(--gold) 80%,
            transparent 100%);
    opacity: 0.3;
    transition: var(--transition);
}

.hero-feature-item:hover .hero-feature-bottom-line {
    opacity: 0.8;
    width: 80%;
    left: 10%;
}

/* Separador decorativo */
.hero-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 60px;
    opacity: 0;
    animation: heroFadeInUp 0.8s ease 1.4s forwards;
}

.hero-separator-line {
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            var(--gold) 50%,
            transparent 100%);
}

.hero-separator-ornament {
    margin: 0 20px;
    width: 50px;
    height: 50px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 1.5rem;
    background: rgba(197, 178, 138, 0.1);
}

/* Animaciones específicas para Hero */
@keyframes heroFadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroGrowLine {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

/* ===== RESPONSIVE DESIGN ===== */

/* Ocultar algunas decoraciones en móviles */
@media (max-width: 992px) {
    .hero-gold-line-left,
    .hero-gold-line-right,
    .hero-gold-corner-tl,
    .hero-gold-corner-tr,
    .hero-gold-corner-bl,
    .hero-gold-corner-br {
        display: none;
    }
    
    .hero-frame-left,
    .hero-frame-right {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 160px 0 60px;
        min-height: auto;
        text-align: center;
    }

    .hero-container {
        text-align: center;
        padding: 0 15px;
    }

    .hero-main-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.4rem;
    }

    .hero-description {
        padding-left: 0;
        margin: 0 auto 30px;
    }

    .hero-description::before {
        display: none;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-btn-primary,
    .hero-btn-secondary {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .hero-features {
        grid-template-columns: 1fr;
        max-width: 350px;
        margin: 0 auto;
    }
    
    .hero-separator {
        margin-top: 40px;
    }
}

@media (max-width: 480px) {
    .hero-tagline::before,
    .hero-tagline::after {
        display: none;
    }
    
    .hero-separator {
        display: none;
    }
}

/* Hero Section con Fondo Parallax */
.hero-section {
    position: relative;
    color: var(--white);
    padding: 180px 0 100px;
    text-align: left;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Fondo Parallax con imagen separada - MODIFICADO PARA RESPONSIVE */
.hero-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* Cambiado de 120% a 100% */
    z-index: -2;
    transform: translateZ(0);
    will-change: transform;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/image.webp');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    /* Transición suave para cambios de tamaño */
    transition: background-size 0.3s ease;
}

/* Overlay optimizado para móviles */
.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            rgba(0, 0, 0, 0.95) 0%,
            rgba(0, 0, 0, 0.8) 50%, /* Más oscuro para mejor legibilidad */
            rgba(0, 0, 0, 0.6) 100%);
}

/* Ajuste específico para móviles */
@media (max-width: 768px) {
    .hero-bg-image {
        background-size: cover; /* Mantener cover para móviles */
        background-position: center center; /* Asegurar que esté centrada */
        /* Opcional: puedes usar un tamaño diferente si necesitas */
        /* background-size: 150% auto; */
    }
    
    /* Overlay más oscuro para mejor contraste en móviles */
    .hero-bg-overlay {
        background: linear-gradient(90deg,
                rgba(0, 0, 0, 0.97) 0%,
                rgba(0, 0, 0, 0.85) 50%,
                rgba(0, 0, 0, 0.75) 100%);
    }
}

/* Para tablets */
@media (max-width: 992px) and (min-width: 769px) {
    .hero-bg-image {
        background-position: center center;
    }
    
    .hero-bg-overlay {
        background: linear-gradient(90deg,
                rgba(0, 0, 0, 0.93) 0%,
                rgba(0, 0, 0, 0.75) 50%,
                rgba(0, 0, 0, 0.5) 100%);
    }
}

/* ===== MEJORAS PARA MÓVILES ===== */

@media (max-width: 768px) {
    .hero-section {
        padding: 120px 0 60px; /* Menos padding superior/inferior */
        min-height: auto; /* Altura automática */
        text-align: center;
    }

    .hero-container {
        text-align: center;
        padding: 0 20px; /* Más padding lateral */
    }

    .hero-main-title {
        font-size: 2.2rem; /* Un poco más grande que antes */
        margin-bottom: 10px;
    }

    .hero-subtitle {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }

    .hero-description {
        font-size: 1rem;
        padding-left: 0;
        margin: 0 auto 30px;
        max-width: 100%; /* Usar todo el ancho disponible */
        line-height: 1.6;
    }

    /* Botones en móviles */
    .hero-buttons {
        flex-direction: column;
        align-items: stretch; /* Que ocupen todo el ancho */
        gap: 15px;
        margin-bottom: 40px;
    }

    .hero-btn-primary,
    .hero-btn-secondary {
        width: 100%;
        max-width: none; /* Sin límite máximo */
        justify-content: center;
        padding: 16px 20px; /* Un poco menos de padding */
    }

    /* Features en una columna */
    .hero-features {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 100%; /* Ocupar todo el ancho */
        margin-top: 20px;
    }

    .hero-feature-item {
        padding: 25px 15px;
    }
    
    /* Separador más pequeño */
    .hero-separator {
        margin-top: 40px;
    }
    
    .hero-separator-line {
        width: 60px; /* Más corto en móviles */
    }
    
    .hero-separator-ornament {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

/* Para pantallas muy pequeñas */
@media (max-width: 480px) {
    .hero-section {
        padding: 100px 0 40px;
    }
    
    .hero-main-title {
        font-size: 1.9rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-tagline {
        font-size: 1rem;
        letter-spacing: 1px;
    }
    
    .hero-tagline::before,
    .hero-tagline::after {
        width: 10px; /* Más cortos */
    }
    
    .hero-btn-primary,
    .hero-btn-secondary {
        font-size: 1rem;
        padding: 14px 20px;
    }
    
    .hero-feature-item {
        padding: 20px 15px;
    }
    
    .hero-feature-icon-wrapper {
        width: 70px;
        height: 70px;
    }
    
    .hero-feature-icon {
        font-size: 2rem;
    }
    
    .hero-separator {
        margin-top: 30px;
        display: flex; /* Mantener visible pero más pequeño */
    }
    
    .hero-separator-line {
        width: 40px;
    }
    
    .hero-separator-ornament {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

/* Para tablets en landscape */
@media (max-width: 1024px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding: 140px 0 80px;
    }
    
    .hero-main-title {
        font-size: 2.8rem;
    }
    
    .hero-features {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas en landscape */
    }
}

/* Optimización para pantallas grandes */
@media (min-width: 1400px) {
    .hero-bg-image {
        background-size: cover; /* Asegurar que cubra bien */
    }
}

/* Ajustes específicos para el contenedor de fondo */
@media (max-width: 768px) {
    .hero-bg-container {
        height: 100vh; /* Ocupar toda la pantalla visible */
        position: fixed; /* Fijo para mejor efecto */
    }
    
    /* Si quieres que el contenido se desplace sobre un fondo fijo */
    .hero-section {
        background: transparent;
    }
    
    .hero-container {
        position: relative;
        z-index: 10;
        background: rgba(0, 0, 0, 0.4); /* Fondo semitransparente para legibilidad */
        backdrop-filter: blur(5px);
        border-radius: 10px;
        padding: 30px 20px;
        margin: 0 15px;
    }
}