/* Reset Global - ESENCIAL para evitar el descentrado */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    background-color: #fdfaf7;
}

* {
    box-sizing: border-box;
}

:root {
    --gold: #E6B325;
    --gold-hover: #C77D18;
    --bg-light: #FDF6E3;
    --bg-dark: #2D5A27;
    --text-dark: #333333;
    --white: #FFFFFF;
}

/* Hero Section */
.hero-section {
    position: relative; /* Esencial para que el z-index funcione */
    width: 100%;
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1; /* El video está al fondo */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Oscurece el video para que el texto resalte */
    z-index: 2; /* Encima del video */
}

/* Gradiente de integración: conecta visualmente el hero con el fondo */
.hero-section::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background: linear-gradient(to top, #fdfaf7, transparent);
    pointer-events: none;
    z-index: 3;
}

.hero-content {
    position: relative; /* ¡Esto es lo que faltaba! */
    z-index: 3; /* Asegura que esté por encima de todo */
    text-align: center;
    color: white;
    width: 90%;
    max-width: 800px;
}

/* Secciones siguientes */
.features-section {
    padding: 5rem 5%;
    text-align: center;
    background-color: #fdfaf7;
}

.features-grid {
    display: flex;
    justify-content: center; /* Centra las tarjetas */
    gap: 40px;
    max-width: 1100px;      /* Define un ancho máximo coherente */
    margin: 0 auto;         /* Centra el contenedor en la pantalla */
    padding: 0 20px;
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #E6B325; /* Borde dorado suave */
    border-radius: 50%;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.feature-card {
    flex: 1;                /* Distribuye el espacio equitativamente */
    display: flex;
    flex-direction: column;
    align-items: center;    /* Centra iconos y texto horizontalmente */
    text-align: center;
}

.feature-icon {
    width: 30px; /* Tamaño del icono */
    height: 30px;
    fill: #E6B325; /* Color base */
    transition: fill 0.3s ease; /* Transición suave al cambiar de color */
}

.feature-card:hover .icon-wrapper {
    background: #E6B325;
    color: #ffffff;
}

.feature-card:hover .feature-icon {
    color: #ffffff;
}

/* Elimina el margen negativo y usa 100% */
.cta-closure-section {
    width: 100%;
    /* Un tono arena suave, muy elegante y natural */
    background-color: #F5F0E6;
    padding: 6rem 5% 8rem 5%;
    position: relative;
    text-align: center;
    box-sizing: border-box;
}

.cta-closure-section::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    /* Ajusta este color al fondo real de tu footer */
    background: linear-gradient(to top, #E0D3C3 0%, transparent 100%);
    pointer-events: none;
}

.cta-closure-content {
    max-width: 800px;
    margin: 0 auto;
    color: #4A3F35;
    z-index: 3;
    position: relative;
}

.btn-primary {
    background-color: #E6B325; /* Color Dorado */
    color: #FFFFFF;
    padding: 1rem 2.5rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(193, 157, 83, 0.3);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    display: inline-block;
    text-decoration: none;
}

.btn-primary:hover {
    background-color: #C77D18; /* Ámbar Cálido */
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(193, 157, 83, 0.5);
}

.hero-section-wrapper, 
.features-section {
    width: 100%;
    padding-left: 5%;  /* Restores the visual alignment for text */
    padding-right: 5%;
    box-sizing: border-box;
}

/* Specifically for the Hero to touch borders */
.hero-section-wrapper {
    padding-left: 0;
    padding-right: 0;
}

.cta-closure-content .btn-primary {
    background-color: #E6B325;
    color: #FFFFFF;
}