/* ==========================================================
   TRINITY ECUADOR
   LAYOUT.CSS
   ========================================================== */

/*==========================================================
  BODY
==========================================================*/

body{
    background:var(--color-background);
    overflow-x:hidden;
}

/*==========================================================
  CONTENEDOR GENERAL
==========================================================*/

.container{

    width:100%;

    max-width:var(--container-width);

    margin:0 auto;

    padding-left:40px;

    padding-right:40px;

}

/*==========================================================
  SECCIONES
==========================================================*/

.section{

    position:relative;

    padding:30px 0;

}

.section:nth-child(even){

    background:var(--color-section);

}

/*==========================================================
  TITULOS DE SECCIÓN
==========================================================*/

.section-header{

    margin-bottom:70px;

}

.section-header.center{

    text-align:center;

    max-width:850px;

    margin:0 auto 30px;

}

.section-tag{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    padding:10px 22px;

    border-radius:40px;

    background:rgba(47,128,237,.10);

    color:var(--color-primary);

    font-size:14px;

    font-weight:600;

    letter-spacing:1px;

    text-transform:uppercase;

    margin-bottom:20px;

}

.section-header h3{

    font-size:35px;

    font-weight:700;

    color:var(--gray-900);

    line-height:1.2;

    margin-bottom:15px;

}

.section-header p{

    max-width:700px;

    margin:auto;

    font-size:18px;

    color:var(--gray-500);

}

/*==========================================================
  GRID HERO
==========================================================*/

.hero-container{

    display:grid;

    grid-template-columns:1fr 1fr;

    align-items:center;

    gap:80px;

    min-height:100vh;

    position:relative;

    z-index:2;

}

/*==========================================================
  ABOUT
==========================================================*/

.about-grid{

    display:grid;

    grid-template-columns:1fr 1fr;

    align-items:center;

    gap:80px;

}

.about-image{

    position:relative;

}

.about-image img{

    border-radius:24px;

    box-shadow:var(--shadow-lg);

}

.about-content h3{

    margin-bottom:25px;

}

.about-content p{

    margin-bottom:20px;

}

.about-list{

    margin:20px 0;

}

.about-list li{

    padding:5px 0;

    font-weight:500;

    color:var(--gray-700);

}

/*==========================================================
  SERVICIOS
==========================================================*/

.services-grid{

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));

    gap: 30px;

    align-items: stretch;

}

.service-card{

    display: flex;

    flex-direction: column;

    height: 100%;

    min-height: 480px; /* Ajusta este valor según tu diseño */
    
    background:#ffffff;

    border-radius:24px;

    padding:45px 35px;

    transition:.35s;

    border:1px solid var(--color-border);

    box-shadow:var(--shadow-sm);

    position:relative;

    overflow:hidden;

}

.service-card:hover{

    transform:translateY(-12px);

    box-shadow:var(--shadow-lg);

}

.service-icon{

    display:flex;

    justify-content:center;

    align-items:center;

    margin-bottom:25px;

}

.service-icon img{

    width:80%;

    max-width:300px;

    height:auto;

    display:block;

    object-fit:contain;

    border-radius:10px;

}

.service-card h3{

    margin-bottom:20px;

    font-size:24px;

}

.service-card p{

    margin-bottom:30px;

}

.service-card a{

    margin-top: auto;

    display: inline-flex;

    align-items: center;

    gap: 8px;

    color: var(--color-primary);

    font-weight: 600;

    text-decoration: none;

    transition: all .3s ease;
}

.service-card a:hover{

    color: var(--color-primary-dark);

    transform: translateX(8px);

}

/*==========================================================
  WHY TRINITY
==========================================================*/

.why-grid{

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:25px;

}

.why-card{

    padding:40px;

    border-radius:20px;

    background:#ffffff;

    text-align:center;

    box-shadow:var(--shadow-sm);

    transition:.35s;

}

.why-card:hover{

    transform:translateY(-10px);

}

.why-card h3{

    margin-bottom:20px;

}

/*==========================================================
  SOFTWARE
==========================================================*/

.software-grid{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:35px;

}

.software-card{

    overflow:hidden;

    border-radius:24px;

    background:#ffffff;

    box-shadow:var(--shadow-md);

    transition:.35s;

}

.software-card:hover{

    transform:translateY(-12px);

}

.software-card img{

    height:250px;

    object-fit:cover;

}

