/*=========================================================
AGRICOLA ANÁLISIS DE EMPRESAS
style.css
=========================================================*/

/*=========================================================
GOOGLE FONTS
=========================================================*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/*=========================================================
VARIABLES
=========================================================*/

:root{

    --primary:#910A0A;
    --primary-dark:#700707;
    --secondary:#202124;
    --light:#ffffff;
    --gray:#6b7280;
    --gray-light:#f5f6fa;
    --border:#e5e7eb;

    --shadow:0 15px 40px rgba(0,0,0,.08);

    --radius:18px;

    --transition:.35s ease;

    --container:1200px;

}

/*=========================================================
RESET
=========================================================*/

*{

    margin:0;
    padding:0;
    box-sizing:border-box;

}

html{

    scroll-behavior:smooth;

}

body{

    font-family:"Poppins",sans-serif;
    background:#fff;
    color:var(--secondary);
    line-height:1.7;
    overflow-x:hidden;

}

img{

    max-width:100%;
    display:block;

}

a{

    text-decoration:none;
    color:inherit;

}

ul{

    list-style:none;

}

button,
input,
textarea{

    font-family:inherit;

}

/*=========================================================
CONTAINER
=========================================================*/

.container{

    width:min(92%,var(--container));
    margin:auto;

}

/*=========================================================
SECTION
=========================================================*/

section{

    padding:90px 0;

}

/*=========================================================
SECTION TITLE
=========================================================*/

.section-title{

    text-align:center;
    margin-bottom:60px;

}

.section-title span{

    display:inline-block;
    color:var(--primary);
    font-weight:600;
    margin-bottom:12px;

}

.section-title h2{

    font-size:clamp(2rem,4vw,2.8rem);
    margin-bottom:18px;

}

.section-title p{

    max-width:760px;
    margin:auto;
    color:var(--gray);

}

/*=========================================================
BUTTONS
=========================================================*/

.btn{

    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:15px 34px;
    border-radius:999px;
    font-weight:600;
    transition:var(--transition);

}

.btn-primary{

    background:var(--primary);
    color:#fff;

}

.btn-primary:hover{

    background:var(--primary-dark);
    transform:translateY(-3px);

}

.btn-outline{

    border:2px solid var(--primary);
    color:var(--primary);

}

.btn-outline:hover{

    background:var(--primary);
    color:#fff;

}

/*=========================================================
HEADER
=========================================================*/

.header{

    position:sticky;
    top:0;
    z-index:1000;
    background:#fff;
    border-bottom:1px solid var(--border);
    transition:var(--transition);

}

.header .container{

    display:flex;
    align-items:center;
    justify-content:space-between;
    min-height:84px;

}

/*=========================================================
LOGO
=========================================================*/

.logo{

    display:flex;
    flex-direction:column;
    line-height:1.1;

}

.logo-accent{

    color:var(--primary);
    font-size:1.8rem;
    font-weight:800;

}

.logo small{

    font-size:.78rem;
    color:var(--gray);

}

/*=========================================================
NAVBAR
=========================================================*/

.navbar ul{

    display:flex;
    gap:35px;

}

.navbar a{

    font-weight:500;
    transition:var(--transition);

}

.navbar a:hover,
.navbar a.active{

    color:var(--primary);

}

.menu-toggle{

    display:none;
    background:none;
    border:none;
    font-size:1.7rem;
    cursor:pointer;
    color:var(--primary);

}

/*=========================================================
HERO
=========================================================*/

