/* =========================================
   1. CONFIGURACIÓN GENERAL Y VARIABLES
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;

    /* Estilo Regular */
    @font-face {
        font-family: 'Montserrat';
        src: url('fonts/Montserrat-Regular.otf');
        /* Verifica la extensión */
        font-weight: normal;
        font-style: normal;
    }

    /* Estilo Negrita (Bold) */
    @font-face {
        font-family: 'Montserrat';
        src: url('fonts/Montserrat-Bold.otf');
        font-weight: bold;
        font-style: normal;
    }

    /* Estilo Cursiva (Italic) */
    @font-face {
        font-family: 'Montserrat';
        src: url('fonts/Montserrat-Italic.otf');
        font-weight: normal;
        font-style: italic;
    }

    /* 2. Aplicarla a tus textos */
    body {
        font-family: 'Montserrat', sans-serif;
    }
}

body {
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

/* =========================================
   2. COMPONENTES REUTILIZABLES 
   (Títulos, Líneas y Botones Flotantes)
   ========================================= */

/* Decoración de Títulos */
.underline-green {
    width: 80px;
    height: 4px;
    background-color: #00a651;
    margin: 15px auto 0;
    border-radius: 10px;
}

.underline-red {
    width: 150px;
    height: 4px;
    background-color: #9e8864;
    margin-bottom: 25px;
}

.title-with-curve {
    color: #00a651;
    font-size: 2.5rem;
    position: relative;
    margin-bottom: 30px;
}

.title-with-curve::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 13px;
    width: 130px;
    height: 5px;
    background: #ed1c24;
    border-radius: 50%;
}

/* Iconos Flotantes (Instagram y WhatsApp) */
.floating-contact {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    /* Aumenta este valor si quieres más aire entre botones */
    gap: 18px;

    z-index: 2000;
    align-items: center;
    /* Centra el cuadrado con los círculos */
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s;
    background-color: #fff;
    position: relative;
}

.floating-btn:hover {
    transform: scale(1.1);
}

.floating-btn::before {
    content: attr(data-label);
    position: absolute;
    right: 70px;
    background: #fff;
    color: #333;
    padding: 5px 12px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

.floating-btn.whatsapp {
    background-color: #00a651;
}

.floating-btn.whatsapp img {
    width: 100%;
    height: 100%;
}

.floating-btn.instagram {
    background-color: #ed1c24;
}

.floating-btn.instagram img {
    width: 100%;
    height: 100%;
}

.floating-btn img {
    width: 35px;
    height: 35px;
    filter: brightness(0) invert(1);
}

/* --- BOTÓN VOLVER ARRIBA (CUADRADO EN COLUMNA) --- */
.btn-top {
    /* Mantenemos el tamaño para que combine en ancho */
    width: 60px;
    height: 60px;
    background-color: #00a651;
    /* Verde Tecnijardines */
    display: flex;
    align-items: center;
    justify-content: center;
    /* ESTA ES LA CLAVE: Cambiar 50% por un valor fijo */
    border-radius: 12px;
    /* Esquinas redondeadas, pero forma cuadrada */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    z-index: 2000;
    /* Efecto de aparición (controlado por JS) */
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8);
    transition: all 0.3s ease;
    /* Aseguramos que no tenga márgenes raros */
    margin: 0;
}

