/* root Variables */
:root {
    /* Color Palette */
    --color-primary: #00A8B5;
    /* Teal / Azul Turquesa */
    --color-primary-dark: #008791;
    --color-secondary: #4CAF50;
    /* Emerald Green */
    --color-tertiary: #8BC34A;
    /* Lime Green */

    /* Neutral Colors */
    --color-bg: #FCFCFC;
    --color-bg-light: #F4F7F6;
    --color-bg-dark: #1A292C;
    /* Deep dark teal/gray for contrast */
    --color-text-main: #2D3748;
    --color-text-muted: #718096;
    --color-white: #FFFFFF;

    /* Gradients */
    --grad-green: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-tertiary) 100%);
    --grad-teal: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
    --grad-hero: linear-gradient(to right, rgba(17, 24, 34, 0.85) 0%, rgba(17, 24, 34, 0.6) 100%);

    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing & Borders */
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --box-shadow-hover: 0 15px 40px rgba(0, 168, 181, 0.15);

    /* Transition */
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset & Basic Setup */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-main);
    background-color: var(--color-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-text-main);
    line-height: 1.2;
}

h1 span,
h2 span {
    background: var(--grad-green);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    padding: 100px 0;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    background-color: rgba(0, 168, 181, 0.1);
    color: var(--color-primary);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.section-tag.tag-light {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--color-white);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    max-width: 700px;
}

.center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.center .section-desc {
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: var(--grad-green);
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-white);
}

.btn-secondary:hover {
    background-color: var(--color-white);
    color: var(--color-primary);
}

/* Glassmorphism */
.glass-effect {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
}

/* Hover effects */
.hover-float {
    transition: var(--transition);
}

.hover-float:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
}

/* UTILS */
.bg-light {
    background-color: var(--color-bg-light);
}

.bg-dark {
    background-color: var(--color-bg-dark);
}

.text-white {
    color: var(--color-white);
}

.text-white h1,
.text-white h2,
.text-white h3,
.text-white p {
    color: var(--color-white);
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 15px 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.navbar.scrolled .nav-link {
    color: var(--color-text-main);
}

.navbar.scrolled .menu-toggle {
    color: var(--color-text-main);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 48px;
    width: auto;
    transition: var(--transition);
}

.footer-logo-img {
    height: 64px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-link {
    color: var(--color-white);
    /* White default until scrolled */
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--color-tertiary);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--color-white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Use a stunning CSS gradient + a placeholder image via URL */
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('imagenes/imagen1.jpg') center/cover no-repeat;
    color: var(--color-white);
    text-align: center;
    padding-top: 80px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: var(--grad-hero);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
    color: var(--color-white);
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
}

.scroll-indicator a {
    color: var(--color-white);
    font-size: 1.5rem;
    opacity: 0.8;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-15px);
    }

    60% {
        transform: translateY(-7px);
    }
}

/* --- Quiénes Somos --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--color-text-muted);
    font-size: 1.05rem;
}

.feature-bullets {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.bullet {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bullet-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 168, 181, 0.1);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.bullet-text {
    font-weight: 600;
    color: var(--color-text-main);
}

.about-image-wrapper {
    position: relative;
    height: 100%;
    min-height: 400px;
}

.about-img-bg {
    position: absolute;
    inset: 0;
    border-radius: var(--border-radius-lg);
    background: url('imagenes/imagen 2.jpg') center/cover no-repeat;
    box-shadow: var(--box-shadow);
}

.about-card {
    position: absolute;
    bottom: -30px;
    left: -30px;
    z-index: 2;
    padding: 30px;
    max-width: 280px;
    background: rgba(255, 255, 255, 0.9);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--color-tertiary);
    margin-bottom: 15px;
}

.about-card h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.about-card p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* --- Misión y Visión --- */
.mv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.mv-card {
    padding: 50px;
}

.mv-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    background: var(--grad-green);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 25px;
}

.mv-card h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.mv-card p {
    color: var(--color-text-muted);
}

