/*=========================================
RECICLATGES TEIÀ V2
=========================================*/


/*=============
VARIABLES
=============*/

:root{

    --primary:#2E7D32;
    --primary-light:#4CAF50;
    --dark:#1F1F1F;
    --text:#555;
    --white:#FFF;
    --light:#F7F8F7;

    --radius:24px;

    --shadow:0 20px 60px rgba(0,0,0,.08);

    --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:var(--white);

    color:var(--dark);

    overflow-x:hidden;

    line-height:1.7;

}

img{

    display:block;

    max-width:100%;

}

a{

    text-decoration:none;

    color:inherit;

}

.container{

    width:min(92%,var(--container));

    margin:auto;

}


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

.header{

    position:fixed;

    top:0;

    left:0;

    width:100%;

    z-index:1000;

    background:rgba(255,255,255,.92);

    backdrop-filter:blur(14px);

    border-bottom:1px solid rgba(0,0,0,.05);

}

.header-content{

    height:90px;

    display:flex;

    justify-content:space-between;

    align-items:center;

}

.nav{

    display:flex;

    gap:40px;

}

.nav a{

    font-weight:600;

    transition:.3s;

}

.nav a:hover{

    color:var(--primary);

}

.menu-toggle{

    display:none;

}


/*=============
BOTONES
=============*/

.btn{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    padding:16px 34px;

    border-radius:50px;

    font-weight:600;

    transition:var(--transition);

}

.btn-primary{

    background:var(--primary);

    color:white;

}

.btn-primary:hover{

    transform:translateY(-4px);

    background:#256428;

}

.btn-secondary{

    border:2px solid var(--primary);

    color:var(--primary);

}

.btn-secondary:hover{

    background:var(--primary);

    color:white;

}


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

