
:root {
    --brand-green: #0d4f34;
    --brand-green-dark: #073522;
    --brand-green-bar: #072517;
    --brand-green-how: #00261b;
    --brand-gold: #c07b34;
    --brand-gold-btn: #d89243;
    --brand-gold-btn-hover: #be7c32;
    --text-dark: #333333;
    --text-muted: #666666;
    --bg-light: #fdfdfd;
    --card-border: #eaeaea;
    --max-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    overflow-x: hidden;
}

h1, h2, h3, h4, .font-oswald {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.title-underline {
    width: 45px;
    height: 3px;
    background-color: var(--brand-gold);
    margin-bottom: 12px;
}

/* --- 1. HERO BANNER --- */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 520px;
    background-color: var(--brand-green-dark);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    padding: 60px 0;
    color: #ffffff;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11.2px;
    font-weight: 300;
    color: #ffffff;
    margin-top: -30px;
    margin-bottom: 35px;
    letter-spacing: 0.3px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8), 0 1px 2px rgba(0, 0, 0, 0.9);
}

.breadcrumb a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 300;
    transition: opacity 0.2s;
}

.breadcrumb a:hover {
    opacity: 0.8;
}

.breadcrumb span.current-page {
    font-weight: 300;
    color: #ffffff;
}

.breadcrumb i {
    font-size: 9px;
    color: #ffffff;
    opacity: 0.7;
}

.hero-title-wrap {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.hero-title-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
    flex-shrink: 0;
    margin-top: 2px;
    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.7));
}

.hero-title {
    font-size: 52px;
    font-weight: 700;
    line-height: 1.05;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85), 0 1px 3px rgba(0, 0, 0, 0.9);
}

.hero-title span {
    color: var(--brand-gold-btn);
    display: block;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9), 0 1px 4px rgba(0, 0, 0, 0.95);
}

.hero-subtitle {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 15px;
    color: #ffffff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.85), 0 1px 2px rgba(0, 0, 0, 0.9);
}

.hero-description {
    font-size: 13.5px;
    line-height: 1.6;
    color: #ffffff;
    margin-bottom: 30px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.85), 0 1px 2px rgba(0, 0, 0, 0.9);
}

.btn-gold {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--brand-gold-btn);
    color: #ffffff;
    font-family: 'Oswald', sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 12px 28px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(0,0,0,0.4);
}

.btn-gold:hover {
    background-color: var(--brand-gold-btn-hover);
    transform: translateY(-2px);
}

/* --- 2. HIGHLIGHTS BAR --- */
.highlights-bar {
    background-color: var(--brand-green-bar);
    border-top: 1px solid rgba(255,255,255,0.08);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 24px 0;
    color: #ffffff;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    position: relative;
}

.highlight-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 10%;
    height: 80%;
    width: 1px;
    background-color: rgba(255,255,255,0.15);
}

.highlight-icon {
    width: 38px;
    height: 38px;
    object-fit: contain;
    flex-shrink: 0;
    margin-top: 2px;
}

.highlight-text h4 {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
    line-height: 1.2;
}

.highlight-text p {
    font-size: 12px;
    line-height: 1.45;
    color: #b5c7be;
}

/* --- 3. SECCIÓN MÁS QUE UNA GARANTÍA --- */
.tool-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.tool-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.tool-image-container img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    display: block;
    object-fit: cover;
}

.tool-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tool-content .section-title {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.15;
    color: var(--brand-green);
}

.tool-content .section-title .highlight {
    color: var(--brand-gold);
}

.tool-text {
    font-size: 14px;
    line-height: 1.65;
    color: var(--text-muted);
}

/* --- SECCIÓN: ¿PARA QUÉ SIRVE UNA FIANZA DE FIDELIDAD? --- */
.purpose-section {
    padding: 65px 0 75px 0;
    background-color: #f7faf8;
    border-top: 1px solid #eef3f0;
    border-bottom: 1px solid #eef3f0;
}

.purpose-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: center;
}

.purpose-sidebar .section-title {
    font-size: 28px;
    line-height: 1.15;
    color: var(--brand-green);
}

.purpose-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    position: relative;
}

.purpose-card {
    background-color: #ffffff;
    padding: 24px 16px;
    border-radius: 8px;
    border: 1px solid #e2ece7;
    text-align: center;
    box-shadow: 0 4px 15px rgba(13, 79, 52, 0.03);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.purpose-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(13, 79, 52, 0.08);
}