/* --- Servicios --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: var(--color-white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-hover);
    border-color: rgba(0, 168, 181, 0.2);
}

.service-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(0, 168, 181, 0.1);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 25px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--color-primary);
    color: var(--color-white);
}

.service-card h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* --- Objetivos Estratégicos --- */
.objectives {
    position: relative;
    z-index: 1;
}

.objectives-content {
    max-width: 600px;
}

.obj-list {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.obj-item {
    display: flex;
    gap: 20px;
}

.obj-icon {
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--color-tertiary);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 0 15px rgba(139, 195, 74, 0.4);
}

.obj-item h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--color-white);
}

.obj-item p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.obj-decoration {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 45%;
    background: url('imagenes/imagen 3.jpg') center/cover;
    z-index: -1;
    border-top-left-radius: 200px;
    border-bottom-left-radius: 200px;
}

/* --- Clientes Satisfechos --- */
.clients-wheel {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
    padding: 20px;
}

.client-logo {
    width: 220px;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    background: var(--color-white);
    border-radius: var(--border-radius);
    padding: 20px;
    gap: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.c-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--color-text-main);
    text-align: center;
    transition: var(--transition);
    margin-bottom: 5px;
}

.client-logo-img {
    max-height: 50px;
    max-width: 150px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: var(--transition);
    margin-top: auto;
}

#logo-consulcons {
    transform: scale(1.4);
    margin-bottom: 5px;
}

.client-logo:hover .client-logo-img {
    filter: grayscale(0%);
    opacity: 1;
}

.client-logo:hover .c-name {
    color: var(--color-primary);
}

/* --- Contact Form Section --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.mt-4 {
    margin-top: 40px;
}

.info-blocks {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.info-block {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.info-block .icon {
    font-size: 1.5rem;
    color: var(--color-primary);
    background: rgba(0, 168, 181, 0.1);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.info-block h5 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--color-text-main);
}

.info-block p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.contact-form-wrapper {
    padding: 40px;
    background: white;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: var(--color-text-main);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--color-bg-light);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 168, 181, 0.1);
}

.btn-block {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 15px;
    font-size: 1.1rem;
    margin-top: 10px;
}

/* --- Footer --- */
.footer {
    background-color: #111822;
    /* Very dark */
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-brand {
    padding-right: 40px;
}

.footer-logo {
    margin-bottom: 20px;
    display: inline-block;
}

.footer-tagline {
    color: var(--color-tertiary);
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.brand-desc {
    font-size: 0.95rem;
}

.footer h4 {
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--color-tertiary);
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-list i {
    color: var(--color-primary);
    margin-top: 4px;
}

.contact-list a:hover {
    color: var(--color-tertiary);
}

.footer-legal p {
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    font-size: 0.9rem;
}

/* --- Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.8s ease-out;
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.8s ease-out;
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.delay-1 {
    transition-delay: 0.15s;
}

.delay-2 {
    transition-delay: 0.3s;
}

.delay-3 {
    transition-delay: 0.45s;
}

/* Responsive Media Queries */
@media (max-width: 992px) {

    .about-grid,
    .mv-grid {
        grid-template-columns: 1fr;
    }

    .about-image-wrapper {
        min-height: 500px;
        order: -1;
    }

    .obj-decoration {
        display: none;
    }

    .objectives-content {
        max-width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: var(--color-white);
        flex-direction: column;
        justify-content: center;
        padding: 40px;
        transition: var(--transition);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 30px;
        text-align: center;
        margin-bottom: 40px;
    }

    .nav-link {
        color: var(--color-text-main);
        font-size: 1.2rem;
    }

    .menu-toggle {
        display: block;
        z-index: 1001;
    }

    .navbar.scrolled .menu-toggle {
        color: var(--color-text-main);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    /* Solución responsiva para Contacto y Formulario */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0;
    }

    .contact-form-wrapper {
        padding: 30px 20px;
        width: 100%;
        box-sizing: border-box;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        width: 100%;
        box-sizing: border-box;
    }
}