/* ========================================
   EHO CONSTRUCCIONES - ESTILOS GLOBALES
   ======================================== */

:root {
    --primary-color: #030712;      /* slate-950 */
    --accent-color: #facc15;       /* yellow-400 */
    --accent-secondary: #06b6d4;   /* cyan-500 */
    --light-bg: #f8fafc;           /* slate-50 */
    --text-light: #e2e8f0;         /* slate-200 */
    --text-muted: #94a3b8;         /* slate-400 */
    --border-color: #1e293b;       /* slate-800 */
}

/* ========================================
   RESET & BASE STYLES
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--primary-color);
    background: white;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ========================================
   TIPOGRAFÍA
   ======================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.875rem);
}

p {
    font-weight: 300;
    letter-spacing: 0.3px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   COMPONENTES REUTILIZABLES
   ======================================== */

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
}

/* Gradientes */
.hero-gradient {
    background: linear-gradient(to right, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.4));
}

.gradient-text {
    background: linear-gradient(135deg, #fef08a 0%, #facc15 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glassmorphism {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Botones */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #facc15 0%, #eab308 100%);
    color: #030712;
    box-shadow: 0 4px 15px rgba(250, 204, 21, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(250, 204, 21, 0.4);
    color: #030712;
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
}

.btn-secondary:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
}

/* ========================================
   ANIMACIONES
   ======================================== */

@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scale-in {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-slide-up {
    animation: slide-up 0.6s ease-out forwards;
}

.animate-fade-in {
    animation: fade-in 0.4s ease-out forwards;
}

.animate-scale-in {
    animation: scale-in 0.5s ease-out forwards;
}

/* ========================================
   HEADER & NAVEGACIÓN
   ======================================== */

nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 50;
    background: rgba(3, 7, 18, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(250, 204, 21, 0.1);
    padding: 16px 0;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: white;
    letter-spacing: -0.05em;
}

.logo img {
    max-height: 48px;
    object-fit: contain;
}

.nav-menu {
    display: none;
    gap: 32px;
    list-style: none;
}

.nav-menu li a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.nav-menu li a:hover {
    color: var(--accent-color);
    text-shadow: 0 0 8px rgba(250, 204, 21, 0.3);
}

@media (min-width: 768px) {
    .nav-menu {
        display: flex;
    }
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(3, 7, 18, 0.98);
        flex-direction: column;
        padding: 16px 24px;
        gap: 16px;
        border-top: 1px solid rgba(250, 204, 21, 0.1);
    }

    .nav-menu.active {
        display: flex;
    }
}

/* ========================================
   SECCIONES
   ======================================== */

section {
    position: relative;
}

.section-light {
    background: white;
}

.section-dark {
    background: #030712;
    color: white;
}

.section-accent {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.9) 100%);
    color: white;
}

/* ========================================
   TARJETAS (CARDS)
   ======================================== */

.card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 32px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 20px 40px rgba(245, 158, 11, 0.15);
    transform: translateY(-4px);
}

.card-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 12px;
    margin-bottom: 16px;
    color: #b45309;
    font-size: 1.75rem;
}

.card-title {
    font-weight: 900;
    margin-bottom: 12px;
    font-size: 1.125rem;
    color: var(--primary-color);
}

.card-text {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ========================================
   GALERÍA / PORTAFOLIO
   ======================================== */

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 1;
    display: flex;
    align-items: flex-end;
    background: #1e293b;
}

.portfolio-item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-item:hover img {
    transform: scale(1.08);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.2));
    opacity: 0;
    transition: opacity 0.3s ease-out;
    display: flex;
    align-items: flex-end;
    padding: 24px;
    z-index: 10;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-text small {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}

.portfolio-text h3 {
    color: white;
    font-size: 1.125rem;
    margin: 0;
}

/* ========================================
   FORMULARIOS
   ======================================== */

input, select, textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid rgba(30, 41, 59, 0.2);
    background: rgba(15, 23, 42, 0.05);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease-out;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
    background: white;
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* ========================================
   FOOTER
   ======================================== */

footer {
    background: linear-gradient(to bottom, #0f172a, #030712);
    color: white;
    padding: 64px 0;
    border-top: 1px solid rgba(245, 158, 11, 0.2);
}

footer a {
    color: rgba(255, 255, 255, 0.6);
}

footer a:hover {
    color: var(--accent-color);
}

.footer-title {
    color: var(--accent-color);
    font-weight: 900;
    margin-bottom: 16px;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.footer-link {
    display: block;
    margin-bottom: 12px;
    font-size: 0.875rem;
    font-weight: 300;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1024px) {
    h1 {
        font-size: clamp(1.75rem, 4vw, 3rem);
    }

    h2 {
        font-size: clamp(1.5rem, 3.5vw, 2.5rem);
    }

    section {
        padding: 48px 0 !important;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
    }

    h2 {
        font-size: clamp(1.25rem, 4vw, 2rem);
    }

    .card {
        padding: 20px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.8rem;
    }

    section {
        padding: 32px 0 !important;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    h1 {
        font-size: clamp(1.25rem, 7vw, 2rem);
    }

    h2 {
        font-size: 1.25rem;
    }

    .card {
        padding: 16px;
    }

    .btn {
        display: block;
        width: 100%;
        padding: 12px 16px;
    }

    section {
        padding: 24px 0 !important;
    }
}

/* ========================================
   UTILIDADES
   ======================================== */

.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-muted);
}

.text-light {
    color: var(--text-light);
}

.bg-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
}

.shadow-lg {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.opacity-transition {
    transition: opacity 0.3s ease-out;
}

/* Ocultar elementos en mobile */
@media (max-width: 768px) {
    .hide-mobile {
        display: none;
    }
}

/* Mostrar solo en mobile */
@media (min-width: 769px) {
    .show-mobile-only {
        display: none;
    }
}
