:root {
    --primary-color: #005C7A;
    --secondary-color: #CE2A5B;
    --dark-color: #1A1A2E;
    --light-color: #F5F5F5;
    --gray-color: #433741;
    --ligth-blue: #C3E8F0;
    --lavanda: #CDCDDF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--dark-color);
    color: var(--light-color);
    overflow-x: hidden;
}

section {
    min-height: 100vh;
    padding: 80px 5%;
    display: flex;
    align-items: center;
}

/* Hero Section */
.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 50%;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* A la izquierda en desktop */
}

.hero-logo {
    margin-bottom: 30px;
    max-width: 300px;
    display: flex;
    justify-content: flex-start; /* Logo a la izquierda en desktop */
    width: 100%;
}

.logo-image {
    width: 100%;
    height: auto;
    max-width: 300px;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

/* Efecto hover opcional */
.logo-image:hover {
    transform: scale(1.05);
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    font-family: 'Recoleta', serif;
    background: linear-gradient(135deg, var(--light-color), #E0E0E0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.7rem;
    font-family: 'Recoleta Ligth', serif;
    font-weight: 300;
    opacity: 0.9;
}

.hero-animation {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Section Styles */
.section-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.section-text {
    width: 45%;
}

.section-image {
    width: 50%;
    position: relative;
    perspective: 1000px;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-3d {
    width: 100%;
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
}

.section-title {
    font-family: 'Recoleta', serif;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.section-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-5px);
}

/* Services Section */
.services {
    background: linear-gradient(135deg, var(--ligth-blue), var(--lavanda));
}

/* Estilos para los contactos en la sección services */
.contact-info {
    margin: 25px 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateX(5px);
}

.contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}

.contact-icon .fab,
.contact-icon .fas {
    color: white !important;
    font-size: 1.2rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

.instagram-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.email-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.contact-link {
    color: var(--gray-color);
    text-decoration: none; /* Elimina el subrayado */
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 1.1rem;
}

.contact-link:hover {
    color: var(--primary-color);
}

/* Portfolio Section */
.portfolio {
    background-color: var(--dark-color);
}

/* About Section */
.about {
    background-color: var(--gray-color);
}

/* Contact Section */
.contact {
    /*Color degrade de fondo*/
    background: linear-gradient(135deg, var(--dark-color), var(--primary-color));
    position: relative;
}

.contact-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
}

.contact-form {
    width: 45%;
}

.contact-info {
    width: 45%;
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 10px;
    color: var(--light-color);
    font-size: 1rem;
}

.form-control:focus {
    outline: 2px solid var(--primary-color);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.contact-title {
    font-size: 2rem;
    font-family: 'Recoleta', serif;
    margin-bottom: 20px;
    color: var(--lavanda);
}

.contact-details {
    margin-bottom: 30px;
}

.contact-item {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.contact-item i {
    margin-right: 10px;
    color: var(--primary-color);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    padding: 30px 5%;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Mejoras visuales para el hero */
.hero-subtitle {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-content {
    animation: breathe 6s ease-in-out infinite;
}

.navbar {
    position: fixed;
    top: 0;
    right: 0;
    padding: 20px;
    z-index: 1000;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 20px;
}

.nav-links a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Asegurar que el hero no quede oculto detrás del navbar */
.hero {
    padding-top: 60px;
}

@keyframes breathe {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* ===== CORRECCIONES PARA LOS PROBLEMAS IDENTIFICADOS ===== */

/* 1. SOLUCIÓN PARA IMÁGENES DUPLICADAS EN SERVICE SECTION */
.section-image .light-image,
.section-image .dark-image {
    position: relative; /* Cambiado de absolute a relative */
    width: 100%;
    height: auto;
    max-width: 100%;
}

.section-image .dark-image {
    display: none;
}

/* 2. CORRECCIÓN PARA HERO-TITLE EN TEMA OSCURO */
@media (prefers-color-scheme: dark) {
    .hero-title {
        background: linear-gradient(135deg, var(--lavanda), #b8b8d0);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    .section-image .light-image {
        display: none;
    }
    .section-image .dark-image {
        display: block;
    }
}

/* 3. CORRECCIÓN PARA BOTÓN "CONOCE MÁS" EN TABLET Y MÓVIL */
@media (max-width: 1024px) {
    .services .section-text {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .services .btn {
        align-self: center;
    }
}

/* 4. AJUSTES DE TAMAÑO PARA HERO-LOGO EN TABLET Y MÓVIL */
@media (max-width: 1024px) and (min-width: 769px) {
    /* Tablet: 25% más grande */
    .hero-logo {
        max-width: 375px !important; /* 300px * 1.25 = 375px */
    }
    
    .logo-image {
        max-width: 375px !important;
    }
}

/* 5. CORRECCIÓN PARA SECTION-IMAGE EN MÓVIL */
@media (max-width: 768px) {
    .section-image {
        position: relative;
        height: 300px; /* Altura fija para mantener consistencia */
        min-height: auto;
    }
    
    .section-image .light-image,
    .section-image .dark-image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: contain;
        transform: none;
    }
}

/* ===== FIN DE CORRECCIONES ===== */

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        max-width: 100%;
        text-align: center;
        align-items: center; /* Centra todo en móvil */
    }
    
    .hero-logo {
        max-width: 250px !important; /* 200px * 1.25 = 250px */
        margin-bottom: 20px;
        display: flex;
        justify-content: center;
        width: 100%;
    }
    
    .logo-image {
        max-width: 250px !important;
    }
    
    .hero-title {
        text-align: center;
    }
    
    .hero-subtitle {
        text-align: center;
    }
    
    .hero-animation {
        display: none;
    }
    
    .section-content {
        flex-direction: column;
    }
    
    .section-text, .section-image {
        width: 100%;
        margin-bottom: 40px;
    }
    
    .contact-content {
        flex-direction: column;
    }
    
    .contact-form, .contact-info {
        width: 100%;
        margin-bottom: 40px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .navbar {
        padding: 15px;
    }
    
    .nav-links {
        gap: 20px;
    }
    
    .nav-links a {
        font-size: 14px;
        padding: 6px 12px;
    }
    
    /* Responsive para contactos en móviles */
    .contact-item {
        justify-content: center;
        text-align: center;
        flex-direction: column;
        gap: 10px;
    }
    
    .contact-link {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-logo {
        max-width: 188px !important; /* 150px * 1.25 = 187.5px */
        margin-bottom: 15px;
    }
    
    .logo-image {
        max-width: 188px !important;
    }
}

@font-face {
    font-family: 'Recoleta';
    src: url('/assets/fonts/Recoleta/Recoleta\ Alt\ Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Recoleta Ligth';
    src: url('/assets/fonts/Recoleta/Recoleta\ Alt\ Light.woff2') format('woff2');
    font-weight: lighter;
    font-style: normal;
}

/* Eliminar subrayado de todos los enlaces */
a {
    text-decoration: none;
}

/* Opcional: mantener algún indicativo visual en hover */
a:hover {
    text-decoration: none;
}