/**
 * Landing Page CSS
 * Basado en la plantilla Bliss, adaptado a nuestra filosofía editorial
 * Nota: Bootstrap, LineIcons y Animate.css se cargan directamente en landing.php
 */

/* Importar fuentes */
@import url("https://fonts.googleapis.com/css2?family=Archivo+Black&family=Archivo:wght@400;500;600;700&family=Poppins:wght@400;500;600;700&display=swap");

/* Variables CSS - Adaptadas a nuestra filosofía */
:root {
    --landing-primary: #4E6EF1;
    --landing-primary-dark: #3d5bd8;
    --landing-text: #313450;
    --landing-text-secondary: #6B6F92;
    --landing-bg: #ffffff;
    --landing-bg-secondary: #f9fafb;
}

/* Reset y base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-front-body, var(--font-family, "Poppins", sans-serif));
    font-weight: normal;
    font-style: normal;
    font-size: var(--font-size-front-body, 15px);
    color: var(--landing-text-secondary);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-front-heading, var(--font-heading, "Archivo Black", sans-serif));
    font-weight: 700;
    margin: 0px;
    color: var(--landing-text);
}

h1 {
    font-size: var(--font-size-front-h1, 24px);
}

h2 {
    font-size: var(--font-size-front-h2, 21px);
}

h3 {
    font-size: var(--font-size-front-h3, 17px);
}

a {
    transition: all 0.3s ease-out 0s;
    text-decoration: none;
}

a:hover {
    color: var(--landing-primary);
}

/* Header */
.landing-header {
    position: relative;
}

.navbar-area {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 99;
    transition: all 0.3s ease-out 0s;
}

.sticky {
    position: fixed;
    z-index: 99;
    background-color: #fff;
    box-shadow: 0px 20px 50px 0px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease-out 0s;
}

.navbar {
    padding: 20px 0;
    border-radius: 5px;
    position: relative;
    transition: all 0.3s ease-out 0s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.sticky .navbar {
    padding: 17px 0;
}

@media only screen and (min-width: 768px) and (max-width: 991px), (max-width: 767px) {
    .navbar {
        padding: 17px 0;
    }
    
    .sticky .navbar {
        padding: 15px 0;
    }
}

.navbar-brand {
    padding: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.navbar-brand img {
    max-width: 240px;
    height: auto;
    max-height: 80px;
    width: auto;
}

@media only screen and (min-width: 992px) and (max-width: 1199px) {
    .navbar-brand img {
        max-width: 220px;
        max-height: 70px;
    }
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
    .navbar-brand img {
        max-width: 180px;
        max-height: 60px;
    }
}

.navbar-brand span {
    font-size: 36px;
    font-weight: 700;
    color: var(--landing-text);
    line-height: 1.2;
    font-family: var(--font-heading, "Archivo Black", sans-serif);
    letter-spacing: -0.02em;
}

@media only screen and (min-width: 992px) and (max-width: 1199px) {
    .navbar-brand span {
        font-size: 32px;
    }
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
    .navbar-brand span {
        font-size: 28px;
    }
}

.navbar-toggler {
    padding: 0;
    border: none;
    background: transparent;
}

.navbar-toggler:focus {
    outline: none;
    box-shadow: none;
}

.navbar-toggler .toggler-icon {
    width: 30px;
    height: 2px;
    background-color: var(--landing-text);
    display: block;
    margin: 5px 0;
    position: relative;
    transition: all 0.3s ease-out 0s;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
}

.navbar-nav .nav-item {
    position: relative;
    margin-left: 40px;
}

.navbar-nav .nav-item:first-child {
    margin-left: 0;
}

@media only screen and (min-width: 768px) and (max-width: 991px), (max-width: 767px) {
    .navbar-nav .nav-item {
        margin-left: 20px;
    }
}

.navbar-nav .nav-item a {
    font-size: 18px;
    font-weight: 400;
    font-family: var(--font-family, "Poppins", sans-serif);
    color: var(--landing-text-secondary);
    transition: all 0.3s ease-out 0s;
    padding: 10px 0;
    position: relative;
    display: inline-block;
}

.navbar-nav .nav-item a.main-btn {
    padding: 12px 30px;
    margin-left: 20px;
    border-radius: 50px;
    background: var(--landing-primary);
    color: #fff;
    font-weight: 500;
}

.navbar-nav .nav-item a.main-btn:hover {
    background: var(--landing-primary-dark);
    color: #fff;
}

.navbar-nav .nav-item a.main-btn::before {
    display: none;
}

.navbar-nav .nav-item a::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    left: auto;
    width: 0;
    height: 2px;
    background: var(--landing-primary);
    z-index: -1;
    opacity: 0;
    border-radius: 10px;
    transition: all 0.3s ease-out 0s;
}

.navbar-nav .nav-item a:hover,
.navbar-nav .nav-item a.active {
    color: var(--landing-primary);
}

.navbar-nav .nav-item a:hover::before,
.navbar-nav .nav-item a.active::before {
    right: auto;
    left: 0;
    opacity: 1;
    width: 100%;
}

/* Botones */
.main-btn {
    display: inline-block;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    padding: 20px 40px;
    font-size: 18px;
    border-radius: 50px;
    color: #fff;
    cursor: pointer;
    z-index: 5;
    transition: all .4s ease-in-out;
    border: none;
    background: var(--landing-primary);
    overflow: hidden;
}

.main-btn:hover {
    color: #fff;
    background: var(--landing-primary-dark);
}

.btn-hover {
    position: relative;
    overflow: hidden;
}

.btn-hover::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 0%;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    top: 50%;
    left: 50%;
    padding: 50%;
    z-index: -1;
    transition: all 0.3s ease-out 0s;
    transform: translate3d(-50%, -50%, 0) scale(0);
}

