/* ============================================
   ROCHENA.COM - ESTILOS PRINCIPALES
   Versión: 1.0
   Última actualización: 2024-02-11
   ============================================ */

/* ========== RESET Y BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #bb3e1e;
    --dark-bg: #050708;
    --text-light: #ffffff;
    --text-dark: #191919;
    --accent-color: #ec671b;
    --font-heading: 'Kanit', Arial, sans-serif;
    --font-body: 'DM Sans', Arial, sans-serif;
}

@font-face {
    font-family: 'Kanit';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('/fonts/kanit-variable.woff2') format('woff2');
}

@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url('/fonts/dm-sans-variable.woff2') format('woff2');
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* ========== SKIP LINK ACCESIBILIDAD ========== */
.skip-link {
    position: absolute;
    left: -9999px;
    z-index: 999999;
    padding: 1em;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
}

.skip-link:focus {
    left: 10px;
    top: 10px;
}

/* ========== HEADER STICKY ========== */
.main-header {
    background: var(--dark-bg);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.main-header.scrolled {
    padding: 10px 0;
    background: rgba(5,7,8,0.98);
    backdrop-filter: blur(10px);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    max-width: 200px;
    height: auto;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

/* ========== NAVIGATION ========== */
.main-nav {
    display: none;
}

.main-nav a {
    color: var(--text-light);
    padding: 10px 15px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--primary-color);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: block;
    background: var(--primary-color);
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    background: var(--accent-color);
}

/* ========== HERO SECTION ========== */
.hero-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    min-height: 400px;
}

.hero-card {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: 60px 30px;
    display: flex;
    align-items: flex-end;
    min-height: 400px;
    overflow: hidden;
}

.hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 560px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 300;
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: 1.6;
    opacity: 0.95;
}

/* ========== SERVICES SECTION ========== */
.services-section {
    padding: 80px 20px;
    background: var(--dark-bg);
}

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

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    text-align: center;
    margin-bottom: 20px;
    font-weight: 300;
}

.section-subtitle {
    text-align: center;
    font-size: clamp(1rem, 2vw, 1.125rem);
    margin-bottom: 50px;
    opacity: 0.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: rgba(255,255,255,0.05);
    padding: 30px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

.service-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.08);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(187,62,30,0.2);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.service-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-light);
}

.service-description {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.9;
}

/* ========== CONTACT FORM ========== */
.contact-section {
    padding: 80px 20px;
    background: var(--dark-bg);
}

.contact-form {
    max-width: 600px;
    margin: 40px auto 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-light);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255,255,255,0.5);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255,255,255,0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background: var(--primary-color);
    color: var(--text-light);
    border: none;
    padding: 15px 50px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(187,62,30,0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

/* ========== MAP SECTION ========== */
.map-section {
    padding: 80px 20px;
    background: var(--dark-bg);
}

.map-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 8px;
}

.contact-info {
    background: rgba(255,255,255,0.05);
    padding: 40px;
    border-radius: 8px;
    border: 2px solid var(--primary-color);
}

.info-item {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.info-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.info-item h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.info-item p,
.info-item address {
    font-style: normal;
    line-height: 1.6;
}

.info-item a {
    color: var(--text-light);
    transition: color 0.3s ease;
}

.info-item a:hover {
    color: var(--primary-color);
}

/* ========== FOOTER ========== */
.site-footer {
    background: #000;
    padding: 40px 20px;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    max-width: 150px;
    height: auto;
    margin: 0 auto;
}

.footer-content a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-content a:hover {
    color: var(--primary-color);
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.8s ease-out;
}

/* ========== RESPONSIVE TABLET ========== */
@media (min-width: 768px) {
    .hero-section {
        grid-template-columns: 1fr 1fr;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .map-grid {
        grid-template-columns: 2fr 1fr;
    }
    
    .map-container iframe {
        height: 600px;
    }
}

/* ========== RESPONSIVE DESKTOP ========== */
@media (min-width: 1024px) {
    .main-nav {
        display: flex;
        gap: 30px;
    }
    
    .mobile-menu-btn {
        display: none;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ========== PRINT STYLES ========== */
@media print {
    .main-header,
    .mobile-menu-btn,
    .site-footer {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    a {
        text-decoration: underline;
    }
}

/* ========== MENSAJES DEL FORMULARIO ========== */
.form-message {
    margin: 30px 0;
    padding: 25px;
    border-radius: 12px;
    display: none;
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-message-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 2px solid #28a745;
    color: #155724;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.2);
}

.form-message-error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border: 2px solid #dc3545;
    color: #721c24;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.2);
}

.form-message {
    display: flex;
    align-items: center;
    gap: 20px;
}

.message-icon {
    font-size: 3rem;
    line-height: 1;
    flex-shrink: 0;
}

.message-content h3 {
    margin: 0 0 10px 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.message-content p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.6;
}

.message-content a {
    color: inherit;
    text-decoration: underline;
    font-weight: 600;
}

.message-content a:hover {
    text-decoration: none;
}

/* Responsive para mensajes */
@media (max-width: 767px) {
    .form-message {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .message-icon {
        font-size: 2.5rem;
    }
    
    .message-content h3 {
        font-size: 1.3rem;
    }
    
    .message-content p {
        font-size: 1rem;
    }
}
