/* Custom Fonts */
@font-face {
    font-family: 'Branding';
    src: url('../fonts/Branding Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Branding';
    src: url('../fonts/Branding Medium.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Branding';
    src: url('../fonts/Branding Semibold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Branding';
    src: url('../fonts/Branding Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}

/* Variables */
:root {
    --primary-blue: #0055b8;
    --accent-yellow: #ffb600;
    --text-dark: #333333;
    --ws-green: #25D366;
    --bg-light: #f8f9fa;
}

/* Base resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Branding', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
}

.w-100 {
    width: 100%;
    display: block;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 80px 20px;
}

.bg-white {
    background-color: #ffffff;
}

.text-blue {
    color: var(--primary-blue);
}

.text-white {
    color: #ffffff;
}

.text-yellow {
    color: var(--accent-yellow);
}

strong {
    font-weight: 700;
}

/* SECTION 1: HEADER */
.section-header img {
    height: auto;
    object-fit: cover;
}

/* SECTION 2: CERTIFICACION */
.section-certificacion {
    position: relative;
    z-index: 1;
}

.cert-content {
    max-width: 800px;
}

.title-left {
    text-align: left;
    font-size: 2.8rem;
    font-weight: 400;
    margin-bottom: 25px;
    line-height: 1.3;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    color: var(--primary-blue);
}

.logo-inline {
    height: 70px;
    object-fit: contain;
    transform: translateY(5px);
}

.desc {
    text-align: left;
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 35px;
    color: var(--primary-blue);
}

/* Button */
.btn-nperf {
    display: inline-block;
    background-color: var(--accent-yellow);
    color: var(--primary-blue);
    padding: 16px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.15rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 15px rgba(255, 182, 0, 0.3);
    border: 2px solid var(--accent-yellow);
}

.btn-nperf:hover {
    background-color: var(--primary-blue);
    color: #ffffff;
    border-color: var(--primary-blue);
    box-shadow: 0 6px 20px rgba(0, 85, 184, 0.3);
    transform: translateY(-2px);
}

/* SECTION 3: 7 RAZONES */
.section-razones {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

/* Add an subtle overlay for better reading */
.section-razones::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 30, 80, 0.85); /* deep blue transparent */
    z-index: 0;
}
.section-razones > .container {
    position: relative;
    z-index: 1;
}

.title-razones {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    font-weight: 400;
    line-height: 1.4;
}

.grid-razones {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px 60px;
}

.col {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.razon-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    color: #ffffff;
    transition: transform 0.3s ease;
}

.razon-item:hover {
    transform: translateX(10px);
}

.icon-wrap {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.icon-wrap img {
    /* For image to fit correctly inside the 60x60 space */
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.razon-item:hover .icon-wrap {
    transform: scale(1.1);
}

.text-wrap {
    display: flex;
    flex-direction: column;
}

.text-wrap h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: #ffffff;
}

.text-wrap p {
    font-size: 1rem;
    line-height: 1.4;
    opacity: 0.9;
}

/* SECTION 4: CONFIANZA */
.section-confianza {
    background-color: #ffffff;
}

.confianza-content {
    max-width: 800px;
}

/* SECTION 5: FOOTER */
.footer {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    padding: 80px 20px;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 30, 80, 0.85); /* Match the section overaly */
    z-index: 0;
}

.footer-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0; /* Removing general container padding for footer specifics */
}

/* "Chatea con nosotros" badge */
.whatsapp-group {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: -10px; /* Pegado al de abajo */
    position: relative;
    z-index: 3;
}

.ws-text {
    background-color: #ffffff;
    color: var(--primary-blue);
    border: 3px solid var(--ws-green);
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: 700;
    margin-left: -25px; /* overlap with icon */
    z-index: 1;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.ws-icon-wrap {
    background-color: #ffffff;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--ws-green);
    z-index: 2;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.ws-icon {
    font-size: 2.8rem;
    color: var(--ws-green);
}

/* Numbers */
.contact-numbers {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
}

.number-blue {
    background-color: #ffffff;
    color: var(--primary-blue);
    padding: 18px 45px;
    border-radius: 50px;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.number-white {
    color: #ffffff;
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: 2px;
}

/* Social icons */
.social-icons {
    display: flex;
    gap: 20px;
}

.social-icon {
    width: 60px;
    height: 60px;
    background-color: #ffffff;
    color: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.social-icon:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    background-color: var(--primary-blue);
    color: #ffffff;
}

/* Responsiveness */
@media (max-width: 900px) {
    .grid-razones {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .title-left {
        font-size: 2.2rem;
    }
    .logo-inline {
        height: 55px;
    }
    .title-razones {
        font-size: 2rem;
    }
    .ws-text {
        font-size: 1.1rem;
        padding: 10px 20px;
        margin-left: -20px;
    }
    .ws-icon-wrap {
        width: 60px;
        height: 60px;
    }
    .ws-icon {
        font-size: 2.4rem;
    }
    .number-blue {
        font-size: 1.4rem;
        padding: 15px 30px;
    }
}