.hero{

    position:relative;

    overflow:hidden;

    padding:180px 0 120px;

    background:
    radial-gradient(circle at 10% 20%,rgba(76,175,80,.20),transparent 35%),
    radial-gradient(circle at 90% 10%,rgba(46,125,50,.18),transparent 30%),
    linear-gradient(180deg,#ffffff 0%,#f5faf5 100%);

}

.hero::before{

    content:"";

    position:absolute;

    width:600px;

    height:600px;

    right:-180px;

    top:-220px;

    background:radial-gradient(circle,#81C784,transparent 70%);

    opacity:.25;

}

.hero-grid{

    display:grid;

    grid-template-columns:1.1fr .9fr;

    gap:80px;

    align-items:center;

    position:relative;

    z-index:2;

}

.hero-tag{

    display:inline-block;

    padding:12px 24px;

    border-radius:50px;

    background:#E8F5E9;

    color:var(--primary);

    font-weight:600;

    margin-bottom:25px;

}

.hero h1{

    font-size:4.3rem;

    line-height:1.05;

    margin-bottom:30px;

}

.hero p{

    max-width:650px;

    color:var(--text);

    font-size:1.15rem;

    margin-bottom:45px;

}

.hero-buttons{

    display:flex;

    gap:20px;

}

.hero-image{

    display:flex;

    justify-content:center;

    align-items:center;

    position:relative;

    min-height:470px;

}


/* CÍRCULO VERDE */

.hero-image::before{

    content:"";

    position:absolute;

    width:470px;

    height:470px;

    border-radius:50%;

    background:#E8F5E9;

    z-index:0;

}


/* CÍRCULO CLARO */

.hero-image::after{

    content:"";

    position:absolute;

    width:340px;

    height:340px;

    border-radius:50%;

    border:2px dashed #4CAF50;

    z-index:1;

}


/* LOGO */

.hero-card{

    position:relative;

    z-index:5;

    background:white;

    padding:28px 38px;

    border-radius:35px;

    box-shadow:0 25px 70px rgba(0,0,0,.10);

}

.hero-card img{

    width:200px;

}

/*==================================================
EMPRESA
==================================================*/

.about{

    padding:120px 0;

}

.section-subtitle{

    display:inline-block;

    color:var(--primary);

    font-weight:700;

    letter-spacing:2px;

    margin-bottom:18px;

    font-size:.85rem;

}

.about h2{

    font-size:3.2rem;

    line-height:1.15;

    max-width:900px;

    margin-bottom:50px;

}

.about-content{

    display:grid;

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

    gap:70px;

}

.about-content p{

    font-size:1.08rem;

    color:var(--text);

}

.about-content strong{

    color:var(--primary);

}


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

.services{

    padding:120px 0;

    background:linear-gradient(180deg,#f8faf8,#eef6ef);

}

.services h2{

    font-size:3rem;

    margin:20px 0 60px;

    max-width:850px;

}

.services-grid{

    display:grid;

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

    gap:35px;

}

.service-card{

    position:relative;

    overflow:hidden;

    background:white;

    border-radius:26px;

    padding:45px;

    box-shadow:var(--shadow);

    transition:.35s;

}

.service-card:hover{

    transform:translateY(-12px);

}

.service-card::before{

    content:"";

    position:absolute;

    left:0;

    top:0;

    width:7px;

    height:100%;

    background:var(--primary);

    transform:scaleY(0);

    transition:.35s;

}

.service-card:hover::before{

    transform:scaleY(1);

}

.service-icon{

    width:80px;

    height:80px;

    display:flex;

    justify-content:center;

    align-items:center;

    border-radius:22px;

    background:linear-gradient(135deg,#4CAF50,#2E7D32);

    color:white;

    font-size:2rem;

    margin-bottom:28px;

    transition:.35s;

}

.service-card:hover .service-icon{

    transform:rotate(-8deg) scale(1.08);

}

.service-card h3{

    font-size:1.45rem;

    margin-bottom:18px;

}

.service-card p{

    color:var(--text);

}

.service-card::after{

    content:"";

    position:absolute;

    width:180px;

    height:180px;

    right:-70px;

    top:-70px;

    border-radius:50%;

    background:rgba(76,175,80,.08);

    transition:.35s;

}

.service-card:hover::after{

    transform:scale(1.2);

}

/*==================================================
CONTACTO
==================================================*/

.contact{

    position:relative;

    padding:120px 0;

    background:#fff;

}

.contact::before{

    content:"";

    position:absolute;

    top:0;

    left:0;

    width:100%;

    height:180px;

    background:linear-gradient(180deg,#eef6ef 0%,transparent 100%);

}

.contact-grid{

    position:relative;

    z-index:2;

    display:grid;

    grid-template-columns:430px 1fr;

    gap:45px;

    align-items:stretch;

}

.contact-info{

    background:linear-gradient(160deg,#2E7D32,#1B5E20);

    color:#fff;

    border-radius:28px;

    padding:55px;

    box-shadow:0 25px 70px rgba(46,125,50,.30);

}

.contact-info .section-subtitle{

    color:#B9F6CA;

}

.contact-info h2{

    font-size:2.6rem;

    line-height:1.15;

    margin:20px 0 25px;

}

.contact-info>p{

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

    margin-bottom:45px;

}

.contact-data{

    display:flex;

    flex-direction:column;

    gap:28px;

}

.contact-data div{

    display:flex;

    align-items:flex-start;

    gap:18px;

}

.contact-data i{

    width:55px;

    height:55px;

    display:flex;

    justify-content:center;

    align-items:center;

    border-radius:18px;

    background:rgba(255,255,255,.15);

    font-size:20px;

    flex-shrink:0;

}

.contact-data a{

    color:#fff;

    transition:.3s;

}

.contact-data a:hover{

    color:#C8E6C9;

}

.contact-data p{

    color:#fff;

}

.contact-buttons{

    display:flex;

    gap:18px;

    margin-top:45px;

}

.contact-buttons .btn-primary{

    background:#fff;

    color:var(--primary);

}

.contact-buttons .btn-primary:hover{

    background:#f4f4f4;

}

.contact-buttons .btn-secondary{

    border-color:#fff;

    color:#fff;

}

.contact-buttons .btn-secondary:hover{

    background:#fff;

    color:var(--primary);

}


/*=========================
MAPA
=========================*/

.contact-map{

    overflow:hidden;

    border-radius:28px;

    box-shadow:0 20px 60px rgba(0,0,0,.12);

    min-height:620px;

    background:#eee;

}

.contact-map iframe{

    width:100%;

    height:100%;

    border:none;

}


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

footer{

    background:#1B1B1B;

    color:#fff;

    padding:80px 0 35px;

}

.footer-content{

    display:flex;

    flex-direction:column;

    align-items:center;

    text-align:center;

}

.footer-content img{

    width:220px;

    margin-bottom:30px;

    filter:brightness(0) invert(1);

}

.footer-content>p{

    max-width:720px;

    color:#BFBFBF;

    margin-bottom:40px;

}

.footer-content nav{

    display:flex;

    gap:40px;

    margin-bottom:40px;

}

.footer-content nav a{

    font-weight:500;

    transition:.3s;

}

.footer-content nav a:hover{

    color:#81C784;

}

.copyright{

    width:100%;

    padding-top:30px;

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

    color:#888;

    font-size:.9rem;

}


/*==================================================
BOTÓN SUBIR
==================================================*/

#scrollTop{

    position:fixed;

    right:30px;

    bottom:30px;

    width:58px;

    height:58px;

    border:none;

    border-radius:50%;

    background:linear-gradient(135deg,#4CAF50,#2E7D32);

    color:#fff;

    font-size:20px;

    cursor:pointer;

    display:flex;

    justify-content:center;

    align-items:center;

    box-shadow:0 15px 35px rgba(46,125,50,.35);

    opacity:0;

    visibility:hidden;

    transform:translateY(20px);

    transition:.35s;

    z-index:999;

}

#scrollTop.show{

    opacity:1;

    visibility:visible;

    transform:translateY(0);

}

#scrollTop:hover{

    transform:translateY(-6px);

    box-shadow:0 25px 45px rgba(46,125,50,.45);

}
/*==================================================
RESPONSIVE TABLET
==================================================*/

@media (max-width:1024px){

.container{

    width:94%;

}

.hero{

    padding:160px 0 100px;

}

.hero-grid{

    grid-template-columns:1fr;

    text-align:center;

    gap:70px;

}

.hero p{

    margin:0 auto 40px;

}

.hero-buttons{

    justify-content:center;

}

.hero-image{

    margin-top:20px;

    min-height:440px;

}

.hero-image::before{

    width:360px;

    height:360px;

}

.hero-image::after{

    width:440px;

    height:440px;

}

.hero-card img{

    width:160px;

}

.about{

    padding:100px 0;

}

.about h2{

    font-size:2.7rem;

}

.about-content{

    grid-template-columns:1fr;

    gap:35px;

}

.services{

    padding:100px 0;

}

.services-grid{

    grid-template-columns:1fr;

}

.contact{

    padding:100px 0;

}

.contact-grid{

    grid-template-columns:1fr;

}

.contact-map{

    min-height:450px;

}

}


/*==================================================
RESPONSIVE MOVIL
==================================================*/

@media (max-width:768px){

.header-content{

    height:80px;
	justify-content:space-between;

}

.menu-toggle{

    display:flex;

    flex-direction:column;

    gap:6px;

    background:none;

    border:none;

    cursor:pointer;

    z-index:1001;

}

.menu-toggle span{

    width:28px;

    height:3px;

    background:#222;

    border-radius:20px;

    transition:.3s;

}

.menu-toggle.active span:nth-child(1){

    transform:rotate(45deg) translate(6px,6px);

}

.menu-toggle.active span:nth-child(2){

    opacity:0;

}

.menu-toggle.active span:nth-child(3){

    transform:rotate(-45deg) translate(7px,-7px);

}

body.menu-open{

    overflow:hidden;

}

.nav{

    position:fixed;

    left:0;

    top:80px;
	
	right:0;

    width:100%;

    background:white;

    flex-direction:column;

    align-items:center;

    gap:30px;

    padding:40px 0;

    box-shadow:0 20px 50px rgba(0,0,0,.08);

    transform:translateY(-150%);

    transition:.35s;

}

.nav.active{

    transform:translateY(0);

}

.hero{

    padding:140px 0 80px;

}

.hero h1{

    font-size:2.6rem;

}

.hero p{

    font-size:1rem;

}

.hero-buttons{

    flex-direction:column;

    align-items:center;

}

.hero-image{

    min-height:360px;

}

.hero-image::before{

    width:300px;

    height:300px;

}

.hero-image::after{

    width:360px;

    height:360px;

}

.hero-card img{

    width:150px;

}

.about h2{

    font-size:2.2rem;

}

.services h2{

    font-size:2.2rem;

}

.service-card{

    padding:35px;

}

.contact-info{

    padding:35px;

}

.contact-info h2{

    font-size:2rem;

}

.contact-buttons{

    flex-direction:column;

}

.footer-content nav{

    flex-direction:column;

    gap:18px;

}

#scrollTop{

    width:50px;

    height:50px;

    right:20px;

    bottom:20px;

}

.about{

    padding:80px 0;

}

.services{

    padding:80px 0;

}

.contact{

    padding:80px 0;

}

section{

    scroll-margin-top:90px;

}

}


/*==================================================
MOVILES PEQUEÑOS
==================================================*/

@media (max-width:480px){

.hero h1{

    font-size:2rem;

}

.hero-tag{

    font-size:.8rem;

}

.about h2{

    font-size:1.9rem;

}

.services h2{

    font-size:1.9rem;

}

.service-icon{

    width:65px;

    height:65px;

    font-size:1.5rem;

}

.service-card h3{

    font-size:1.2rem;

}

.contact-info{

    padding:28px;

}

.contact-info h2{

    font-size:1.7rem;

}

.btn{

    width:100%;

}

.hero-buttons{

    width:100%;

}

.contact-buttons{

    width:100%;

}

.footer-content img{

    width:180px;

}

}


/*==================================================
ANIMACIONES
==================================================*/

@keyframes fadeUp{

    from{

        opacity:0;

        transform:translateY(40px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}

.hero-content{

    animation:fadeUp .8s ease;

}

.hero-image{

    animation:fadeUp 1s ease;

}

.about-content{

    animation:fadeUp .9s ease;

}

.services-grid{

    animation:fadeUp 1s ease;

}

.contact-grid{

    animation:fadeUp 1.1s ease;

}


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

section{

    scroll-margin-top:110px;

}

::selection{

    background:var(--primary);

    color:#fff;

}

::-webkit-scrollbar{

    width:10px;

}

::-webkit-scrollbar-track{

    background:#f0f0f0;

}

::-webkit-scrollbar-thumb{

    background:var(--primary);

    border-radius:20px;

}

::-webkit-scrollbar-thumb:hover{

    background:var(--primary-light);

}

/*==================================================
BANNER DE COOKIES
==================================================*/

.cookie-banner{

    position:fixed;

    left:0;

    right:0;

    bottom:0;

    z-index:2000;

    background:#1B1B1B;

    color:#fff;

    padding:26px 0;

    box-shadow:0 -10px 40px rgba(0,0,0,.25);

    transform:translateY(100%);

    transition:.4s ease;

}

.cookie-banner.show{

    transform:translateY(0);

}

.cookie-content{

    display:flex;

    flex-wrap:wrap;

    align-items:center;

    justify-content:space-between;

    gap:24px;

}

.cookie-text{

    flex:1 1 420px;

    font-size:.95rem;

    color:#D8D8D8;

    line-height:1.6;

}

.cookie-text a{

    color:#81C784;

    font-weight:600;

    text-decoration:underline;

}

.cookie-buttons{

    display:flex;

    flex-wrap:wrap;

    gap:14px;

}

.cookie-buttons .btn{

    padding:13px 26px;

    font-size:.92rem;

}

.cookie-buttons .btn-secondary{

    border-color:#fff;

    color:#fff;

}

.cookie-buttons .btn-secondary:hover{

    background:#fff;

    color:var(--dark);

}

@media (max-width:768px){

.cookie-content{

    flex-direction:column;

    align-items:flex-start;

}

.cookie-buttons{

    width:100%;

}

.cookie-buttons .btn{

    flex:1;

}

}


/*==================================================
PÁGINAS LEGALES (aviso legal / privacidad / cookies)
==================================================*/

.legal-page{

    padding:170px 0 100px;

    max-width:900px;

}

.legal-page h1{

    font-size:2.6rem;

    margin-bottom:30px;

    color:var(--dark);

}

.legal-page h2{

    font-size:1.4rem;

    margin:40px 0 16px;

    color:var(--primary);

}

.legal-page p, .legal-page li{

    color:var(--text);

    font-size:1.02rem;

    margin-bottom:16px;

}

.legal-page ul{

    padding-left:22px;

}

.legal-page table{

    width:100%;

    border-collapse:collapse;

    margin:20px 0 30px;

}

.legal-page th, .legal-page td{

    text-align:left;

    padding:12px 14px;

    border:1px solid #e2e2e2;

    font-size:.95rem;

    color:var(--text);

}

.legal-page th{

    background:#F7F8F7;

    color:var(--dark);

}

.legal-back{

    display:inline-block;

    margin-bottom:30px;

    color:var(--primary);

    font-weight:600;

}

.footer-legal{

    display:flex;

    gap:10px;

    flex-wrap:wrap;

    justify-content:center;

    margin-top:18px;

    font-size:.85rem;

    color:#888;

}

.footer-legal a{

    color:#BFBFBF;

    transition:.3s;

}

.footer-legal a:hover{

    color:#81C784;

}

.footer-legal button{

    background:none;

    border:none;

    padding:0;

    font:inherit;

    font-size:.85rem;

    color:#BFBFBF;

    cursor:pointer;

    transition:.3s;

}

.footer-legal button:hover{

    color:#81C784;

}

.footer-social{

    display:flex;

    justify-content:center;

    margin-bottom:30px;

}

.footer-social a{

    width:44px;

    height:44px;

    display:flex;

    justify-content:center;

    align-items:center;

    border-radius:50%;

    background:rgba(255,255,255,.08);

    color:#fff;

    font-size:19px;

    transition:.3s;

}

.footer-social a:hover{

    background:#0A66C2;

    transform:translateY(-4px);

}

.map-placeholder{

    height:100%;

    min-height:620px;

    display:flex;

    flex-direction:column;

    align-items:center;

    justify-content:center;

    gap:18px;

    text-align:center;

    padding:30px;

    background:#eef6ef;

}

.map-placeholder p{

    color:var(--text);

    max-width:320px;

}

#mapsIframe{

    height:100%;

    min-height:620px;

}


/*==================================================
PÁGINA 404
==================================================*/

.error-page{

    min-height:100vh;

    display:flex;

    flex-direction:column;

    align-items:center;

    justify-content:center;

    text-align:center;

    padding:160px 24px 100px;

    background:
    radial-gradient(circle at 10% 20%,rgba(76,175,80,.20),transparent 35%),
    radial-gradient(circle at 90% 10%,rgba(46,125,50,.18),transparent 30%),
    linear-gradient(180deg,#ffffff 0%,#f5faf5 100%);

}

.error-page img{

    width:170px;

    margin-bottom:40px;

}

.error-icon{

    width:110px;

    height:110px;

    display:flex;

    justify-content:center;

    align-items:center;

    border-radius:50%;

    background:linear-gradient(135deg,#4CAF50,#2E7D32);

    color:#fff;

    font-size:2.8rem;

    margin-bottom:36px;

    box-shadow:0 20px 50px rgba(46,125,50,.30);

    animation:truckMove 2.4s ease-in-out infinite;

}

@keyframes truckMove{

    0%,100%{ transform:translateX(0); }
    50%{ transform:translateX(10px); }

}

.error-page .error-code{

    font-size:1rem;

    font-weight:700;

    letter-spacing:2px;

    color:var(--primary);

    margin-bottom:14px;

}

.error-page h1{

    font-size:2.6rem;

    line-height:1.2;

    max-width:640px;

    margin-bottom:20px;

}

.error-page p{

    max-width:520px;

    color:var(--text);

    font-size:1.08rem;

    margin-bottom:40px;

}

@media (max-width:768px){

.error-page h1{

    font-size:2rem;

}

.error-page img{

    width:140px;

}

.error-icon{

    width:90px;

    height:90px;

    font-size:2.2rem;

}

}
