/* ======================================================
   RESET & CORE
====================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    font-family: 'Rubik', Arial, sans-serif;
    line-height: 1.6;
    color: #333333;
    background-color: #fafafa;
    -webkit-font-smoothing: antialiased;
}

/* ======================================================
   TYPOGRAPHY
====================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Manrope', sans-serif;
    margin: 0 0 0.75em 0;
    line-height: 1.25;
    color: #222222;
    text-align: center;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.15);
}
p {
    margin: 0 0 1em;
}
a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover,
a:focus {
    color: var(--color-accent2);
    text-decoration: underline;
}

/* ======================================================
   THEME – TETRADA
====================================================== */
:root {
    --color-primary: #0066FF;   /* Azul vibrante */
    --color-secondary: #FF6600; /* Naranja intenso */
    --color-accent1: #26C485;   /* Verde brillante */
    --color-accent2: #B83280;   /* Magenta fuerte */
    --color-dark: #121212;
    --color-light: #FFFFFF;

    --shadow-soft: 0 4px 14px rgba(0,0,0,0.1);
    --shadow-strong: 0 8px 26px rgba(0,0,0,0.15);

    --radius: 8px;
    --transition: all 0.35s ease;
}

/* ======================================================
   LAYOUT HELPERS
====================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin-right: auto;
    margin-left: auto;
    padding: 0 1.25rem;
}
.is-two-thirds {
    width: 100%;
}
.section {
    padding: 4rem 0;
    position: relative;
}
.parallax {
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
}

/* ======================================================
   BUTTONS
====================================================== */
.btn,
button,
input[type="submit"] {
    display: inline-block;
    padding: 0.75rem 2rem;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: .05rem;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    color: var(--color-light);
    background: var(--color-secondary);
    box-shadow: var(--shadow-soft);
}
.btn-primary {
    background: var(--color-primary);
}
.btn:hover,
button:hover,
input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-strong);
}
.btn:active {
    transform: translateY(0);
}

/* ======================================================
   HEADER & NAV
====================================================== */
.site-header {
    width: 100%;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(6px);
    box-shadow: var(--shadow-soft);
    position: sticky;
    top: 0;
    z-index: 997;
}
.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
}
.logo {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--color-primary);
}
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}
.main-nav a {
    font-weight: 500;
    color: #333333;
}
.main-nav a:hover {
    color: var(--color-secondary);
}
/* Burger */
.nav-toggle {
    display: none;
}
.burger {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}
.burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #333333;
    transition: var(--transition);
}

/* ======================================================
   HERO
====================================================== */
.hero-section {
    min-height: 70vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
    color: var(--color-light);
}
.hero-content {
    text-align: center;
    margin: 0 auto;
}
.hero-title {
    font-size: clamp(2rem,5vw,3.25rem);
}
.hero-text {
    font-size: 1.125rem;
    max-width: 680px;
    margin: 0 auto 2rem;
}

/* ======================================================
   FEATURES
====================================================== */
.features-section .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
    gap: 2rem;
}
.card {
    background: var(--color-light);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: var(--transition);
}
.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-strong);
}
.card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0 auto;
}
.card-content {
    padding: 1.5rem;
    text-align: center;
}

/* ======================================================
   SUSTAINABILITY
====================================================== */
.sustainability-section {
    background-size: cover;
    background-repeat: no-repeat;
    color: #333333;
}
.sustainability-section p {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* ======================================================
   MEDIA – GALLERY
====================================================== */
.media-section .media-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
    gap: 2rem;
}
.media-section .card-image {
    height: 200px;
}
/* ======================================================
   CASE STUDIES
====================================================== */
.case-section .case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(320px,1fr));
    gap: 2rem;
}
.case-section .card-image {
    height: 240px;
}

/* ======================================================
   CONTACT
====================================================== */
.contact-section form {
    max-width: 640px;
    margin: 0 auto;
    display: grid;
    gap: 1rem;
}
.form-group {
    display: flex;
    flex-direction: column;
}
.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
}
input[type="text"],
input[type="email"],
textarea {
    padding: 0.75rem 1rem;
    border: 1px solid #dddddd;
    border-radius: var(--radius);
    font-family: 'Rubik', sans-serif;
    font-size: 1rem;
    resize: vertical;
    transition: border-color 0.3s ease;
}
input:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0,102,255,0.15);
}

/* ======================================================
   FOOTER
====================================================== */
.site-footer {
    background: var(--color-dark);
    color: var(--color-light);
    padding: 3rem 0 2rem;
}
.footer-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}
.footer-nav a,
.social-links a {
    color: var(--color-light);
    margin: 0 0.75rem;
    font-weight: 500;
}
.footer-nav a:hover,
.social-links a:hover {
    color: var(--color-accent1);
    text-decoration: underline;
}
.footer-bottom {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.875rem;
    opacity: 0.85;
}

/* ======================================================
   SOCIAL LINK ICON-LIKE STYLES (TEXT ONLY)
====================================================== */
.social-links a {
    position: relative;
    padding-left: 1.75rem;
}
.social-links a::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-secondary);
    font-size: 1.25rem;
    line-height: 1;
    transition: var(--transition);
}
.social-links a:hover::before {
    transform: scale(1.4);
}

/* ======================================================
   MODAL
====================================================== */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 998;
}
.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}
.modal-content img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
}
.close {
    position: absolute;
    top: -36px;
    right: -6px;
    font-size: 2rem;
    color: var(--color-light);
    cursor: pointer;
    transition: var(--transition);
}
.close:hover {
    transform: rotate(90deg);
}

/* ======================================================
   ANIMATIONS & SCROLL EFFECTS
====================================================== */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .8s ease-out, transform .8s ease-out;
}
.fade-up.appear {
    opacity: 1;
    transform: translateY(0);
}

/* ======================================================
   READ-MORE LINKS
====================================================== */
.read-more {
    display: inline-block;
    margin-top: 1rem;
    color: var(--color-secondary);
    font-weight: 600;
    position: relative;
}
.read-more::after {
    content: '→';
    margin-left: 6px;
    transition: transform 0.3s ease;
}
.read-more:hover::after {
    transform: translateX(4px);
}

/* ======================================================
   SUCCESS PAGE
====================================================== */
.success-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 2rem;
    text-align: center;
}

/* ======================================================
   PRIVACY / TERMS
====================================================== */
.legal-page {
    padding: 100px 1.25rem 3rem;
    max-width: 900px;
    margin: 0 auto;
}

/* ======================================================
   MEDIA QUERIES
====================================================== */
@media (max-width: 768px) {
    .main-nav {
        position: fixed;
        inset: 0 0 0 auto;
        background: rgba(255,255,255,0.97);
        backdrop-filter: blur(4px);
        transform: translateX(100%);
        transition: var(--transition);
        padding: 5rem 2rem;
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }
    .nav-toggle:checked + .burger + .main-nav {
        transform: translateX(0);
    }
    .burger {
        display: flex;
    }
    .nav-toggle:checked + .burger span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }
    .nav-toggle:checked + .burger span:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle:checked + .burger span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }
}

/* ======================================================
   UTILITY CLASSES
====================================================== */
.text-center { text-align:center; }
.mt-0 { margin-top:0; }
.mt-1 { margin-top:1rem; }
.mb-0 { margin-bottom:0; }
.mb-1 { margin-bottom:1rem; }

@media (max-width: 768px) {
    nav, .burger{
        display: none!important;
    }

}