/* Clase activa para el scroll */
.btn-top.show {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.btn-top img {
    width: 25px;
    /* Flecha minimalista */
    filter: brightness(0) invert(1);
    /* Flecha blanca */
}

/* Efecto hover sutil */
.btn-top:hover {
    transform: scale(1.05);
    /* Crece un poquito menos que los circulares */
    background-color: #00a651;
    /* Verde más claro */
}

/* =========================================
   3. NAVEGACIÓN (Navbar)
   ========================================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-weight: bold;
    font-size: 1.5rem;
    color: #00a651;
}

.logo img {
    height: 50px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    text-decoration: none;
    color: #555;
    transition: color 0.3s;
    font-weight: 500;
}

.nav-links a:hover {
    color: #00a651;
}

.btn-quote {
    background: #ed1c24;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: background 0.3s;
}

/* =========================================
   4. PÁGINA: INICIO
   ========================================= */

/* Hero Section */
.hero {
    height: 70vh;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
        url('../images/_MG_0091.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero h1 {
    font-size: 3.5rem;
}

/* About Home (Tarjeta Quiénes Somos) */
.about-home {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.about-flex-home {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.about-left-brand {
    flex: 1;
    text-align: center;
}

.brand-logo-featured img {
    max-width: 160px;
    margin-top: 15px;
    right: -8000px;
}

.slogan-brand {
    font-weight: bold;
    color: #000000;
    font-size: 0.9rem;
    margin-top: 5px;
}

.card-about-home {
    background: white;
    padding: 45px;
    border-radius: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    flex: 1.5;
}

.card-about-home p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 25px;
    text-align: justify;
}

.btn-container-right {
    display: flex;
    justify-content: flex-end;
}

.btn-red-rounded {
    background-color: #cec6bc;
    color: white;
    padding: 12px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.85rem;
    transition: 0.3s ease;
}

.btn-red-rounded:hover {
    background-color: #00a651;
    transform: translateY(-2px);
}

/* Blog Destacado en Home */
.home-blog-featured {
    background-color: #eaf4ed;
    padding: 80px 10%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.blog-header-container-home {
    text-align: right;
    margin-bottom: 40px;
}

.blog-title-home {
    font-size: 3.5rem;
    color: #1a8a34;
    font-weight: bold;
}

.underline-red-home {
    width: 100%;
    height: 6px;
    background-color: #ed1c24;
    border-radius: 50%;
}

.blog-card-home {
    background: white;
    display: flex;
    align-items: center;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 1500px;
    width: 100%;
    padding: 20px;
    margin-right: auto;
    margin-left: 10px;
}

.blog-card-home {
    text-align: justify;
}

.blog-card-image-home {
    flex: 0 0 300px;
    margin-left: -50px;
}

.blog-card-image-home img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.2);
    margin-left: 15%;
}

.blog-card-content-home {
    padding: 20px 40px;
    margin-left: 50px;

}

/* Sección Clientes */
.clients-section {
    padding: 60px 10%;
    background-color: #fff;
    text-align: left;
}

.clients-title {
    font-size: 3rem;
    color: #00a651;
    font-weight: bold;
    margin-bottom: 40px;
}

.carousel-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
}

.clients-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    overflow-x: auto;
}

.clients-grid img {
    width: 18%;
    height: 18%;
}

.btn-clients-red {
    display: inline-block;
    background-color: #9e8864;
    color: white;
    padding: 15px 40px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(230, 57, 70, 0.4);
}

/* =========================================
   5. PÁGINA: NOSOTROS
   ========================================= */
.main-content-nosotros {
    background-color: #f0f4f1;
    padding-top: 50px;
}

.about-top {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
}

.about-card-intro {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    flex: 1.5;
}

.about-card-intro {
    text-align: justify;
}

.about-image-mask {
    flex: 1;
    position: relative;
}

.about-image-mask img {
    width: 100%;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    border: 5px solid white;
}

/* Seguridad Social y Normativas */
.security-section {
    background-color: #00a651;
    color: white;
    padding: 60px 0;
    margin: 50px 0;
}

.security-flex {
    display: flex;
    align-items: center;
    gap: 40px;
}

.security-text p {
    text-align: justify;
}

.security-icon img {
    width: 120px;
}

/* Misión y Visión */
.mivi-section {
    display: flex;
    gap: 30px;
    margin-bottom: 60px;
}

.mivi-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    flex: 1;
}

.mivi-card p {
    text-align: justify;
}

/* Valores Corporativos */
.values-bar {
    background-color: #9e8864;
    color: white;
    padding: 30px 0;
}

