/* ========== FUENTES PERSONALIZADAS ========== */
@font-face {
    font-family: 'Carnero';
    src: url('../Fonts/Carnero Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Carnero';
    src: url('../Fonts/Carnero SemiBold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Carnero';
    src: url('../Fonts/Carnero Black.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
}

/* ========== RESET Y VARIABLES GLOBALES ========== */
:root {
    --primary-blue: #003da5;
    --secondary-blue: #003da5;
    --accent-cyan: #00b4d6;
    --accent-green: #b4d600;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f5f5f5;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    --shadow-light: 0 5px 15px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Carnero', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ========== ANIMACIONES ========== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes slideRight {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(0, 180, 214, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(0, 180, 214, 0.6);
    }
}

.fade-in-down {
    animation: fadeInDown 0.8s ease-out;
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.fade-in-left {
    animation: fadeInLeft 0.8s ease-out;
}

.fade-in-right {
    animation: fadeInRight 0.8s ease-out;
}

/* ========== HERO SECTION ========== */
.hero {
    background: var(--white);
    padding: 3rem 0;
    min-height: auto;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: 5%;
    width: 400px;
    height: 400px;
    background: rgba(0, 180, 214, 0.06);
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 0 2rem;
}

.hero-left {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 500px;
}

.hero-image-base,
.hero-image-layer-1,
.hero-image-layer-2 {
    position: absolute;
    max-width: 100%;
    height: auto;
    border-radius: 20px;
}

.hero-image-base {
    max-height: 500px;
    width: auto;
    z-index: 3;
}

.hero-image-layer-1 {
    max-height: 400px;
    width: auto;
    z-index: 2;
    animation: sway-right 4s ease-in-out infinite;
}

.hero-image-layer-2 {
    max-height: 350px;
    width: auto;
    z-index: 1;
    animation: sway-left 5s ease-in-out infinite;
}

@keyframes sway-right {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(20px);
    }
}

@keyframes sway-left {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(-20px);
    }
}

.hero-right {
    color: var(--text-dark);
}

.title-main {
    font-size: 1.8rem;
    font-weight: 900 !important;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    text-shadow: none;
    line-height: 1.2;
}

.subtitle {
    font-size: 1.3rem;
    font-weight: 700 !important;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.subtitle strong {
    display: block;
    margin-top: 0.5rem;
    color: var(--primary-blue);
    font-weight: 900 !important;
}

.description {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.description-secondary {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.highlight {
    color: var(--accent-green);
    font-size: 1.1rem;
    margin-bottom: 0;
    line-height: 1.6;
    font-weight: 900 !important;
}

/* ========== BOTONES ========== */
.btn {
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600 !important;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Carnero', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.3s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(120deg, var(--accent-green), var(--accent-cyan));
    color: var(--primary-blue);
    box-shadow: var(--shadow-light);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(180, 214, 0, 0.4);
}

.btn-cta {
    background: var(--accent-green);
    color: var(--primary-blue);
    box-shadow: var(--shadow);
}

.btn-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(180, 214, 0, 0.5);
}

/* ========== SOMOS EFR SECTION ========== */
.somos-efr {
    background: var(--primary-blue);
    padding: 0;
    position: relative;
    overflow: hidden;
}

.efr-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
    z-index: 1;
}

.efr-background .bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.efr-content {
    max-width: 100%;
    margin: 0;
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    gap: 0;
    padding: 0;
}

.efr-left {
    padding: 4rem 2rem 4rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.efr-logo {
    margin-bottom: 2rem;
}

.titulo-image {
    max-width: 300px;
    width: 100%;
    height: auto;
}

.efr-text {
    color: var(--white);
    font-size: 1.1rem;
    line-height: 1.6;
}

.efr-text p {
    margin-bottom: 1rem;
}

.efr-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    position: relative;
    min-height: 500px;
}

.team-image {
    width: 100%;
    height: 100%;
    max-width: none;
    border-radius: 0;
    box-shadow: none;
    object-fit: cover;
}

/* ========== BENEFICIOS SECTION ========== */
.beneficios {
    background-color: var(--bg-light);
    background-image: url('https://comfandievoluciona.comfandi.com.co/wp-content/themes/comfandi/img/fondo-gif.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 6rem 2rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 900 !important;
    text-align: center;
    margin-bottom: 4rem;
    color: var(--primary-blue);
    position: relative;
    padding-bottom: 1.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-green), var(--accent-cyan));
    border-radius: 2px;
    animation: slideRight 1s ease-out;
}

.beneficios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.benefit-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 180, 214, 0.1), rgba(180, 214, 0, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.benefit-card:hover::before {
    opacity: 1;
}

.benefit-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.benefit-icon {
    margin-bottom: 1.5rem;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-icon img {
    max-width: 100%;
    height: auto;
    max-height: 100px;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.1));
}

