:root {
    --primary: #FFB300;
    --primary-glow: rgba(255, 179, 0, 0.4);
    --secondary: #FF6F00;
    --dark: #050505;
    --dark-surface: #0E0E0E;
    --dark-card: #141414;
    --light: #FFFFFF;
    --text-muted: #888888;
    --accent: #FF3D00;
    --glass: rgba(5, 5, 5, 0.85);
    --transition-fast: all 0.2s ease;
    --transition-slow: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    --max-width: 1400px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--dark);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
.logo-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 100px 0;
}

.section.alternate {
    background-color: var(--dark-surface);
}

.highlight {
    color: var(--primary);
}

.text-center {
    text-align: center;
}

.text-white {
    color: var(--light);
}

.bg-dark {
    background-color: var(--dark);
}

/* --- Header & Nav --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: #000000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-slow);
}

header.scrolled {
    padding: 0;
    background: #000000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px;
    /* Increased height for larger logo */
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

#nav-logo {
    height: 75px;
    /* Significantly larger logo */
    width: auto;
    border-radius: 50%;
    /* Since it's circular */
    border: 2px solid #FFFFFF;
    /* High contrast border for visibility on black */
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
    transition: var(--transition-fast);
}

#nav-logo:hover {
    transform: scale(1.05);
}

.logo-text-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-text {
    font-size: 1.8rem;
    line-height: 1;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: 2px;
}

.logo-subtext {
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--light);
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.8;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--light);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
}

/* --- Buttons --- */
.btn-primary,
.btn-primary-lg,
.btn-primary-block {
    background-color: var(--primary);
    color: var(--dark);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    display: inline-block;
}

.btn-primary-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-primary-block {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
}

.btn-primary:hover,
.btn-primary-lg:hover,
.btn-primary-block:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(249, 168, 37, 0.3);
}

.btn-outline-lg {
    background: transparent;
    color: var(--light);
    border: 2px solid var(--light);
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.btn-outline-lg:hover {
    background: var(--light);
    color: var(--dark);
}

/* --- Hero Section --- */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: url('./foto1.jpg') no-repeat center center / cover;
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 179, 0, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 111, 0, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle at center, black, transparent 80%);
    z-index: 0;
}

#hero h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 0.9;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: -2px;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 1000px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.9) 30%, rgba(0, 0, 0, 0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
}

.hero-badge {
    background: rgba(255, 179, 0, 0.05);
    border: 1px solid rgba(255, 179, 0, 0.3);
    color: var(--primary);
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 2rem;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px var(--primary);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

#hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 2rem;
}

#hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid var(--text-muted);
    border-radius: 20px;
    position: relative;
}

.mouse::after {
    content: '';
    width: 4px;
    height: 8px;
    background: var(--primary);
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        transform: translate(-50%, 0);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translate(-50%, 15px);
        opacity: 0;
    }
}

/* --- Grid & Cards --- */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.section-subtitle {
    color: var(--text-muted);
    margin-bottom: 4rem;
    font-size: 1.1rem;
}

.mision-vision-card {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    background: var(--dark-surface);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary);
    transition: var(--transition);
}

.mision-vision-card:hover {
    transform: translateX(10px);
    background: #252525;
}

.card-icon-img {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--primary);
}

.card-icon-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-icon svg {
    width: 30px;
}

/* --- Services --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    cursor: pointer;
    background: var(--dark-card);
    padding: 3.5rem 2.5rem;
    border-radius: 0px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-top: 3px solid transparent;
    transition: var(--transition-slow);
    text-align: left;
    position: relative;
}

.service-card:hover {
    transform: translateY(-15px);
    border-top-color: var(--primary);
    background: #1a1a1a;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    filter: grayscale(1);
    transition: var(--transition-fast);
}

.service-icon img {
    height: 60px;
    width: auto;
}

.service-card:hover .service-icon img {
    filter: grayscale(0);
}

.service-card:hover .service-icon {
    filter: grayscale(0) drop-shadow(0 0 10px var(--primary-glow));
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-card p {
    color: var(--text-muted);
}

/* --- Eco Section --- */
.eco-list {
    list-style: none;
    margin-top: 2rem;
}