.software-card h4{

    padding:30px 30px 10px;

}

.software-card p{

    padding:0 30px 35px;

}

/*==========================================================
  ACADEMY
==========================================================*/

.academy-grid{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:90px;

    align-items:center;

}

.academy-list{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:8px;

    margin:25px 0;

}

.academy-list div{

    background:#ffffff;

    border-radius:14px;

    padding:12px;

    font-weight:500;

    box-shadow:var(--shadow-xs);

}

.academy-image{

    display:flex;
    justify-content:center;
    align-items:center;

    padding:18px;

    border-radius:24px;

    background:linear-gradient(
        135deg,
        rgba(15,76,129,.06),
        rgba(47,128,237,.03)
    );

}

.academy-image img{

    width:100%;
    max-width:650px;

    display:block;

    border-radius:18px;

    border:1px solid rgba(255,255,255,.35);

    box-shadow:
        0 18px 45px rgba(15,76,129,.18),
        0 8px 18px rgba(0,0,0,.08);

    transition:all .45s ease;

}

.academy-image:hover img{

    transform:
        translateY(-8px)
        scale(1.02);

    box-shadow:
        0 28px 65px rgba(15,76,129,.25),
        0 12px 30px rgba(0,0,0,.12);

}

/*==========================================================
  PROCESS
==========================================================*/

.process-grid{

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:35px;

}

.process-card{

    text-align:center;

    background:#ffffff;

    border-radius:22px;

    padding:45px 30px;

    box-shadow:var(--shadow-sm);

}

.process-card span{

    display:inline-flex;

    width:70px;

    height:70px;

    border-radius:50%;

    justify-content:center;

    align-items:center;

    background:var(--gradient-primary);

    color:#ffffff;

    font-size:24px;

    font-weight:700;

    margin-bottom:30px;

}

/*==========================================================
  ESTADÍSTICAS
==========================================================*/

.stats{

    padding:90px 0;

    background:var(--gradient-primary);

    color:#ffffff;

}

.stats-grid{

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:40px;

    text-align:center;

}

.stats h2{

    color:#ffffff;

    font-size:56px;

    margin-bottom:10px;

}

.stats p{

    color:#ffffff;

}

/*==========================================================
  TESTIMONIOS
==========================================================*/



.testimonial-slider{

    display:grid;

    grid-template-columns:120px 1fr 120px;

    align-items:center;

    justify-content: center;

    gap:20px;

    position:relative;

    opacity:0;

    transition:.35s;

}

.testimonial-slider.loaded{

    opacity:1;

}

.testimonial-track{

    position: relative;

    min-height: 380px;

    display: flex;

    justify-content: center;

    align-items: center;

}

.testimonial-card{
    
    position:absolute;

    align-items: center;

    width: 100%;

    max-width: 800px;

    inset:0;

    opacity:0;

    visibility:hidden;

    transform:translateY(20px);

    transition:

        opacity .45s ease,

        transform .45s ease;

    border-radius: 20px;

}

.testimonial-card.active{

    opacity:1;

    visibility:visible;

    transform:translateY(0);

}

.slider-btn{

    width:60px;

    height:60px;

    border:none;

    border-radius:50%;

    background:#ffffff;

    box-shadow:var(--shadow-md);

    cursor:pointer;

    display:flex;

    justify-content:center;

    align-items:center;

    font-size:24px;

    transition:.35s;

}

.slider-btn:hover{

    background:var(--color-primary);

    color:#ffffff;

}

.slider-dots{

    margin-top:35px;

    display:flex;

    justify-content:center;

    gap:10px;

}

.dot{

    width:12px;

    height:12px;

    border-radius:50%;

    background:#D6DDE6;

    cursor:pointer;

}

.dot.active{

    background:var(--color-primary);

}

.testimonial-card p{

    display:flex;

    align-items:center;

    justify-content: center;

    margin-left: 50px;

    margin-right: 50px;

    text-align: center;

    font-size:1.15rem;

    line-height:1.5;

    color:var(--gray-700);

    font-style:italic;

}

/*=========================================
  TESTIMONIAL HEADER
=========================================*/

.testimonial-header{

    display:flex;

    flex-direction:row;

    align-items:center;

    justify-content:center;

    text-align:center;

}