.purpose-icon {
    width: 52px;
    height: 52px;
    object-fit: contain;
    margin-bottom: 16px;
}

.purpose-card h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--brand-green);
    margin-bottom: 10px;
    line-height: 1.25;
    min-height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.purpose-card p {
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-muted);
}

/* --- 4. ¿CÓMO FUNCIONA? --- */
.how-it-works-section {
    background-color: var(--brand-green-how);
    color: #ffffff;
    padding: 60px 0 70px 0;
}

.how-header {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 50px;
}

.how-header .section-title {
    font-size: 30px;
    color: #ffffff;
}

.how-header p {
    font-size: 14px;
    line-height: 1.6;
    color: #cde0d7;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: relative;
    gap: 20px;
}

.step-item {
    text-align: center;
    position: relative;
    z-index: 2;
}

.step-icon-wrap {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.step-icon {
    width: 75px;
    height: 75px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.step-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 38px;
    right: -50%;
    width: 100%;
    border-top: 2px dashed rgba(255, 255, 255, 0.35);
    z-index: 1;
}

.step-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #ffffff;
}

.step-title .num {
    color: var(--brand-gold-btn);
}

.step-desc {
    font-size: 12px;
    line-height: 1.5;
    color: #bcd4c9;
    padding: 0 10px;
}

/* --- 5. ¿PARA QUIÉN ES ESTA FIANZA? --- */
.target-section {
    padding: 70px 0;
    background-color: #ffffff;
}

.target-section .section-title {
    font-size: 30px;
    color: var(--brand-green);
}

.target-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    margin-top: 40px;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    padding: 30px 0;
}

.target-item {
    text-align: center;
    padding: 0 15px;
    position: relative;
}

.target-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 10%;
    height: 80%;
    width: 1px;
    background-color: #e5e5e5;
}

.target-icon {
    height: 50px;
    width: auto;
    margin-bottom: 15px;
    object-fit: contain;
}

.target-item p {
    font-size: 13px;
    font-weight: 600;
    color: #444444;
    line-height: 1.35;
}

/* --- 5.5 ¿POR QUÉ ELEGIR GRUPO ENCINO? --- */
.why-us-section {
    padding: 75px 0;
    background-color: #f8faf9;
    border-top: 1px solid #eef3f0;
}

.why-us-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: center;
}

.why-us-sidebar .section-title {
    font-size: 28px;
    line-height: 1.15;
    color: var(--brand-green);
}

.comparison-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.04);
    border: 1px solid #e5ece8;
}

.comparison-table th {
    padding: 16px 20px;
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.comparison-table th.col-other {
    background-color: #e9ecea;
    color: #555555;
    width: 33%;
    text-align: center;
}

.comparison-table th.col-encino {
    background-color: var(--brand-green-dark);
    color: #ffffff;
    width: 34%;
    text-align: center;
}

.comparison-table th.col-benefit {
    background-color: #ffffff;
    color: var(--brand-green);
    width: 33%;
    text-align: left;
    border-bottom: 1px solid #e8ece9;
}

.comparison-table td {
    padding: 14px 20px;
    font-size: 13px;
    vertical-align: middle;
    border-bottom: 1px solid #edf1ee;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table td.cell-other {
    background-color: #fdfdfd;
    color: #666666;
}

.comparison-table td.cell-encino {
    background-color: #f4f8f6;
    color: var(--brand-green-dark);
    font-weight: 600;
}

.comparison-table td.cell-benefit {
    background-color: #ffffff;
    color: #444444;
}

.table-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-cancel {
    color: #a0a0a0;
    font-size: 14px;
}

.icon-check-encino {
    color: var(--brand-gold-btn);
    font-size: 15px;
}

.icon-check-benefit {
    color: var(--brand-gold-btn);
    font-size: 13px;
}

/* --- 6. PREGUNTAS FRECUENTES (FAQ) --- */
.faq-section {
    padding: 70px 0 80px 0;
    background-color: #ffffff;
}

.faq-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 50px;
    align-items: start;
}

.faq-sidebar .section-title {
    font-size: 30px;
    color: var(--brand-green);
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background-color: #ffffff;
    border: 1px solid #eee;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.faq-header {
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease;
}

.faq-header:hover {
    background-color: #fcfcfc;
}

.faq-question {
    font-size: 14.5px;
    font-weight: 600;
    color: #333333;
}

