/* Variables CSS */
:root {
    --primary: #000000;
    --secondary: #000000;
    --accent: #ffffff;
    --gray: #f9f9f9;
    --dark-gray: #1a1a1a;
    --light-gray: #e8e8e8;
    --white: #ffffff;
    --black: #000000;
    --text: #000000;
    --text-light: #2a2a2a;
    --transition: all 0.3s ease;
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text);
    overflow-x: hidden;
}

/* Header Desktop */
header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

header nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--black);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--black);
}

/* Header Móvil - Oculto por defecto */
.mobile-header {
    display: none;
    background: var(--black);
    color: var(--white);
    text-align: center;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 999;
}

.mobile-header-content h1 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}

/* Botón hamburguesa flotante */
.floating-menu-btn {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: var(--black);
    border-radius: 50%;
    cursor: pointer;
    z-index: 1001;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    justify-content: center;
    align-items: center;
}

.floating-menu-btn:hover {
    transform: scale(1.1);
}

.hamburger-lines {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.hamburger-lines .line {
    width: 25px;
    height: 3px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

.floating-menu-btn.active .line:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.floating-menu-btn.active .line:nth-child(2) {
    opacity: 0;
}

.floating-menu-btn.active .line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Menú lateral móvil */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: left 0.3s ease;
    overflow-y: auto;
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--light-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-small img {
    height: 40px;
    width: auto;
}

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

.close-menu:hover {
    color: var(--black);
    transform: rotate(90deg);
}

.mobile-menu-content {
    padding: 2rem 0;
}

.mobile-menu-link {
    display: block;
    padding: 1rem 2rem;
    color: var(--text);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.mobile-menu-link:hover {
    background: var(--gray);
    border-left-color: var(--black);
    color: var(--black);
}

/* Main Content */
main {
    margin-top: 82px;
}

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

/* Hero Section */
.hero {
    background: #000000;
    color: var(--white);
    padding: 6rem 0;
    text-align: center;
}

.hero-logo {
    margin-bottom: 2rem;
}

.hero-logo img {
    height: 350px;
    width: auto;
    max-width: 90%;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.3rem;
    font-weight: 300;
    opacity: 0.9;
}

/* Secciones generales */
section {
    padding: 5rem 0;
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary);
    text-align: center;
    position: relative;
}

section h2::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: var(--black);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

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

.content-grid img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.content-grid img:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Contacto */
.contact-intro {
    max-width: 700px;
    margin: 0 auto 4rem;
    text-align: center;
}

.contact-intro p {
    font-size: 1.3rem;
    line-height: 1.8;
    color: var(--text);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.contact-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid var(--light-gray);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--black);
    transform: scaleX(0);
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-10px);
    border-color: var(--black);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

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

.contact-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--black);
    border-radius: 50%;
    transition: var(--transition);
}

.contact-icon svg {
    stroke: var(--white);
}

.contact-card:hover .contact-icon {
    transform: scale(1.1) rotate(5deg);
}

.contact-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--black);
    font-weight: 600;
}

.contact-card a {
    color: var(--text);
    text-decoration: none;
    font-size: 1.1rem;
    transition: var(--transition);
    display: inline-block;
}

.contact-card a:hover {
    color: var(--black);
    font-weight: 600;
}

.contact-card p {
    color: var(--text);
    font-size: 1.1rem;
    margin: 0;
}

/* Footer */
footer {
    background: var(--black);
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
}

footer p {
    opacity: 0.8;
}

/* Overlay para menú móvil */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-overlay.active {
    display: block;
    opacity: 1;
}
