/* =========================
   VARIABLES CORPORATIVAS
========================= */

:root {
    --primary-blue: #1e6fa8;
    --primary-green: #1f9a8a;
    --dark: #111111;
    --light: #f4f7f8;
    --gray: #6b7280;
    --white: #ffffff;
}

/* =========================
   BASE
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--white);
    color: var(--dark);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* =========================
   NAVBAR
========================= */

.header {
    background: var(--white);
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
}

.logo {
    height: 55px;
}

.nav a {
    margin: 0 15px;
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: 0.3s;
}

.nav a:hover {
    color: var(--primary-green);
}

.btn-primary {
    background: var(--primary-green);
    color: var(--white);
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: 0.3s;
}

.btn-primary:hover {
    background: var(--primary-blue);
}

.btn-secondary {
    display: inline-block;
    margin-top: 20px;
    background: var(--primary-blue);
    color: var(--white);
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 4px;
    transition: 0.3s;
}

.btn-secondary:hover {
    background: var(--primary-green);
}

/* =========================
   HERO PROFESIONAL
========================= */

.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

/* SLIDER */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* IMÁGENES */
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transition: opacity 1.5s ease;
}

.hero-slide.active {
    opacity: 1;
}

/* CAPA OSCURA */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 40, 30, 0.55);
    z-index: 1;
}

/* TEXTO */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 900px;
    margin: auto;
    top: 50%;
    transform: translateY(-50%);
}


/* =========================
   SLIDER INSTITUCIONAL
========================= */

.image-slider {
    overflow: hidden;
    background: var(--light);
    padding: 30px 0;
}

.slider-track {
    display: flex;
    width: calc(250px * 10);
    animation: scrollSlider 30s linear infinite;
}

.slider-track img {
    width: 250px;
    height: 160px;
    object-fit: cover;
    margin-right: 20px;
    border-radius: 6px;
}

@keyframes scrollSlider {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* =========================
   ABOUT
========================= */

.about {
    padding: 80px 0;
    background: var(--light);
    text-align: center;
}

.about h2 {
    font-size: 30px;
    margin-bottom: 25px;
    color: var(--primary-green);
}

.about p {
    max-width: 800px;
    margin: auto;
    color: var(--gray);
}

.about-gallery {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.about-gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
}

/* =========================
   SERVICES
========================= */

.services {
    padding: 100px 0;
    background: var(--white);
}

.services h2 {
    text-align: center;
    font-size: 30px;
    margin-bottom: 60px;
    color: var(--primary-green);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.service-card {
    background: var(--white);
    padding: 30px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    transition: 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-green);
}

.service-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 15px;
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--primary-blue);
}

.service-card p {
    color: var(--gray);
}

/* =========================
   CTA
========================= */

.cta {
    background: var(--primary-green);
    color: var(--white);
    text-align: center;
    padding: 80px 0;
}

.cta h2 {
    margin-bottom: 25px;
}

/* =========================
   FOOTER
========================= */

.footer {
    background: var(--dark);
    color: #d1d5db;
    text-align: center;
    padding: 40px 0;
    font-size: 14px;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .hero h1 {
        font-size: 30px;
    }
}