.faq-icon {
    font-size: 14px;
    color: #888888;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease-out, padding 0.35s ease-out;
    padding: 0 24px;
    background-color: #ffffff;
}

.faq-item.active .faq-body {
    padding: 0 24px 20px 24px;
}

.faq-body p {
    font-size: 13.5px;
    line-height: 1.6;
    color: #666666;
}

/* --- 7. FORMULARIO DE CONTACTO (BLOQUE Y SECCIÓN CON FONDO OSCURO) --- */
.contact-section {
    padding: 80px 0;
    background-color: #04100c; /* Fondo de la sección exterior */
    border-top: 2px solid rgba(216, 146, 67, 0.25);
}

.form-card {
    background-color: #081711; /* Fondo del bloque de la tarjeta del formulario */
    border-radius: 12px;
    padding: 50px;
    color: #ffffff;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    max-width: 1000px;
    margin: 0 auto;
    border: 1px solid rgba(216, 146, 67, 0.3);
}

.form-title {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.form-subtitle {
    font-size: 14px;
    color: #d0ded8;
    line-height: 1.55;
    margin-bottom: 35px;
    font-weight: 300;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 20px;
}

.form-group-full {
    grid-column: span 2;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    background-color: #ffffff;
    border: 1px solid #c8c8c8;
    border-radius: 6px;
    padding: 14px 18px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13.5px;
    color: #333333;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input::placeholder, .form-textarea::placeholder {
    color: #888888;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--brand-gold-btn);
    box-shadow: 0 0 0 3px rgba(216, 146, 67, 0.35);
}

.form-select {
    color: #888888;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23333333%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 18px top 50%;
    background-size: 12px auto;
    cursor: pointer;
}

.form-select option {
    color: #333333;
}

.form-textarea {
    resize: vertical;
    min-height: 95px;
}

.form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 25px;
    gap: 20px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12.5px;
    color: #d0ded8;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--brand-gold-btn);
    cursor: pointer;
}

.checkbox-label a {
    color: var(--brand-gold-btn);
    text-decoration: underline;
    transition: opacity 0.2s;
}

.checkbox-label a:hover {
    opacity: 0.85;
}

.btn-submit {
    background-color: var(--brand-gold-btn);
    color: #ffffff;
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 14px 32px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    white-space: nowrap;
}

.btn-submit:hover {
    background-color: var(--brand-gold-btn-hover);
    transform: translateY(-2px);
}

/* --- RESPONSIVIDAD --- */
@media (max-width: 1024px) {
    .highlights-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .highlight-item:not(:last-child)::after { display: none; }
    .tool-grid { grid-template-columns: 1fr; gap: 35px; }
    .purpose-grid, .why-us-grid { grid-template-columns: 1fr; gap: 30px; }
    .purpose-cards { grid-template-columns: repeat(2, 1fr); }
    .target-grid { grid-template-columns: repeat(3, 1fr); row-gap: 30px; }
    .target-item:nth-child(3)::after { display: none; }
}

@media (max-width: 850px) {
    .hero-title { font-size: 42px; }
    .how-header { grid-template-columns: 1fr; gap: 15px; }
    .steps-container { grid-template-columns: repeat(2, 1fr); gap: 40px 20px; }
    .step-item:not(:last-child)::after { display: none; }
    .faq-grid { grid-template-columns: 1fr; gap: 30px; }
    .form-card { padding: 35px 25px; }
}

@media (max-width: 650px) {
    .form-grid { grid-template-columns: 1fr; }
    .form-group-full { grid-column: span 1; }
    .form-footer { flex-direction: column; align-items: flex-start; gap: 20px; }
    .btn-submit { width: 100%; justify-content: center; }
}

@media (max-width: 600px) {
    .hero-section { min-height: auto; }
    .hero-content { padding: 40px 0; }
    .breadcrumb { margin-top: 0; }
    
    .hero-title { 
        font-size: 32px; 
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95), 0 1px 3px rgba(0, 0, 0, 1);
    }
    .hero-title span {
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95), 0 1px 3px rgba(0, 0, 0, 1);
    }
    .hero-title-icon { width: 45px; height: 45px; }
    
    .highlights-grid { grid-template-columns: 1fr; }
    .purpose-cards { grid-template-columns: 1fr; }
    .steps-container { grid-template-columns: 1fr; }
    .target-grid { grid-template-columns: 1fr; row-gap: 25px; }
    .target-item::after { display: none !important; }
}
