/*
Theme Name: Dimiret Child Theme
Description: Tema hijo de Hello Elementor para Dimiret - Empresa que gestiona diferentes proyectos
Template: hello-elementor
Version: 2.0.0
Author: Tu Nombre
Text Domain: dimiret-child
*/

/* Importar estilos del tema padre */
/* @import url("../hello-elementor/style.css"); */

/* ==========================================================================
   ESTILOS PERSONALIZADOS PARA DIMIRET
   ========================================================================== */

/* Variables CSS basadas en el logo */
:root {
    --primary-color: #2d4a6b;
    /* Azul marino oscuro del logo */
    --secondary-color: #4a90e2;
    /* Azul medio del logo */
    --accent-color: #6bb6ff;
    /* Azul claro del logo */
    --success-color: #3498db;
    /* Azul éxito */
    --text-color: #2c3e50;
    /* Texto principal */
    --text-light: #6c757d;
    /* Texto secundario */
    --light-gray: #f8f9fa;
    --border-color: #e9ecef;
    --white: #ffffff;
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 5px 20px rgba(0, 0, 0, 0.12);
    --shadow-heavy: 0 10px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease;
    --border-radius: 12px;
    --border-radius-small: 8px;
}

/* Estilos generales */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    scroll-behavior: smooth;
}

/* Header personalizado */
.site-header {
    background: var(--white);
    box-shadow: var(--shadow-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.site-header:hover {
    box-shadow: var(--shadow-medium);
}

/* Logo styling */
.site-logo img {
    transition: var(--transition);
    filter: drop-shadow(0 2px 4px rgba(255, 255, 255, 0.6));
}

.site-logo:hover img {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 8px rgba(77, 213, 196, 0.3));
}

/* Estilos para la sección hero */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--accent-color) 100%);
    color: var(--white);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    width: 100%;
    margin-left: calc(-50vw + 50%);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-section p {
    font-size: 1.3rem;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
}

/* Estilos para las tarjetas de proyectos */
.projects-section {
    padding: 100px 0;
    background: var(--light-gray);
}

.project-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    margin-bottom: 3rem;
    position: relative;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    transform: scaleX(0);
    transition: var(--transition);
}

.project-card:hover::before {
    transform: scaleX(1);
}

/* Contenedor de imagen con efectos */
.project-image-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-small);
}

.project-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--border-radius-small);
    transition: var(--transition);
    cursor: pointer;
}

.project-image:hover {
    transform: scale(1.08);
}

/* Overlay con efecto hover */
.project-image-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(77, 213, 196, 0.3), rgba(45, 90, 90, 0.3));
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-small);
}

.project-image-container:hover::after {
    opacity: 1;
}

/* Icono de zoom en el overlay */
.project-image-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 2rem;
    color: var(--white);
    z-index: 3;
    transition: var(--transition);
    pointer-events: none;
}

.project-image-container:hover::before {
    transform: translate(-50%, -50%) scale(1);
}

.project-content {
    padding: 2.5rem;
}

.project-content h2 {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
    transition: var(--transition-fast);
}

.project-card:hover .project-content h2 {
    color: var(--secondary-color);
}

.project-content p {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.visit-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: var(--white);
    padding: 14px 28px;
    border-radius: var(--border-radius-small);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.visit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition);
}

.visit-btn:hover::before {
    left: 100%;
}

.visit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(77, 213, 196, 0.4);
    color: var(--white);
    text-decoration: none;
}

.visit-btn::after {
    content: '→';
    transition: var(--transition-fast);
}

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

/* Layout de dos columnas para proyectos */
.project-row {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 5rem;
}

.project-row.reverse {
    flex-direction: row-reverse;
}

.project-text,
.project-image-container {
    flex: 1;
}

/* Logo de inicio en la sección hero */
.hero-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.hero-logo-image {
    max-width: 350px;
    max-height: 100px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: var(--transition);
    filter: drop-shadow(0 4px 30px rgba(255, 255, 255, 0.6));
}

.hero-logo-image:hover {
    transform: scale(1.02);
    filter: drop-shadow(0 6px 20px rgba(45, 74, 107, 0.7));
}

/* Sección de contacto */
.contact-section {
    padding: 100px 0 60px 0;
    background: var(--white);
    text-align: center;
    position: relative;
}

/* Logo de fin después del contacto */
.logo-fin-section {
    padding: 20px 0 40px 0;
    background: var(--white);
    text-align: center;
}

.logo-fin-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-fin-image {
    max-width: 150px;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: var(--transition-fast);
    opacity: 0.8;
}

.logo-fin-image:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* Menú legal */
.legal-menu-section {
    padding: 20px 0 30px 0;
    background: var(--white);
    text-align: center;
}

.legal-menu-divider {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
    margin: 0 auto 15px auto;
}