.eco-list li {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.list-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.placeholder-img,
.about-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    background: linear-gradient(45deg, var(--dark-surface), #252525);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.placeholder-img-lg,
.eco-img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    background: linear-gradient(-45deg, var(--dark-surface), #333);
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.image-stack {
    position: relative;
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--primary);
    padding: 1.5rem;
    border-radius: 15px;
    color: var(--dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 10px 30px rgba(249, 168, 37, 0.4);
}

.experience-badge .number {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* --- Stats --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.stat-item {
    padding: 3rem;
    background: var(--dark-surface);
    border-radius: 20px;
}

.stat-num {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Contact --- */
.contact-details {
    margin-top: 3rem;
}

.detail-item {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 2rem;
    align-items: center;
}

.detail-icon {
    width: 45px;
    height: 45px;
    background: var(--dark-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.2rem;
}

.phones {
    display: flex;
    flex-direction: column;
}

.phones a,
.detail-item a {
    color: var(--light);
    text-decoration: none;
    transition: var(--transition);
}

.phones a:hover,
.detail-item a:hover {
    color: var(--primary);
}

.contact-form {
    background: var(--dark-surface);
    padding: 3rem;
    border-radius: 20px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--light);
    font-family: inherit;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
}

/* --- Footer --- */
footer {
    padding: 4rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- WhatsApp --- */
.whatsapp-btn {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    z-index: 999;
    transition: var(--transition);
}

.whatsapp-btn:hover {
    transform: scale(1.1) rotate(5deg);
    background-color: #20BA5A;
}

/* --- Modal Styles --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    overflow-y: auto;
}

.modal-content {
    background-color: var(--dark-card);
    margin: 10% auto;
    padding: 3rem;
    border: 1px solid var(--primary);
    width: 80%;
    max-width: 800px;
    border-radius: 4px;
    position: relative;
    animation: modalIn 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    color: var(--light);
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition-fast);
}

.close-modal:hover {
    color: var(--primary);
}

#modal-body h2 {
    color: var(--primary);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

#modal-body .modal-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.modal-header-flex {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.modal-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    width: 100%;
}

.modal-featured-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: var(--transition-fast);
}

.modal-featured-img:hover {
    transform: scale(1.02);
}

#modal-body p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.modal-features {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.modal-features li {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-left: 3px solid var(--primary);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 30px;
    height: 2px;
    background: var(--light);
    transition: var(--transition-fast);
    transform-origin: center;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 992px) {
    #hero h1 {
        font-size: 3.5rem;
    }

    .grid-2 {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 100%;
        background: #000;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        transform: translateX(100%);
        transition: var(--transition-slow);
        display: flex;
        /* Override display: none */
        z-index: 999;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links li a {
        font-size: 1.5rem;
        text-transform: uppercase;
        letter-spacing: 2px;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    header {
        background: #000;
    }

    nav {
        height: 80px;
    }

    #nav-logo {
        height: 55px;
    }

    .logo-text {
        font-size: 1.4rem;
    }

    .logo-subtext {
        font-size: 0.5rem;
        letter-spacing: 1px;
    }

    #hero {
        text-align: center;
        padding-top: 80px;
    }

    #hero h1 {
        font-size: 2.8rem;
    }

    .hero-actions {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-badge {
        justify-content: center;
    }

    #hero p {
        margin: 0 auto 2rem;
    }

    .section {
        padding: 60px 0;
    }

    .mision-vision-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 2rem 1rem;
    }

    .card-icon-img {
        width: 120px;
        height: 120px;
        margin-bottom: 1.5rem;
    }

    .service-card {
        padding: 2rem 1.5rem;
    }

    .modal-content {
        width: 95%;
        padding: 1.5rem;
        margin: 5% auto;
    }

    .modal-gallery {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        gap: 1rem;
    }

    .stat-item {
        padding: 2rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .whatsapp-btn {
        width: 50px;
        height: 50px;
        right: 20px;
        bottom: 20px;
    }
}