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

:root {
    --bg-dark: #1a1f2e;
    --bg-darker: #0f1419;
    --bg-light: #f5f5f5;
    --accent: #a68563;
    --accent-light: #c49976;
    --text-light: #e7e9ea;
    --text-muted: #9ca3af;
    --border-color: #2d3544;
    --card-bg: #242a3a;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-light);
    background: var(--bg-dark);
    line-height: 1.6;
    min-height: 100vh;
}

/* ==================== NAVBAR ====================*/

#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(15, 20, 25, 0.95);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border-color);
}

#navbar.navbar-hidden {
    transform: translateY(-100%);
}

#navbar.navbar-visible {
    transform: translateY(0);
}

.navbar-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-logo a {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-light);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.navbar-logo a:hover {
    color: var(--accent);
}

.navbar-logo span {
    color: var(--accent);
}

.navbar-menu {
    display: flex;
    gap: 2.5rem;
}

.menu-item {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.menu-item:hover {
    color: var(--accent);
}

.menu-icon {
    width: 18px;
    height: 18px;
}

/* Botón Contacto */
.navbar-content .btn-primary {
    background: var(--accent);
    color: white;
    padding: 0.6rem 1.8rem;
    border: none;
    border-radius: 0.3rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.navbar-content .btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
}

/* Mobile Menu Toggle */
.navbar-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
}

.navbar-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-light);
    transition: all 0.3s ease;
}

.navbar-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.navbar-toggle.active span:nth-child(2) {
    opacity: 0;
}

.navbar-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Floating Menu */
.floating-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99;
}

.floating-menu.active {
    display: flex;
}

.floating-menu-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.floating-menu-container {
    position: relative;
    width: 100%;
    max-width: 300px;
    height: 100%;
    background: var(--bg-darker);
    margin-left: auto;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    overflow-y: auto;
}

.floating-menu-close {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-menu-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.floating-menu-item {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: color 0.3s ease;
}

.floating-menu-item:hover {
    color: var(--accent);
}

.floating-menu-item svg {
    width: 24px;
    height: 24px;
}

/* Floating Menu Button */
.floating-menu-btn {
    display: none;
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 101;
    background: var(--accent);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    color: white;
    transition: all 0.3s ease;
}

.floating-menu-btn.visible {
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-menu-btn:hover {
    background: var(--accent-light);
    transform: scale(1.1);
}

.floating-menu-btn svg {
    width: 24px;
    height: 24px;
}

/* ==================== HERO SECTION ====================*/

.hero {
    margin-top: 70px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1486325212027-8081e485255e?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    z-index: 1;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-text-wrapper {
    animation: fadeInUp 0.8s ease;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.gradient-text {
    color: var(--accent);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.btn {
    padding: 0.8rem 2rem;
    border: 2px solid var(--accent);
    border-radius: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
    background: transparent;
    position: relative;
    overflow: hidden;
}

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

.btn-primary:hover {
    background: var(--accent);
    box-shadow: 0 0 20px rgba(166, 133, 99, 0.6),
                inset 0 0 20px rgba(166, 133, 99, 0.3);
    border-color: var(--accent-light);
}

/* Botón Ver Más con Flecha Animada */
.btn-see-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 2rem;
    background: var(--accent);
    color: white;
    border: 2px solid var(--accent);
    border-radius: 0.8rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-see-more::after {
    content: '→';
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.btn-see-more:hover {
    background: var(--accent);
    box-shadow: 0 0 20px rgba(166, 133, 99, 0.6),
                inset 0 0 20px rgba(166, 133, 99, 0.3);
    border-color: var(--accent-light);
}

.btn-see-more:hover::after {
    transform: translateX(4px);
}

/* Efecto de estrellas para el hover */
@keyframes star-twinkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 1;
    }
}

.btn:hover::before,
.btn:hover::after {
    animation: star-twinkle 0.6s ease-in-out;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-icon {
    font-size: 2rem;
}

.stat-content {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.stat-content p {
    margin: 0;
}

.stat-value {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--accent);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Hero Images */
.hero-images {
    position: relative;
    height: 500px;
}

.images-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.image-card {
    position: absolute;
    width: 280px;
    height: 350px;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: float 3s ease-in-out infinite;
}

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

.card-1 {
    top: 0;
    left: 0;
    animation-delay: 0s;
}

.card-2 {
    top: 50px;
    right: 50px;
    animation-delay: 0.5s;
}

.card-3 {
    bottom: 0;
    left: 100px;
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== SERVICES SECTION ====================*/

.services {
    padding: 6rem 2rem;
    background: var(--bg-dark);
    color: var(--text-light);
}

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

.section-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-align: center;
    color: inherit;
}

.services .section-title {
    color: var(--text-light);
}

.about-section .section-title {
    color: var(--bg-darker);
}

.section-title .gradient-text {
    color: var(--accent);
}

.services-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: inherit;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.services .services-subtitle {
    color: var(--text-muted);
}

.feature-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 0.5rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.services .feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-card:hover .feature-card-icon {
    background: rgba(166, 133, 99, 0.2);
    border-color: var(--accent-light);
    box-shadow: 0 4px 12px rgba(166, 133, 99, 0.2);
    transform: scale(1.05);
}

.feature-card-icon {
    font-size: 3rem;
    margin: 0 auto 1.5rem;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(166, 133, 99, 0.1);
    border: 2px solid var(--accent);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.feature-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.services .feature-card-title {
    color: var(--text-light);
}

.feature-card-description {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.8;
}

/* ==================== IMAGE STACK ====================*/

#image-stack-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-stack-card {
    position: absolute;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    background: white;
    border: 1px solid #e5e5e5;
    cursor: grab;
    user-select: none;
    touch-action: none;
}

.image-stack-card:active {
    cursor: grabbing;
}

/* ==================== ABOUT SECTION ====================*/

.about-section {
    padding: 4rem 2rem;
    background: var(--bg-light);
    color: var(--bg-darker);
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    padding-top: 2rem;
}

.about-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-gallery-wrapper {
    position: relative;
    width: 100%;
    height: 600px;
    max-width: 600px;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 2.8px 2.2px rgba(0,0,0,0.02),
                0 6.7px 5.3px rgba(0,0,0,0.028),
                0 12.5px 10px rgba(0,0,0,0.035),
                0 22.3px 17.9px rgba(0,0,0,0.042),
                0 41.8px 33.4px rgba(0,0,0,0.05),
                0 100px 80px rgba(0,0,0,0.07);
}

.about-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.about-content p {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, max-content);
    gap: 1.5rem;
    margin-top: 2rem;
}

.about-stat {
    padding: 1.2rem 1.8rem;
    background: rgba(166, 133, 99, 0.1);
    border-radius: 0.4rem;
    border: 2px solid var(--accent);
    text-align: center;
    transition: all 0.3s ease;
}

.about-stat:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(166, 133, 99, 0.2);
}

.about-stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
}

.about-stat-label {
    font-size: 0.85rem;
    color: var(--bg-darker);
    margin-top: 0.5rem;
    font-weight: 500;
}

/* ==================== CONTACT SECTION ====================*/

.contact {
    padding: 6rem 2rem;
    background: var(--bg-light);
    color: var(--bg-darker);
}

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

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--bg-darker);
}

.contact-header .contact-description {
    font-size: 1rem;
    color: #666;
    line-height: 1.8;
}

.contact-details {
    margin-top: 2.5rem;
}

.contact-details-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--bg-darker);
}

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

