:root {
    /* Modo Día */
    --primary-color: #333333;
    --secondary-color: #e0c097;
    --text-color: #333333;
    --light-bg: #f9f9f9;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

:root[data-theme="dark"] {
    /* Modo Noche */
    --primary-color: #e0c097;
    --secondary-color: #e0c097;
    --text-color: #e0c097;
    --light-bg: #1a1a1a;
    --white: #e0c097;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Raleway', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 2px;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

p {
    line-height: 1.8;
    letter-spacing: 0.3px;
    color: var(--text-color);
}

/* Header Styles */
.header {
    position: fixed;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 150px;
    width: auto;
    transition: var(--transition);
    margin: -35px 0;
}

.light-logo {
    display: block;
}

.dark-logo {
    display: none;
}

/* Ajustes para el modo oscuro */
:root[data-theme="dark"] .light-logo {
    display: none;
}

:root[data-theme="dark"] .dark-logo {
    display: block;
}

.logo-img:hover {
    transform: scale(1.05);
}

.logo h1 {
    color: var(--primary-color);
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--secondary-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    color: var(--secondary-color);
}

/* Hero Section with Video */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.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: 1;
    max-width: 800px;
    text-align: center;
    color: var(--white);
    padding: 0 1rem;
    margin: 0 auto;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero h2 {
    font-size: 3.5rem;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.2);
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.15);
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--secondary-color);
    color: #333333;
    text-decoration: none;
    border-radius: 5px;
    transition: var(--transition);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
    background: #d4b07d;
    transform: translateY(-3px);
    color: #333333;
}

/* Services Section */
.services {
    padding: 5rem 2rem;
    background: var(--light-bg);
}

.services h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.4rem;
    margin: 1rem 0;
    color: var(--primary-color);
    transition: var(--transition);
}

.service-card:hover h3 {
    transform: translateY(-3px);
    color: var(--secondary-color);
}

/* Portfolio Section */
.portfolio {
    padding: 5rem 2rem;
    background: var(--light-bg);
}

