@import url('fonts.css');

:root {
    --color-primary: #0A2E0E;
    --color-secondary: #70BB05;
    --color-accent: #C4E500;
    --color-dark: #1A1A1A;
    --color-light: #F7F9F6;
    --color-white: #FFFFFF;
    --color-text: #333333;
    
    --font-heading: 'Roboto Slab', serif;
    --font-body: 'Open Sans', sans-serif;
    
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow: 0 10px 30px rgba(10, 46, 14, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-weight: 700;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.section-padding { padding: 100px 0; }

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.8rem;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--color-secondary);
    border-radius: 2px;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: var(--color-white);
    padding: 15px 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
    transition: var(--transition);
}

header.scrolled {
    padding: 8px 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 65px;
    transition: var(--transition);
}

header.scrolled .logo img {
    height: 55px;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    color: var(--color-primary);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-secondary);
    transition: var(--transition);
}

.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: var(--color-secondary); }

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle .bar {
    width: 30px;
    height: 3px;
    background-color: var(--color-primary);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--color-primary);
    margin-top: 95px;
}

.hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 {
    color: var(--color-white);
    font-size: 4.5rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.hero h1 span {
    color: var(--color-accent);
}

.hero p {
    color: var(--color-white);
    font-size: 1.5rem;
    font-family: var(--font-heading);
    font-weight: 400;
}

/* Nosotros */
.about {
    background: var(--color-white);
    position: relative;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #555;
}

.about-highlight {
    background: var(--color-light);
    padding: 20px;
    border-left: 4px solid var(--color-secondary);
    font-style: italic;
    font-weight: 600;
    color: var(--color-primary);
    margin-top: 30px;
}

/* Filosofia (Mision Vision) */
.filosofia {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 60px;
}

.fil-card {
    background: var(--color-secondary);
    color: var(--color-white);
    padding: 50px 40px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.fil-card:hover {
    transform: translateY(-10px);
    background: var(--color-primary);
}

.fil-card svg {
    margin-bottom: 20px;
    color: var(--color-accent);
}

.fil-card h3 {
    color: var(--color-white);
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.fil-card p {
    font-size: 1.05rem;
    line-height: 1.8;
}

/* Servicios Core */
.servicios {
    background: var(--color-light);
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.serv-card {
    background: var(--color-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.serv-img {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.serv-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.serv-card:hover .serv-img img {
    transform: scale(1.08);
}

.serv-content {
    padding: 40px 30px 30px;
    position: relative;
}

.serv-icon {
    position: absolute;
    top: -30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 2;
}

.serv-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.serv-content p {
    font-size: 0.95rem;
    color: #666;
}

/* Sectores SAT */
.sectores {
    background: var(--color-white);
}

.sec-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.sec-item {
    display: flex;
    background: var(--color-light);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    transition: var(--transition);
}

.sec-item:hover {
    box-shadow: var(--shadow);
    transform: translateY(-5px);
}

.sec-img {
    width: 200px;
    flex-shrink: 0;
}

.sec-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sec-info {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sec-info h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.sec-info p {
    font-size: 0.9rem;
    color: #555;
}

/* Footer */
footer {
    background: var(--color-primary);
    color: rgba(255,255,255,0.8);
    position: relative;
    padding-bottom: 20px;
    padding-top: 10px; /* Space for the CTA if it goes up */
}

.footer-shape {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: translateY(-99%);
}

.footer-shape svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

/* Footer CTA */
.footer-cta {
    background: var(--color-secondary);
    border-radius: 20px;
    padding: 50px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    margin-top: -80px; /* Pull it up into the previous section */
    margin-bottom: 80px; /* Push the grid down */
    box-shadow: 0 20px 40px rgba(112, 187, 5, 0.3);
    position: relative;
    z-index: 2;
    background-image: radial-gradient(circle at 100% 0%, rgba(255,255,255,0.15) 0%, transparent 50%);
}

.cta-content h2 {
    color: var(--color-white);
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.cta-content p {
    color: var(--color-white);
    font-size: 1.05rem;
    max-width: 600px;
    opacity: 0.9;
}

.btn-cta {
    background: var(--color-white);
    color: var(--color-secondary);
    padding: 18px 40px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    white-space: nowrap;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(0,0,0,0.15);
    background: var(--color-primary);
    color: var(--color-white);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 50px;
}

.footer-brand img {
    height: 80px;
    margin-bottom: 30px;
    background: var(--color-white);
    padding: 12px 20px;
    border-radius: 10px;
    display: inline-block;
}

.footer-brand p {
    margin-bottom: 30px;
    line-height: 1.8;
    padding-right: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    color: var(--color-white);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--color-secondary);
    transform: translateY(-3px);
}

.footer-col h4 {
    color: var(--color-accent);
    font-size: 1.3rem;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--color-secondary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    position: relative;
    padding-left: 15px;
}

.footer-links a::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-secondary);
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--color-white);
}

.footer-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-list {
    list-style: none;
}

.footer-list li {
    margin-bottom: 20px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.footer-icon-sm {
    color: var(--color-secondary);
    margin-top: 3px;
    flex-shrink: 0;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
}

/* Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
    .menu-toggle { display: flex; }
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--color-white);
        flex-direction: column;
        align-items: center;
        padding: 30px 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.4s ease;
    }
    .nav-links.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    .hero h1 { font-size: 3rem; }
    .about-grid, .filosofia { grid-template-columns: 1fr; }
    .servicios-grid { grid-template-columns: 1fr; }
    .sec-grid { grid-template-columns: 1fr; }
    .sec-item { flex-direction: column; }
    .sec-img { width: 100%; height: 200px; }
    
    .footer-cta {
        flex-direction: column;
        text-align: center;
        padding: 40px 30px;
    }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
}