.contact-list li {
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1rem;
}

.contact-detail-label {
    font-weight: 600;
    color: var(--bg-darker);
    min-width: 100px;
}

.contact-detail-value {
    color: #666;
}

.contact-link {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--accent-light);
}

/* Contact Form */
.contact-form-section {
    background: white;
    padding: 2.5rem;
    border-radius: 0.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--bg-darker);
    font-size: 0.9rem;
}

.form-input,
.form-textarea {
    padding: 0.8rem;
    border: 1px solid #e5e5e5;
    border-radius: 0.3rem;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--bg-darker);
    transition: border-color 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit-btn {
    background: var(--accent);
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 0.3rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.form-submit-btn:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
}

.contact-message {
    padding: 1rem;
    border-radius: 0.3rem;
    text-align: center;
    font-weight: 600;
    display: none;
}

.contact-message.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.contact-message.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ==================== FOOTER ====================*/

footer {
    background: var(--bg-darker);
    color: var(--text-light);
    padding: 2rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
    position: relative;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-info p {
    margin: 0.5rem 0;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.admin-lock-btn {
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.admin-lock-btn:hover {
    transform: scale(1.2);
}

/* ==================== RESPONSIVE ====================*/

@media (max-width: 768px) {
    .navbar-menu.desktop-menu {
        display: none;
    }

    .navbar-toggle {
        display: flex;
    }

    .navbar-content {
        padding: 1rem 1rem;
    }

    .navbar-logo a {
        font-size: 1.1rem;
    }

    .hero {
        min-height: auto;
        padding-top: 80px;
        padding-bottom: 2rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        padding: 1.5rem 1rem;
        gap: 1.5rem;
    }

    .hero-title {
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .hero-buttons {
        gap: 1rem;
        flex-direction: column;
    }

    .hero-images {
        display: none;
    }

    .about-container {
        grid-template-columns: 1fr;
        padding: 1.5rem 1rem;
        gap: 1.5rem;
    }

    .about-content h2 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .about-content p {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 1.5rem;
    }

    .services {
        padding: 2rem 1rem;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .services-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .feature-cards-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }

    .feature-card {
        padding: 1.2rem;
    }

    .feature-card-icon {
        font-size: 2.5rem;
        margin-bottom: 0.8rem;
    }

    .feature-card-title {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .feature-card-description {
        font-size: 0.85rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        padding: 1.5rem 1rem;
        gap: 1.5rem;
    }

    .contact-title {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }

    .contact-description {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .contact-details {
        padding: 1.2rem;
        border-radius: 8px;
    }

    .contact-details-title {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .contact-list li {
        margin-bottom: 0.8rem;
    }

    .contact-form {
        padding: 1rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .form-label {
        font-size: 0.9rem;
        margin-bottom: 0.3rem;
    }

    .form-input,
    .form-textarea,
    .form-select {
        font-size: 0.9rem;
        padding: 0.7rem;
    }

    .btn {
        padding: 0.7rem 1.4rem;
        font-size: 0.9rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .navbar-content {
        padding: 0.8rem 0.8rem;
    }

    .navbar-logo a {
        font-size: 1rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-container {
        padding: 1rem 0.8rem;
    }

    .hero-buttons {
        gap: 0.8rem;
    }

    .btn {
        width: 100%;
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .contact-title {
        font-size: 1.5rem;
    }

    .feature-cards-grid {
        padding: 0.8rem;
    }

    .floating-menu-container {
        max-width: 280px;
        padding: 1.5rem;
    }
}