.portfolio h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.8rem 1.5rem;
    background: var(--white);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: var(--white);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    aspect-ratio: 4/3;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    opacity: 0;
    transition: var(--transition);
    color: var(--white);
    text-align: center;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay h3 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.portfolio-overlay p {
    font-size: 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Projects Section */
.projects {
    padding: 5rem 2rem;
    background: var(--light-bg);
}

.projects h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.projects-grid {
    max-width: 1200px;
    margin: 0 auto;
}

.video-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* Relación de aspecto 16:9 */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.project-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Contact Section */
.contact {
    padding: 5rem 2rem;
    background: var(--light-bg);
}

.contact h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

.submit-button {
    padding: 1rem;
    background: var(--secondary-color);
    color: #333333;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.submit-button:hover {
    background: #d4b07d;
    transform: translateY(-3px);
    color: #333333;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-info i {
    color: var(--secondary-color);
    margin-right: 0.5rem;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 3rem 2rem 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.4rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.footer-section p {
    color: var(--white);
    opacity: 0.9;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    color: var(--white);
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: var(--white);
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 1024px) {
    /* Tablets */
    .nav-container {
        padding: 0.5rem 1rem;
    }

    .logo-img {
        height: 120px;
        margin: -25px 0;
    }

    .hero h2 {
        font-size: 2.8rem;
    }

    .services-grid,
    .portfolio-grid,
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    /* Tablets pequeñas y móviles grandes */
    .mobile-menu-btn {
        display: block;
        position: relative;
        z-index: 1001;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--light-bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 1000;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 1rem 0;
    }

    .nav-links a {
        font-size: 1.2rem;
    }

    .hero h2 {
        font-size: 2.2rem;
        padding: 0 1rem;
    }

    .hero p {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .services-grid,
    .portfolio-grid,
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .portfolio-filters {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .filter-btn {
        width: 100%;
        max-width: 200px;
    }

    .video-container {
        margin: 0 1rem;
    }
}

@media (max-width: 480px) {
    /* Móviles */
    .logo-img {
        height: 100px;
        margin: -20px 0;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .service-card,
    .feature-card {
        padding: 1.5rem;
    }

    .contact-form input,
    .contact-form textarea {
        padding: 0.8rem;
    }

    .submit-button {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

/* Toggle Switch */
.theme-switch-wrapper {
    display: flex;
    align-items: center;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
}

.theme-switch {
    display: inline-block;
    height: 34px;
    position: relative;
    width: 60px;
}

.theme-switch input {
    display: none;
}

.slider {
    background-color: #ccc;
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    background-color: #fff;
    bottom: 4px;
    content: "";
    height: 26px;
    left: 4px;
    position: absolute;
    transition: .4s;
    width: 26px;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--secondary-color);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider i {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
}

.slider i.fa-sun {
    left: 8px;
    color: #f1c40f;
}

.slider i.fa-moon {
    right: 8px;
    color: #fff;
}

/* Ajustes específicos para el modo nocturno */
:root[data-theme="dark"] .header {
    background: rgba(26, 26, 26, 0.95);
}

:root[data-theme="dark"] .nav-links a {
    color: var(--white);
}

:root[data-theme="dark"] .nav-links a:hover {
    color: var(--secondary-color);
}

:root[data-theme="dark"] .service-card {
    background: #2a2a2a;
    color: var(--white);
}

:root[data-theme="dark"] .portfolio-item {
    border: 1px solid var(--secondary-color);
}

:root[data-theme="dark"] .contact-form input,
:root[data-theme="dark"] .contact-form textarea {
    background: #2a2a2a;
    color: var(--white);
    border-color: var(--primary-color);
}

:root[data-theme="dark"] .footer {
    background: #2a2a2a;
    color: var(--white);
}

:root[data-theme="dark"] .filter-btn {
    background: #2a2a2a;
    color: var(--white);
    border-color: var(--primary-color);
}

:root[data-theme="dark"] .filter-btn:hover,
:root[data-theme="dark"] .filter-btn.active {
    background: var(--primary-color);
    color: #2a2a2a;
}

/* Why Choose Us Section */
.why-choose-us {
    padding: 5rem 2rem;
    background: var(--light-bg);
}

.why-choose-us h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--text-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--secondary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.feature-card:hover i {
    transform: scale(1.2);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.feature-card p {
    color: var(--text-color);
    line-height: 1.6;
}

/* Ajustes para el modo nocturno */
:root[data-theme="dark"] .feature-card {
    background: #2a2a2a;
    color: var(--white);
}

:root[data-theme="dark"] .feature-card::before {
    background: var(--secondary-color);
}

/* Estilos para la notificación */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 20px;
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(120%);
    transition: transform 0.3s ease-in-out;
    z-index: 9999;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    border-left: 4px solid #4CAF50;
}

.notification.error {
    border-left: 4px solid #f44336;
}

.notification i {
    font-size: 24px;
}

.notification.success i {
    color: #4CAF50;
}

.notification.error i {
    color: #f44336;
}

.notification-content {
    color: var(--text-color);
}

.notification-content h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
}

.notification-content p {
    margin: 0;
    font-size: 14px;
    opacity: 0.8;
}

:root[data-theme="dark"] .notification {
    background: #1a1a1a;
    border: 1px solid var(--secondary-color);
}

/* Ajustes para el modo oscuro */
:root[data-theme="dark"] .video-container {
    box-shadow: 0 5px 15px rgba(224, 192, 151, 0.2);
}

/* Ajustes para el modo oscuro */
:root[data-theme="dark"] .cta-button {
    background: var(--secondary-color);
    color: #333333;
}

:root[data-theme="dark"] .cta-button:hover {
    background: #d4b07d;
    color: #333333;
}

/* Ajustes para el modo oscuro */
:root[data-theme="dark"] .submit-button {
    background: var(--secondary-color);
    color: #333333;
}

/* Ajustes para el modo oscuro */
:root[data-theme="dark"] h1,
:root[data-theme="dark"] h2,
:root[data-theme="dark"] h3 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

:root[data-theme="dark"] .hero h2 {
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
}

:root[data-theme="dark"] .hero p {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Ajustes para el modo oscuro */
:root[data-theme="dark"] .footer {
    background: #2a2a2a;
}

:root[data-theme="dark"] .footer-section h3 {
    color: var(--secondary-color);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

:root[data-theme="dark"] .footer-section p {
    color: var(--white);
    opacity: 0.95;
}

:root[data-theme="dark"] .footer-bottom {
    border-top: 1px solid rgba(224, 192, 151, 0.2);
}

:root[data-theme="dark"] .footer-bottom p {
    color: var(--white);
    opacity: 0.9;
} 