.testimonial-avatar{
    
    width:30%;    

    height:auto;

    border-radius:0px;

    object-fit:cover;

    border:4px solid #EDF4FF;

    box-shadow:var(--shadow-sm);

    margin: 25PX;

}

.testimonial-header h4{

    margin-bottom:5px;

}

.testimonial-header span{

    font-size:14px;

    color:var(--gray-500);

}

/*==========================================================
  FAQ
==========================================================*/

.faq-container{

    max-width:950px;

    margin:auto;

}

.faq-item{

    margin-bottom:10px;

}

.faq-item button{

    width:100%;

    padding:6px;

    background:#ffffff;

    border-radius:18px;

    text-align:left;

    font-size:18px;

    font-weight:600;

    box-shadow:var(--shadow-xs);

}

.faq-question{

    display:flex;

    justify-content:space-between;

    align-items:center;

}

.faq-icon{

    font-size:26px;

    font-weight:700;

    color:var(--primary);

    transition:.3s;

}

.faq-answer{

    max-height:0;

    overflow:hidden;

    opacity:0;

    padding:0 30px;

    transition:

        max-height .35s ease,

        opacity .35s ease,

        padding .35s ease;

}

.faq-answer p{

    margin:0;

}

.faq-item.active .faq-answer{

    max-height:400px;

    opacity:1;

    padding:25px 30px;

}

/*==========================================================
  CTA
==========================================================*/

.cta{

    padding:120px 0;

}

.cta-box{

    background:var(--gradient-primary);

    border-radius:40px;

    padding:90px;

    text-align:center;

    color:#ffffff;

    box-shadow:var(--shadow-xl);

}

.cta-box h2{

    color:#ffffff;

    margin-bottom:25px;

}

.cta-box p{

    color:rgba(255,255,255,.90);

    max-width:700px;

    margin:0 auto 40px;

}

/*==========================================================
  FOOTER
==========================================================*/

.footer{

    background:#081C34;

    padding-top:100px;

    color:#ffffff;

}

.footer-grid{

    display:grid;

    grid-template-columns:2fr 1fr 1fr 1fr;

    gap:60px;

}

.footer-logo{

    width:220px;

    margin-bottom:25px;

}

.footer h4{

    color:#ffffff;

    margin-bottom:25px;

}

.footer ul li{

    margin-bottom:15px;

}

.footer ul li a{

    color:#D5DEE8;

    transition:.30s;

}

.footer ul li a:hover{

    color:#ffffff;

}

.footer-social{

    display:flex;

    flex-direction:column;

    gap:15px;

}

.footer-bottom{

    margin-top:70px;

    border-top:1px solid rgba(255,255,255,.08);

    padding:30px 0;

    text-align:center;

}

.footer-bottom p{

    color:#B8C7D8;

    margin:0;

}

/*==========================================================
  UTILIDADES
==========================================================*/

.center{

    text-align:center;

}

.mt-80{

    margin-top:80px;

}

.mb-80{

    margin-bottom:80px;

}

/*==========================================================
BACK TO TOP
==========================================================*/

.back-top{

    position:fixed;

    right:30px;

    bottom:30px;

    width:52px;

    height:52px;

    border:none;

    border-radius:50%;

    background:var(--primary);

    color:#fff;

    font-size:22px;

    cursor:pointer;

    opacity:0;

    visibility:hidden;

    transform:translateY(20px);

    transition:.35s;

    z-index:999;

    box-shadow:0 10px 25px rgba(15,76,129,.25);

}

.back-top.show{

    opacity:1;

    visibility:visible;

    transform:translateY(0);

}

.back-top:hover{

    transform:translateY(-5px);

    background:var(--primary-dark);

}

/*==========================================================
IMAGES
==========================================================*/

img{

    max-width:100%;

    display:block;

    transition:

        opacity .45s ease,

        transform .35s ease;

}

img.loaded{

    opacity:1;

}

img:not(.loaded){

    opacity:.2;

}

.image-loading{

    position:relative;

    overflow:hidden;

    background:#f3f5f7;

}

.image-loading::after{

    content:"";

    position:absolute;

    inset:0;

    background:linear-gradient(

        90deg,

        transparent,

        rgba(255,255,255,.7),

        transparent

    );

    animation:skeleton 1.5s infinite;

}

@keyframes skeleton{

    from{

        transform:translateX(-100%);

    }

    to{

        transform:translateX(100%);

    }

}