.hero{

    background:linear-gradient(135deg,#fff,#fafafa);
    overflow:hidden;

}

.hero-grid{

    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:70px;
    align-items:center;

}

.hero-badge{

    display:inline-block;
    padding:8px 18px;
    background:rgba(145,10,10,.10);
    color:var(--primary);
    border-radius:999px;
    font-weight:600;
    margin-bottom:20px;

}

.hero h1{

    font-size:clamp(2.6rem,5vw,4.2rem);
    line-height:1.15;
    margin-bottom:24px;

}

.hero p{

    color:var(--gray);
    margin-bottom:35px;

}

.hero-buttons{

    display:flex;
    flex-wrap:wrap;
    gap:18px;
    margin-bottom:35px;

}

.hero-features{

    display:grid;
    gap:15px;

}

.hero-features li{

    display:flex;
    align-items:center;
    gap:12px;

}

.hero-features i{

    color:var(--primary);

}

.hero-image img{

    border-radius:var(--radius);
    box-shadow:var(--shadow);

}

.page-hero{

    padding:120px 0 80px;

}

/* Continúa en la Parte 2:
   • Services
   • Cards
   • About
   • Why Us
   • Process
   • Contact
   • Forms
   • CTA
   • Footer */
   /*=========================================================
SERVICES
=========================================================*/

.services{

    background:var(--gray-light);

}

.services-grid{

    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:30px;

}

/*=========================================================
CARDS
=========================================================*/

.service-card,
.why-card,
.step,
.contact-card,
.contact-form{

    background:#fff;
    padding:35px;
    border-radius:var(--radius);
    box-shadow:var(--shadow);
    transition:var(--transition);

}

.service-card:hover,
.why-card:hover,
.step:hover{

    transform:translateY(-8px);

}

.service-card .icon,
.why-card i{

    width:70px;
    height:70px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background:rgba(145,10,10,.10);
    color:var(--primary);
    font-size:1.6rem;
    margin-bottom:20px;

}

.service-card h3,
.why-card h3,
.step h3{

    margin-bottom:15px;
    font-size:1.3rem;

}

.service-card p,
.why-card p,
.step p{

    color:var(--gray);

}

/*=========================================================
ABOUT
=========================================================*/

.about-preview{

    background:#fff;

}

.about-grid{

    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:70px;
    align-items:center;

}

.about-image img{

    border-radius:var(--radius);
    box-shadow:var(--shadow);

}

.about-content h2{

    font-size:2.5rem;
    margin:20px 0;

}

.about-content p{

    color:var(--gray);
    margin-bottom:20px;

}

.section-tag{

    color:var(--primary);
    font-weight:600;

}

/*=========================================================
WHY US
=========================================================*/

.why-us{

    background:var(--gray-light);

}

.why-grid{

    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
    gap:30px;

}

.why-card{

    text-align:center;

}

.why-card i{

    margin:0 auto 20px;

}

/*=========================================================
PROCESS
=========================================================*/

.process{

    background:#fff;

}

.process-grid{

    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:30px;

}

.step{

    position:relative;
    text-align:center;

}

.step span{

    width:60px;
    height:60px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    background:var(--primary);
    color:#fff;
    font-weight:700;
    margin:0 auto 20px;

}

/*=========================================================
COMPANY INFO
=========================================================*/

.company-info{

    background:var(--gray-light);

}

/*=========================================================
CONTACT
=========================================================*/

.contact-section{

    background:#fff;

}

.contact-grid{

    display:grid;
    grid-template-columns:1fr 1fr;
    gap:45px;

}

.contact-info{

    display:grid;
    gap:25px;
    margin-top:35px;

}

.contact-info>div{

    display:flex;
    align-items:flex-start;
    gap:18px;

}

.contact-info i{

    color:var(--primary);
    font-size:1.4rem;
    margin-top:5px;

}

.contact-info strong{

    display:block;
    margin-bottom:6px;

}

/*=========================================================
FORM
=========================================================*/

.contact-form h3{

    margin-bottom:15px;

}

.contact-form p{

    color:var(--gray);
    margin-bottom:25px;

}

.form-group{

    margin-bottom:22px;

}

.form-group label{

    display:block;
    margin-bottom:8px;
    font-weight:600;

}

.form-group input,
.form-group textarea{

    width:100%;
    padding:15px 18px;
    border:1px solid var(--border);
    border-radius:12px;
    outline:none;
    transition:var(--transition);
    resize:vertical;

}

.form-group input:focus,
.form-group textarea:focus{

    border-color:var(--primary);

}

/*=========================================================
CTA
=========================================================*/

.cta{

    background:linear-gradient(135deg,var(--primary),var(--primary-dark));
    color:#fff;

}

.cta-box{

    text-align:center;
    max-width:850px;
    margin:auto;

}

.cta h2{

    font-size:2.5rem;
    margin-bottom:20px;

}

.cta p{

    margin-bottom:35px;
    opacity:.95;

}

.cta .btn-primary{

    background:#fff;
    color:var(--primary);

}

.cta .btn-primary:hover{

    background:#f4f4f4;

}

/*=========================================================
FOOTER
=========================================================*/

footer{

    background:#151515;
    color:#fff;
    padding:70px 0 25px;

}

.footer-grid{

    display:grid;
    grid-template-columns:2fr 1fr 1fr;
    gap:45px;
    margin-bottom:45px;

}

.footer-grid h3,
.footer-grid h4{

    margin-bottom:18px;

}

.footer-grid p,
.footer-grid li{

    color:#d6d6d6;
    margin-bottom:12px;

}

.footer-grid a{

    transition:var(--transition);

}

.footer-grid a:hover{

    color:#fff;

}

.footer-bottom{

    border-top:1px solid rgba(255,255,255,.10);
    padding-top:25px;
    text-align:center;
    color:#cfcfcf;

}

/*=========================================================
PÁGINAS INTERNAS
=========================================================*/

.intro-services,
.history,
.mission,
.values{

    background:#fff;

}

/* Continúa en la Parte 3:
   • Responsive Desktop
   • Responsive Tablet
   • Responsive Mobile
   • header-scrolled
   • hidden/show
   • back-to-top
   • Utilidades para script.js */
   /*=========================================================
RESPONSIVE
=========================================================*/

@media (max-width:1100px){

    .hero-grid,
    .about-grid,
    .contact-grid{

        grid-template-columns:1fr;
        gap:50px;

    }

    .hero-image{

        order:-1;

    }

    .footer-grid{

        grid-template-columns:1fr 1fr;

    }

}

@media (max-width:768px){

    section{

        padding:70px 0;

    }

    .header .container{

        min-height:75px;

    }

    .menu-toggle{

        display:block;

    }

    .navbar{

        position:absolute;
        top:100%;
        left:0;
        width:100%;
        background:#fff;
        border-top:1px solid var(--border);
        box-shadow:var(--shadow);

        display:none;

    }

    .navbar.active{

        display:block;

    }

    .navbar ul{

        flex-direction:column;
        gap:0;

    }

    .navbar li{

        border-bottom:1px solid var(--border);

    }

    .navbar a{

        display:block;
        padding:18px 25px;

    }

    .header .btn{

        display:none;

    }

    .hero{

        text-align:center;

    }

    .hero-buttons{

        justify-content:center;

    }

    .hero-features{

        justify-content:center;

    }

    .hero-features li{

        justify-content:center;

    }

    .about-content{

        text-align:center;

    }

    .contact-grid{

        gap:35px;

    }

    .footer-grid{

        grid-template-columns:1fr;
        text-align:center;

    }

    .contact-info>div{

        justify-content:center;

    }

}

@media (max-width:576px){

    .container{

        width:94%;

    }

    .hero h1{

        font-size:2.2rem;

    }

    .section-title h2{

        font-size:2rem;

    }

    .cta h2{

        font-size:2rem;

    }

    .service-card,
    .why-card,
    .step,
    .contact-card,
    .contact-form{

        padding:28px;

    }

    .btn{

        width:100%;

    }

    .hero-buttons{

        flex-direction:column;

    }

}

/*=========================================================
HEADER SCROLLED
=========================================================*/

.header-scrolled{

    background:rgba(255,255,255,.98);
    box-shadow:0 10px 30px rgba(0,0,0,.10);

}

/*=========================================================
SCROLL ANIMATIONS
=========================================================*/

.hidden{

    opacity:0;
    transform:translateY(35px);
    transition:.7s ease;

}

.show{

    opacity:1;
    transform:translateY(0);

}

/*=========================================================
BACK TO TOP
=========================================================*/

.back-to-top{

    position:fixed;

    right:25px;
    bottom:25px;

    width:54px;
    height:54px;

    border:none;
    border-radius:50%;

    background:var(--primary);
    color:#fff;

    display:flex;
    align-items:center;
    justify-content:center;

    cursor:pointer;

    opacity:0;
    visibility:hidden;

    transition:var(--transition);

    box-shadow:var(--shadow);

    z-index:999;

}

.back-to-top.visible{

    opacity:1;
    visibility:visible;

}

.back-to-top:hover{

    background:var(--primary-dark);
    transform:translateY(-4px);

}

/*=========================================================
UTILIDADES
=========================================================*/

.text-center{

    text-align:center;

}

.mt-0{

    margin-top:0;

}

.mt-1{

    margin-top:15px;

}

.mt-2{

    margin-top:30px;

}

.mt-3{

    margin-top:45px;

}

.mb-0{

    margin-bottom:0;

}

.mb-1{

    margin-bottom:15px;

}

.mb-2{

    margin-bottom:30px;

}

.mb-3{

    margin-bottom:45px;

}

/*=========================================================
SELECCIÓN DE TEXTO
=========================================================*/

::selection{

    background:var(--primary);
    color:#fff;

}

/*=========================================================
SCROLLBAR
=========================================================*/

::-webkit-scrollbar{

    width:10px;

}

::-webkit-scrollbar-track{

    background:#f2f2f2;

}

::-webkit-scrollbar-thumb{

    background:var(--primary);
    border-radius:20px;

}

::-webkit-scrollbar-thumb:hover{

    background:var(--primary-dark);

}

/*=========================================================
IMÁGENES
=========================================================*/

img{

    user-select:none;

}

/*=========================================================
FOCUS
=========================================================*/

a:focus,
button:focus,
input:focus,
textarea:focus{

    outline:2px solid rgba(145,10,10,.25);
    outline-offset:3px;

}

/*=========================================================
TRANSICIONES GENERALES
=========================================================*/

a,
button,
input,
textarea,
.service-card,
.why-card,
.step{

    transition:var(--transition);

}

/*=========================================================
FIN DEL ARCHIVO
=========================================================*/