.legal-menu-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.legal-menu-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 5px 10px;
    border-radius: var(--border-radius-small);
    transition: var(--transition-fast);
    position: relative;
}

.legal-menu-link:hover {
    color: var(--primary-color);
    text-decoration: none;
    background: rgba(45, 74, 107, 0.05);
}

.legal-menu-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: var(--secondary-color);
    transition: var(--transition-fast);
}

.legal-menu-link:hover::after {
    width: 80%;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
}

.contact-section h2 {
    font-size: 2.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    position: relative;
}

.contact-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    border-radius: 2px;
}

.contact-section p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    gap: 1rem;
    line-height: 1.2rem;
}

.contact-section a {
    color: var(--secondary-color);
    text-decoration: none;
    margin: 0 !important;
    padding: 0 !important;
    transform: translateY(0px) !important;
}

.contact-section a:hover {
    background: var(--secondary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(77, 213, 196, 0.3);
}

/* Footer personalizado */
.site-footer {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 3rem 0;
    text-align: center;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
}

/* Responsive Design */
@media (min-width: 1200px) {
    .hero-section {
        padding: 120px 0;
    }

    .hero-section h1 {
        font-size: 4rem;
    }

    .hero-section p {
        font-size: 1.4rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
        margin-left: 0;
        width: 100%;
    }

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

    .hero-section p {
        font-size: 1.1rem;
    }

    .project-row,
    .project-row.reverse {
        flex-direction: column;
        gap: 2rem;
    }

    .project-image {
        aspect-ratio: 4 / 3;
    }

    .contact-section h2 {
        font-size: 2.2rem;
    }

    .projects-section,
    .contact-section {
        padding: 60px 0;
    }

    .hero-logo-container {
        margin-bottom: 15px;
    }

    .hero-logo-image {
        max-width: 280px;
        max-height: 80px;
    }

    .logo-fin-section {
        padding: 15px 0 30px 0;
    }

    .logo-fin-image {
        max-width: 120px;
        max-height: 48px;
    }

    .legal-menu-section {
        padding: 15px 0 25px 0;
    }

    .legal-menu-links {
        gap: 20px;
        flex-direction: column;
    }

    .legal-menu-link {
        font-size: 0.85rem;
    }
}

/* Utilidades */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

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

.mb-4 {
    margin-bottom: 2rem;
}

.mt-4 {
    margin-top: 2rem;
}

/* Animaciones mejoradas */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Efectos de scroll reveal */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Animaciones específicas para diferentes elementos */
.project-row.scroll-reveal {
    transform: translateY(30px);
}

.project-card.scroll-reveal {
    transform: translateY(40px) scale(0.95);
}

.project-card.scroll-reveal.revealed {
    transform: translateY(0) scale(1);
}

.contact-section h2.scroll-reveal {
    transform: translateY(20px);
}

.contact-section p.scroll-reveal,
.contact-section a.scroll-reveal {
    transform: translateY(15px);
}

/* Botón scroll to top mejorado */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: var(--shadow-medium);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: var(--shadow-heavy);
}

/* Mejoras para el menú móvil */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--primary-color);
    transition: var(--transition-fast);
}

.mobile-menu-toggle:hover {
    color: var(--secondary-color);
    transform: scale(1.1);
}

/* Loading states */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(77, 213, 196, 0.2), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* Placeholder para imágenes mejorado */
.project-image-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, var(--light-gray), #e9ecef);
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius-small);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-style: italic;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.project-image-placeholder::before {
    content: '📷';
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.project-image-placeholder:hover {
    border-color: var(--secondary-color);
    background: linear-gradient(135deg, rgba(77, 213, 196, 0.1), rgba(109, 213, 208, 0.1));
}

/* Estilos para notificaciones mejoradas */
.dimiret-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius-small);
    color: var(--white);
    font-weight: 500;
    z-index: 9999;
    transform: translateX(400px);
    transition: var(--transition);
    max-width: 350px;
    box-shadow: var(--shadow-medium);
    backdrop-filter: blur(10px);
}

.dimiret-notification.show {
    transform: translateX(0);
}

.dimiret-notification.success {
    background: linear-gradient(135deg, var(--success-color), var(--secondary-color));
}

.dimiret-notification.error {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

/* Compatibilidad con Elementor mejorada */
.elementor-widget-heading .elementor-heading-title {
    color: var(--primary-color);
}

.elementor-widget-button .elementor-button {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    border-radius: var(--border-radius-small);
    transition: var(--transition);
    border: none;
}

.elementor-widget-button .elementor-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(77, 213, 196, 0.4);
}

/* Focus styles mejorados para accesibilidad */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Mejoras de performance */
* {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

/* Optimización para dispositivos de alta densidad */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
    .hero-section {
        background-attachment: scroll;
    }
}