.benefit-card h3 {
    font-size: 1.5rem;
    font-weight: 900 !important;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.benefit-card p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.card-underline {
    height: 4px;
    width: 60px;
    background: linear-gradient(90deg, var(--accent-green), var(--accent-cyan));
    margin: 1.5rem auto 0;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.benefit-card:hover .card-underline {
    width: 100%;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: var(--accent-green);
    box-shadow: 0 0 10px var(--accent-green);
    width: 30px;
    border-radius: 10px;
}

/* ========== TESTIMONIOS SECTION ========== */
.testimonios {
    background: var(--primary-blue);
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
    background-image: url('../Imagenes/FondoTestimonio.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.testimonios-background {
    display: none;
}

.text-white {
    color: var(--white) !important;
}

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

.testimonios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    background: var(--white);
}

.testimonial-image {
    width: 100%;
    height: 250px;
    border-radius: 0;
    object-fit: cover;
    margin: 0 0 1.5rem 0;
    border: none;
    box-shadow: none;
    transition: transform 0.3s ease;
    display: block;
}

.testimonial-card:hover .testimonial-image {
    transform: scale(1.05);
}

.testimonial-text {
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    font-weight: 900 !important;
    color: var(--primary-blue);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.testimonial-role {
    color: var(--accent-cyan);
    font-size: 0.85rem;
    font-weight: 600 !important;
}

/* ========== CTA SECTION ========== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    padding: 6rem 2rem;
    border-radius: 30px;
    margin: 4rem 2rem;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(180, 214, 0, 0.1);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
    color: var(--white);
}

.cta-content h2 {
    font-size: 2.2rem;
    font-weight: 900 !important;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

/* ========== FOOTER ========== */
.footer {
    background-color: #001a3d;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    padding: 2rem;
    font-size: 0.9rem;
}

/* ========== OFERTAS SECTION ========== */
.ofertas-section {
    background: #05c3dd;
    padding: 2rem 2rem;
}

.ofertas-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.ofertas-title {
    font-size: 2rem;
    color: white;
    font-weight: 600 !important;
    text-align: center;
    margin: 0;
}

.ofertas-items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.ofertas-item {
    background-color: transparent;
    border-radius: 0;
    padding: 2rem;
    text-align: left;
    transition: transform 0.3s ease;
    box-shadow: none;
    animation: slideInUp 0.8s ease-out;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1.5rem;
    border-right: 1px solid rgba(255, 255, 255, 0.3);
}

.ofertas-item:last-child {
    border-right: none;
}

.ofertas-item:hover {
    transform: none;
    box-shadow: none;
}

.ofertas-icon {
    width: 60px;
    height: 60px;
    margin: 0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border-radius: 0;
    padding: 0;
}

.ofertas-icon svg,
.ofertas-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ofertas-item h3 {
    font-size: 1.2rem;
    color: white;
    margin-bottom: 0.3rem;
    font-weight: 600 !important;
}

.ofertas-item p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
    font-size: 0.85rem;
    line-height: 1.3;
}

.btn-filter {
    background-color: white;
    color: #05c3dd;
    border: none;
    padding: 0.6rem 1.4rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600 !important;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Carnero', sans-serif;
}

.btn-filter:hover {
    background-color: #05c3dd;
    color: white;
    transform: scale(1.05);
}

.btn-filter:active {
    transform: scale(0.98);
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
    }

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

    .subtitle {
        font-size: 1.4rem;
    }

    .efr-content {
        grid-template-columns: 1fr;
        text-align: left;
        padding: 0;
    }

    .efr-left {
        padding: 2rem;
        max-width: 100%;
    }

    .efr-right {
        justify-content: center;
        display: none;
    }

    .ofertas-container {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .ofertas-item {
        padding: 1.5rem;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    }

    .ofertas-item:last-child {
        border-bottom: none;
    }

    .ofertas-section {
        padding: 1.5rem 1rem;
    }

    .ofertas-items {
        grid-template-columns: 1fr;
    }

    .titulo-image {
        max-width: 200px;
    }

    .beneficios-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }

    .cta-content h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .title-main {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .description {
        font-size: 1rem;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .container {
        padding: 0 1rem;
    }

    .ofertas-item {
        padding: 1.2rem;
    }

    .ofertas-item h3 {
        font-size: 1.1rem;
    }

    .ofertas-item p {
        font-size: 0.85rem;
    }

    .ofertas-icon {
        width: 50px;
        height: 50px;
        margin: 0;
    }

    .btn-filter {
        padding: 0.55rem 1.2rem;
        font-size: 0.8rem;
    }

    .ofertas-title {
        font-size: 1.5rem;
    }
}