.btn-hover:hover::after {
    transform: translate3d(-50%, -50%, 0) scale(1.3);
}

/* Hero Section */
.hero-section {
    position: relative;
    z-index: 1;
    padding: 160px 0 120px;
    background-image: url("../estilo/assets/img/hero/hero-bg.jpg");
    background-repeat: no-repeat;
    background-position: left bottom;
    background-size: cover;
    background-color: var(--landing-bg);
}

@media only screen and (min-width: 1200px) and (max-width: 1399px) {
    .hero-section {
        padding: 180px 0 140px;
    }
}

@media only screen and (min-width: 992px) and (max-width: 1199px) {
    .hero-section {
        padding: 180px 0 140px;
    }
}

.hero-content span {
    font-family: "Archivo Black", sans-serif;
    font-size: 30px;
    color: var(--landing-primary);
    margin-bottom: 20px;
    display: block;
}

.hero-content h1 {
    font-size: 50px;
    margin-bottom: 35px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 18px;
    line-height: 28px;
    margin-bottom: 40px;
    color: var(--landing-text-secondary);
}

.hero-img img {
    width: 100%;
    height: auto;
}

.hero-placeholder {
    width: 100%;
    height: 400px;
    background-color: var(--landing-bg-secondary);
    border: 2px dashed var(--landing-text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--landing-text-secondary);
}

/* About Section */
.about-section {
    padding: 150px 0;
    background-color: var(--landing-bg);
}

.about-img img {
    width: 100%;
    height: auto;
}

.about-placeholder {
    width: 100%;
    height: 400px;
    background-color: var(--landing-bg-secondary);
    border: 2px dashed var(--landing-text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--landing-text-secondary);
}

.section-title h1 {
    font-size: 35px;
    margin-bottom: 25px;
}

.section-title p {
    font-size: 18px;
    line-height: 28px;
    color: var(--landing-text-secondary);
}

/* Service Section */
.service-section {
    padding: 100px 0;
    background-image: url("../estilo/assets/img/service/service-bg.jpg");
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
}

.single-service {
    text-align: center;
    padding: 40px 30px;
    background-color: var(--landing-bg);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease-out 0s;
    margin-bottom: 30px;
}

.single-service:hover {
    box-shadow: 0px 10px 30px 0px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.single-service .icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    border-radius: 50%;
    font-size: 35px;
    color: #fff;
}