.values-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.values-title {
    font-size: 2rem;
    margin: 0;
}

.values-list {
    margin: 0;
    font-weight: 500;
}

/* =========================================
   6. PÁGINA: SERVICIOS
   ========================================= */
.services-home {
    padding: 100px 0 !important;
    text-align: center;
    display: block;
    width: 100%;
}

.service-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.service-item {
    background: #fff;
    padding: 40px 20px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border-top: 5px solid #00a651;
}

.service-item h3 {
    margin-bottom: 15px;
    color: #00a651;
}

.service-item p {
    text-align: justify;
}

.btn-secondary {
    margin-bottom: 15px;
    color: #00a651;
}

/* =========================================
   7. PÁGINA: GALERÍA
   ========================================= */
.gallery-infinite {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    padding: 40px 0;
}

.gallery-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.gallery-card:hover {
    transform: translateY(-8px);
}

.gallery-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.card-label {
    padding: 15px;
    font-weight: bold;
    color: #00a651;
    text-align: center;
    font-size: 1.1rem;
    background: #f9f9f9;
}

/* =========================================
   8. PÁGINA: BLOG
   ========================================= */
.blog {
    margin-top: 60px;
    text-align: center;
    font-size: 50px;
}

.blog-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 40px 0;
}

.blog-card {
    display: flex;
    background: #fff;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    align-items: center;
    transition: 0.3s;
}

.blog-card:hover {
    transform: scale(1.02);
}

.card-image,
.card-video {
    flex: 1;
    max-width: 400px;
    height: 300px;
}

.card-image img,
.card-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    flex: 2;
    padding: 30px;
}

.card-content h3 {
    color: #00a651;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.post-date {
    color: #9e8864;
    font-weight: bold;
    display: block;
    margin-bottom: 15px;
}

.underline-red-curve {
    width: 100px;
    height: 10px;
    border-bottom: 4px solid #ed1c24;
    border-radius: 50%;
    margin: 0 auto;
}

´ .card-content a {
    margin-bottom: 15px;
    color: #00a651;
}

/* =========================================
   9. PÁGINA: COTIZAR
   ========================================= */
.quote-container {
    text-align: center;
    padding: 60px 0;
}

.quote-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.step-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: 0.3s;
}

.step-card:hover {
    transform: translateY(-10px);
}

.btn-whatsapp-big {
    display: inline-block;
    background-color: #25d366;
    color: white;
    padding: 20px 40px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.3);
    transition: 0.3s;
}

/* =========================================
   10. FOOTER
   ========================================= */
.main-footer {
    background-color: #00a651;
    color: white;
    padding: 60px 10% 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.btn-work {
    display: inline-block;
    background-color: #ed1c24;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: bold;
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
    width: 100%;
    font-size: 0.9rem;
}

.social-link {
    margin-bottom: 15px;
    color: #ed1c24;
}

/* =========================================
   11. DISEÑO RESPONSIVO (Media Queries)
   ========================================= */

/* Tablets (Max 992px) */
@media (max-width: 992px) {
    .blog-card-home {
        flex-direction: column;
        padding-top: 50px;
    }

    .blog-card-image-home {
        margin-left: -30%;
        margin-top: -60px;
        width: 100%;
    }
}

/* Celulares (Max 768px) */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem 5%;
    }

    .nav-links {
        display: none;
    }

    .logo img {
        height: 40px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .about-flex-home,
    .blog-card,
    .about-top,
    .security-flex,
    .mivi-section,
    .values-flex {
        flex-direction: column;
        text-align: center;
    }

    .btn-container-right {
        justify-content: center;
    }

    .card-image,
    .card-video {
        max-width: 100%;
        height: 200px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .underline-red {
        margin: 0 auto 20px;
    }

    .blog-card-image-home img {
        margin-right: 100%;
    }

}

/* Pantallas muy pequeñas (Max 600px) */
@media (max-width: 600px) {
    .gallery-infinite {
        grid-template-columns: 1fr;
    }

}