/*
Theme Name: TABORIS Constructora
Description: Tema profesional para empresa constructora TABORIS Integral
Version: 1.0
Author: Tu Nombre
Text Domain: taboris
*/

:root {
    /* Paleta de colores profesional basada en el logo */
    --primary-color: #2B3A47;      /* Gris oscuro profesional */
    --secondary-color: #4A5C6A;    /* Gris medio */
    --accent-color: #E67E22;       /* Naranja construcción */
    --light-gray: #F8F9FA;         /* Gris muy claro */
    --medium-gray: #6C757D;        /* Gris medio */
    --dark-gray: #343A40;          /* Gris oscuro */
    --white: #FFFFFF;
    --success-color: #28A745;      /* Verde éxito */
    --warning-color: #FFC107;      /* Amarillo advertencia */
    
    /* Tipografía inspirada en el logo */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--dark-gray);
    overflow-x: hidden;
}

/* Header */
.header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px;
    min-height: 100px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    height: 95px;
    max-width: 200px;
    padding: 10px 0;
}

.logo img {
    height: 95px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

/* Logo fallback cuando no hay imagen personalizada */
.logo-text {
    font-size: 28px;
    font-weight: var(--font-weight-extrabold);
    color: var(--primary-color);
    letter-spacing: -1px;
    display: flex;
    align-items: center;
}

/* Ocultar el elemento ::before por defecto */
.logo::before {
    display: none;
}

/* Solo mostrar el logo geométrico si no hay custom logo */
.logo:not(.has-custom-logo)::before {
    display: block;
    content: '';
    width: 35px;
    height: 35px;
    background: var(--primary-color);
    margin-right: 10px;
    clip-path: polygon(0 0, 70% 0, 70% 30%, 100% 30%, 100% 100%, 30% 100%, 30% 70%, 0 70%);
    flex-shrink: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: var(--font-weight-medium);
    font-size: 16px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: var(--accent-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

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

.cta-button {
    background: var(--accent-color);
    color: var(--white);
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.cta-button:hover {
    background: #D35400;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 126, 34, 0.4);
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 140px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::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="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(48px, 8vw, 72px);
    font-weight: var(--font-weight-extrabold);
    margin-bottom: 20px;
    letter-spacing: -2px;
}

.hero p {
    font-size: 20px;
    margin-bottom: 40px;
    color: rgba(255,255,255,0.9);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--white);
    padding: 16px 32px;
    border: none;
    border-radius: 8px;
    font-weight: var(--font-weight-semibold);
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary:hover {
    background: #D35400;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(230, 126, 34, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    padding: 16px 32px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    font-weight: var(--font-weight-semibold);
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--white);
}

/* Services Section */
.services {
    padding: 100px 0;
    background: var(--light-gray);
}

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

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: clamp(36px, 5vw, 48px);
    font-weight: var(--font-weight-bold);
    color: var(--primary-color);
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--medium-gray);
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

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

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--accent-color);
    border-radius: 50%;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: var(--white);
}

.service-card h3 {
    font-size: 24px;
    font-weight: var(--font-weight-semibold);
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-card p {
    color: var(--medium-gray);
    line-height: 1.7;
}

/* Projects Section */
.projects {
    padding: 100px 0;
    background: var(--white);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.project-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.project-image {
    height: 250px;
    background: linear-gradient(45deg, var(--light-gray), var(--medium-gray));
    position: relative;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-image::after {
    content: '🏗️';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
}

.project-image:has(img)::after {
    display: none;
}

.project-content {
    padding: 30px;
}

.project-content h3 {
    font-size: 22px;
    font-weight: var(--font-weight-semibold);
    color: var(--primary-color);
    margin-bottom: 10px;
}

.project-content p {
    color: var(--medium-gray);
    margin-bottom: 20px;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid var(--light-gray);
}

.project-category {
    background: var(--light-gray);
    color: var(--medium-gray);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: var(--font-weight-medium);
}

.project-date {
    color: var(--medium-gray);
    font-size: 14px;
}

/* About Section */
.about {
    padding: 100px 0;
    background: var(--primary-color);
    color: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: clamp(32px, 4vw, 42px);
    font-weight: var(--font-weight-bold);
    margin-bottom: 30px;
    letter-spacing: -1px;
}

.about-text p {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 20px;
    color: rgba(255,255,255,0.9);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
}

.stat-number {
    font-size: 36px;
    font-weight: var(--font-weight-extrabold);
    color: var(--accent-color);
    display: block;
}

.stat-label {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    margin-top: 5px;
}

.about-image {
    height: 400px;
    background: linear-gradient(45deg, var(--secondary-color), var(--accent-color));
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-image::after {
    content: '🏢';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 80px;
}

.about-image:has(img)::after {
    display: none;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: var(--light-gray);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h3 {
    font-size: 28px;
    font-weight: var(--font-weight-semibold);
    color: var(--primary-color);
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    color: var(--white);
    font-size: 20px;
}

.contact-details h4 {
    font-weight: var(--font-weight-semibold);
    color: var(--primary-color);
    margin-bottom: 5px;
}

.contact-details p {
    color: var(--medium-gray);
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

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

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-color);
}

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

.success-message {
    background: var(--success-color);
    color: var(--white);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 20px;
    font-weight: var(--font-weight-semibold);
    margin-bottom: 20px;
    color: var(--accent-color);
}

.footer-section p,
.footer-section li {
    color: rgba(255,255,255,0.8);
    line-height: 1.7;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
}

/* Responsive design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        flex-direction: column;
        gap: 0;
        padding: 20px;
    }

    .nav-menu.show {
        display: flex;
    }

    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Logo responsive */
    .logo {
        height: 70px;
        max-width: 150px;
        padding: 5px 0;
    }
    
    .logo img {
        height: 70px;
        max-width: 140px;
    }
    
    .logo-text {
        font-size: 22px;
    }
    
    .logo:not(.has-custom-logo)::before {
        width: 28px;
        height: 28px;
        margin-right: 8px;
    }
    
    /* Header móvil */
    .nav-container {
        height: 80px;
        min-height: 80px;
        padding: 0 15px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 280px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

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

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

/* Custom logo específico */
.custom-logo {
    height: 95px !important;
    width: auto !important;
    max-width: 200px !important;
    object-fit: contain !important;
    transition: all 0.3s ease;
}

.custom-logo-link {
    display: flex !important;
    align-items: center !important;
    text-decoration: none !important;
    height: 95px;
    max-width: 200px;
    padding: 10px 0;
}

.custom-logo-link:hover .custom-logo {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .custom-logo {
        height: 70px !important;
        max-width: 140px !important;
    }
    
    .custom-logo-link {
        height: 70px !important;
        max-width: 150px !important;
        padding: 5px 0 !important;
    }
}

@media (max-width: 480px) {
    .custom-logo {
        height: 60px !important;
        max-width: 120px !important;
    }
    
    .custom-logo-link {
        height: 60px !important;
        max-width: 130px !important;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
.mt-40 { margin-top: 40px; }