.single-service .icon.color-1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.single-service .icon.color-2 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.single-service .icon.color-3 {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.single-service .icon.color-4 {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.single-service .content h3 {
    font-size: 25px;
    margin-bottom: 15px;
}

.single-service .content p {
    font-size: 16px;
    line-height: 25px;
    color: var(--landing-text-secondary);
}

.view-all-btn {
    padding-top: 30px;
}

/* CTA Section */
.cta-section {
    padding: 110px 0 60px;
    color: var(--landing-text);
    background-color: #ffffff;
    background-image: none;
}

.cta-section .section-title h1 {
    color: var(--landing-text);
}

.cta-section .section-title p {
    color: var(--landing-text-secondary);
}

.cta-section .main-btn {
    background: var(--landing-primary);
    color: #fff;
}

.cta-section .main-btn:hover {
    background: var(--landing-primary-dark);
    color: #fff;
}

/* Partner Logos Section */
.partner-logos-section {
    padding: 60px 0;
    background-color: #ffffff;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    overflow: hidden;
}

.partner-logos-container {
    width: 100%;
    overflow: hidden;
}

.partner-logos-scroll {
    display: flex;
    align-items: center;
    gap: 60px;
    animation: scroll-logos 30s linear infinite;
    will-change: transform;
}

.partner-logos-scroll:hover {
    animation-play-state: paused;
}

.partner-logo-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    opacity: 0.6;
    transition: opacity 0.3s ease-out 0s;
}

.partner-logo-item:hover {
    opacity: 1;
}

.partner-logo-item img {
    max-height: 60px;
    max-width: 150px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.3s ease-out 0s;
}

.partner-logo-item:hover img {
    filter: grayscale(0%);
}

@keyframes scroll-logos {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Footer */
.footer {
    background-image: url("../estilo/assets/img/footer/footer-bg.svg");
    background-size: cover;
    background-position: top center;
    padding-top: 150px;
}

.footer .widget-wrapper .footer-widget {
    margin-bottom: 40px;
}

.footer .widget-wrapper .footer-widget .logo {
    margin-bottom: 35px;
}

.footer .widget-wrapper .footer-widget .logo img {
    max-width: 150px;
    height: auto;
    width: auto;
}

.footer .widget-wrapper .footer-widget .logo span {
    font-size: 24px;
    font-weight: 700;
    color: #313450;
    font-family: "Archivo Black", sans-serif;
}

.footer .widget-wrapper .footer-widget .desc {
    font-size: 18px;
    line-height: 28px;
    color: #6B6F92;
}

.footer .widget-wrapper .footer-widget .socials {
    display: flex;
    align-items: center;
}

.footer .widget-wrapper .footer-widget .socials li {
    margin-right: 20px;
}

.footer .widget-wrapper .footer-widget .socials li a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #6B6F92;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease-out 0s;
}

.footer .widget-wrapper .footer-widget .socials li a:hover {
    padding-left: 0px;
}

.footer .widget-wrapper .footer-widget h3 {
    margin-bottom: 35px;
    color: #313450;
    font-family: "Archivo Black", sans-serif;
    font-weight: 700;
}

.footer .widget-wrapper .footer-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer .widget-wrapper .footer-widget ul li {
    font-size: 18px;
    line-height: 36px;
    color: #6B6F92;
}

.footer .widget-wrapper .footer-widget ul li a {
    color: #6B6F92;
}

.footer .widget-wrapper .footer-widget ul li a:hover {
    color: #4E6EF1;
    padding-left: 7px;
}

.footer .widget-wrapper .footer-widget ul li {
    list-style: none;
}

.footer .copy-right {
    text-align: center;
    padding: 30px 0;
    border-top: 2px solid #fff;
}

.footer .copy-right p {
    color: #6B6F92;
    font-size: 18px;
    margin: 0;
}

.footer .copy-right p a {
    color: #4E6EF1;
    text-decoration: none;
}

.footer .copy-right p a:hover {
    text-decoration: underline;
}

/* Clases de utilidad para márgenes (de la plantilla) */
.mb-35 {
    margin-bottom: 35px;
}

.mb-25 {
    margin-bottom: 25px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-50 {
    margin-bottom: 50px;
}

/* Scroll Top */
.scroll-top {
    width: 45px;
    height: 45px;
    background: var(--landing-primary);
    display: none;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    color: #fff;
    border-radius: 5px;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9;
    cursor: pointer;
    transition: all 0.3s ease-out 0s;
}

.scroll-top:hover {
    color: #fff;
    background: var(--landing-primary-dark);
}

/* Responsive */
@media only screen and (min-width: 768px) and (max-width: 991px) {
    .navbar {
        padding: 17px 0;
    }
    
    .navbar-nav .nav-item {
        margin-left: 20px;
    }
    
    .hero-section {
        padding: 180px 0 140px;
    }
    
    .hero-content {
        margin-bottom: 50px;
    }
    
    .hero-content h1 {
        font-size: 37px;
    }
    
    .hero-content span {
        font-size: 25px;
    }
}

@media (max-width: 767px) {
    .navbar {
        padding: 17px 0;
    }
    
    .navbar-brand img {
        max-width: 160px;
        max-height: 50px;
    }
    
    .navbar-brand span {
        font-size: 22px;
    }
    
    .navbar-nav .nav-item {
        margin-left: 15px;
    }
    
    .navbar-nav .nav-item a {
        font-size: 16px;
        padding: 6px 0;
    }
    
    .navbar-nav .nav-item a.main-btn {
        padding: 10px 20px;
        font-size: 16px;
        margin-left: 0;
    }
    
    .hero-section {
        padding: 120px 0 80px;
    }
    
    .hero-content {
        margin-bottom: 50px;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
    
    .hero-content span {
        font-size: 20px;
    }
    
    .about-section {
        padding: 80px 0;
    }
    
    .service-section {
        padding: 80px 0;
    }
    
    .cta-section {
        padding: 80px 0 40px;
    }
}
