@import url('fonts.css');

:root {
    --color-primary: #1A3C38;
    --color-secondary: #F4D28D;
    --color-accent: #FF4D4D;
    --color-light: #FDFCF5;
    --color-white: #FFFFFF;
    --color-text: #2C3E3A;
    --color-gray: #F0EFE9;
    
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Quicksand', sans-serif;
    
    --transition: all 0.3s ease-in-out;
    --shadow: 0 10px 30px rgba(26, 60, 56, 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.7;
    overflow-x: hidden;
    font-size: 16px;
}

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: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

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

/* Typography Utilities */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

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

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

.btn-primary {
    display: inline-block;
    padding: 16px 35px;
    background: var(--color-accent);
    color: var(--color-white);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 50px;
    box-shadow: 0 10px 20px rgba(255, 77, 77, 0.2);
    border: 2px solid var(--color-accent);
}

.btn-primary:hover {
    background: transparent;
    color: var(--color-accent);
    box-shadow: none;
    transform: translateY(-2px);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 0;
    transition: var(--transition);
}

header.scrolled {
    background: var(--color-white);
    padding: 12px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

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

.logo img {
    height: 80px;
    transition: var(--transition);
    background: var(--color-white);
    border-radius: 50%;
    padding: 5px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

header.scrolled .logo img {
    height: 70px;
    box-shadow: none;
    background: transparent;
    padding: 0;
}

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

.nav-links a {
    color: var(--color-white);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    padding: 5px 0;
    transition: var(--transition);
}

header.scrolled .nav-links a {
    color: var(--color-primary);
}

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

.nav-links a:hover::before {
    width: 100%;
}

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

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

header.scrolled .menu-toggle .bar {
    background-color: var(--color-primary);
}

/* Hero */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    background-color: var(--color-primary);
    overflow: hidden;
}

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

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26,60,56,0.95) 0%, rgba(26,60,56,0.6) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 700px;
    color: var(--color-white);
}

.hero-tag {
    display: inline-block;
    padding: 8px 20px;
    background: var(--color-secondary);
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    margin-bottom: 25px;
}

.hero h1 {
    color: var(--color-white);
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 30px;
}

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

.hero p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.9;
    font-weight: 500;
}

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

.about-wrapper {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-img {
    flex: 1;
    position: relative;
}

.about-img img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.about-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: var(--color-white);
    padding: 30px;
    border-radius: 50%;
    box-shadow: var(--shadow);
    text-align: center;
    width: 160px;
    height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-badge strong {
    font-size: 3rem;
    color: var(--color-accent);
    font-family: var(--font-heading);
    line-height: 1;
}

.about-badge span {
    font-size: 0.9rem;
    color: var(--color-primary);
    font-weight: 600;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 2.8rem;
    margin-bottom: 25px;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 25px;
}

/* Grid de Productos / Actividades */
.productos {
    background: var(--color-light);
}

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

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

.prod-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(26, 60, 56, 0.15);
}

.prod-img {
    height: 220px;
    position: relative;
    overflow: hidden;
}

.prod-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.prod-card:hover .prod-img img {
    transform: scale(1.1);
}

.prod-tag {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--color-secondary);
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.8rem;
    padding: 5px 15px;
    border-radius: 30px;
    z-index: 2;
}

.prod-info {
    padding: 30px;
}

.prod-info h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

/* Footer Rediseñado */
footer {
    background: var(--color-primary);
    color: var(--color-light);
    padding: 100px 0 0 0;
    position: relative;
    overflow: hidden;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
    position: relative;
    z-index: 2;
    padding-bottom: 60px;
}

.footer-brand {
    background: var(--color-white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    transform: translateY(-50px);
}

.footer-brand img {
    height: 100px;
    margin-bottom: 20px;
}

.footer-brand p {
    color: var(--color-text);
    font-size: 1.05rem;
    line-height: 1.6;
}

.footer-col {
    padding-top: 20px;
}

.footer-col h4 {
    color: var(--color-secondary);
    font-size: 1.4rem;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--color-accent);
    border-radius: 2px;
}

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

.footer-col ul li {
    margin-bottom: 20px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
    font-size: 1.05rem;
    opacity: 0.9;
    transition: var(--transition);
}

.footer-col ul li:hover {
    opacity: 1;
    transform: translateX(5px);
}

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

.footer-huge-text {
    font-family: var(--font-heading);
    font-size: 15vw;
    font-weight: 800;
    color: rgba(255,255,255,0.03);
    text-align: center;
    line-height: 0.8;
    white-space: nowrap;
    position: absolute;
    bottom: -2vw;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    pointer-events: none;
}

.footer-bottom {
    text-align: center;
    padding: 25px 0;
    border-top: 1px solid rgba(244, 210, 141, 0.2);
    position: relative;
    z-index: 2;
    background: rgba(0,0,0,0.1);
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* 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%);
    }
    .nav-links a { color: var(--color-primary); }
    
    .hero h1 { font-size: 3rem; }
    .about-wrapper { flex-direction: column; }
    .about-badge { right: 20px; bottom: -20px; }
    .grid-masonry { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr; gap: 40px; }
}
