:root {
    --primary-color: #f7a02c;
    --hover-color: #df8a1f;
    --text-color: #333333;
    --light-bg: #f9f9fa;
    --white: #ffffff;
    --green-wa: #25d366;
    --border-color: #e5e5e5;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo img {
    height: 50px;
    border-radius: 50%;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
    margin-left: 30px;
    transition: color 0.3s;
    text-transform: uppercase;
}

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


.page-header {
    background: var(--light-bg);
    padding: 60px 20px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.2rem;
    color: #666;
}


.hero {
    position: relative;
    height: 85vh;
    min-height: 500px;
    background: url('img/Imagen%20Principal.webp') center center/cover no-repeat;
    display: flex;

    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

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

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    font-weight: 500;
}


.btn {
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--hover-color);
    transform: translateY(-2px);
}

.btn-danger {
    background-color: #ef4444;
    color: var(--white);
}

.btn-danger:hover {
    background-color: #dc2626;
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    text-decoration: none;
    display: inline-block;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}


.services-section,
.works-section {
    padding: 80px 20px;
    text-align: center;
    background-color: var(--white);
}

.services-section h2,
.works-section h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
    font-weight: 800;
}

.cards-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.card {
    background: var(--light-bg);
    border-radius: 20px;
    overflow: hidden;
    width: 350px;
    box-shadow: var(--shadow);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    text-align: left;
}

.card:hover {
    transform: translateY(-12px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.card-img {
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.card-content {
    padding: 30px;
}

.card-content h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.card-content p {
    color: #666;
    margin-bottom: 25px;
    font-size: 0.95rem;
}


.feature-section {
    padding: 80px 20px;
    background-color: var(--white);
}

.feature-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.feature-image {
    flex: 1;
    min-width: 300px;
}

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

.feature-text {
    flex: 1;
    min-width: 300px;
}

.feature-text h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    font-weight: 800;
}

.feature-text p {
    color: #555;
    margin-bottom: 25px;
}

.feature-text ul {
    list-style-type: none;
    margin-bottom: 30px;
}

.feature-text ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    color: #555;
}

.feature-text ul li::before {
    content: "•";
    color: var(--primary-color);
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -5px;
}


.works-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.work-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: left;
    height: 400px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.work-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.work-gallery {
    flex: 1;
    position: relative;
    background-color: #eee;
    overflow: hidden;
    min-width: 50%;
}

.work-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.work-gallery img.active {
    opacity: 1;
}

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: background 0.3s;
}

.nav-arrow:hover {
    background: rgba(0, 0, 0, 0.7);
}

.nav-arrow.prev {
    left: 10px;
}

.nav-arrow.next {
    right: 10px;
}

.work-dots {
    position: absolute;
    bottom: 15px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
}

.dot.active {
    background: white;
}

.work-content {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 50%;
}

.work-content h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.work-content p {
    color: #666;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.work-content ul {
    list-style: none;
    margin-top: 10px;
}

.work-content ul li {
    font-size: 0.95rem;
    color: #444;
    padding-left: 15px;
    position: relative;
    margin-bottom: 12px;
}

.work-content ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.pagination {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.page-btn {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    background: var(--white);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    color: #666;
    transition: all 0.3s;
}

.page-btn.active,
.page-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}



.login-screen {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-box {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: 350px;
    text-align: center;
}

.login-box h2 {
    margin-bottom: 25px;
}

.admin-input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
}

.admin-topbar {
    background: #222;
    color: white;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-nav a {
    color: #aaa;
    text-decoration: none;
    margin: 0 15px;
    font-weight: 500;
    padding-bottom: 5px;
}

.admin-nav a.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

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

.admin-card {
    background: var(--white);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.admin-card h3 {
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.admin-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.admin-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 14px;
}

.admin-preview {
    position: relative;
    border: 1px dashed #ccc;
    padding: 20px;
    border-radius: 12px;
    background: #fafafa;
    display: flex;
    justify-content: center;
}

.preview-badge {
    position: absolute;
    top: -12px;
    left: 20px;
    background: var(--green-wa);
    color: white;
    font-size: 12px;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 20px;
    z-index: 5;
}

.preview-work-card {
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 1000px;
}

.empty-gallery {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #999;
    font-size: 14px;
}

.admin-work-item {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    height: 200px;
}

.admin-work-img {
    width: 300px;
}

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

.admin-work-details {
    padding: 20px;
    flex: 1;
    position: relative;
}

.admin-work-details h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.admin-work-details p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}

.admin-work-details ul {
    list-style: none;
    font-size: 0.85rem;
}

.admin-work-details ul li::before {
    content: "- ";
}

.admin-work-actions {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
}


.footer {
    background-color: var(--light-bg);
    padding: 60px 20px 20px;
    border-top: 1px solid var(--border-color);
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-logo {
    text-align: center;
}

.footer-logo img {
    height: 70px;
    border-radius: 50%;
    margin-bottom: 10px;
}

.footer-logo h3 {
    font-weight: 800;
    font-size: 1.2rem;
}

.footer-contact h4,
.footer-social h4 {
    font-size: 1rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.footer-contact p {
    color: #666;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.email-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
}

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

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--white);
    color: #666;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.social-icons a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: #999;
    font-size: 0.85rem;
}

/* WhatsApp Button */
@keyframes doublePulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    30% {
        transform: scale(1.15);
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--green-wa);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease;
    animation: doublePulse 2.5s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.2);
    animation: none;
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .feature-container,
    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .feature-text ul li {
        text-align: left;
    }

    .social-icons {
        justify-content: center;
    }

    .work-card {
        flex-direction: column;
        height: auto;
    }

    .work-gallery {
        height: 250px;
        min-height: 250px;
    }

    .admin-grid {
        grid-template-columns: 1fr;
    }
}