/* ===================================
   ANTICORR SA - Modern CSS
   Mantiene la estética original con código limpio y moderno
   =================================== */

/* Reset y Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colores originales del sitio */
    --primary-color: #A52320;
    --secondary-color: #454545;
    --text-color: #868686;
    --heading-color: #454545;
    --white: #FFFFFF;
    --black: #000000;
    --gray-light: #EEEEEE;
    --gray-medium: #B5B5B5;
    --gray-dark: #636363;

    /* Tipografía */
    --font-primary: 'Montserrat', Helvetica, Arial, sans-serif;

    /* Tamaños de fuente */
    --font-size-base: 14px;
    --font-size-h1: 28px;
    --font-size-h2: 24px;
    --font-size-h3: 20px;
    --font-size-h4: 16px;
    --font-size-h5: 14px;
    --font-size-h6: 12px;

    /* Espaciado */
    --container-width: 1170px;
    --section-padding: 50px 0;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* El footer siempre al final de la página */
.footer {
    margin-top: auto;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.2;
    color: var(--heading-color);
}

h1 { font-size: var(--font-size-h1); }
h2 { font-size: var(--font-size-h2); }
h3 { font-size: var(--font-size-h3); }
h4 { font-size: var(--font-size-h4); }
h5 { font-size: var(--font-size-h5); }
h6 { font-size: var(--font-size-h6); }

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
}

/* ===================================
   HEADER
   =================================== */

.header {
    background-color: var(--white);
    position: relative;
    z-index: 1000;
}

/* Top Bar */
.topbar {
    background-color: var(--gray-light);
    padding: 10px 0;
}

.topbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar-contacts {
    color: var(--text-color);
    font-size: 13px;
}

.topbar-contacts i {
    color: var(--primary-color);
    margin-right: 5px;
}

.topbar-contacts a {
    color: var(--text-color);
}

.topbar-contacts a:hover {
    color: var(--primary-color);
}

/* Header Middle */
.header-middle {
    padding: 20px 0;
}

.header-middle-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
}

.header-contacts {
    display: flex;
    gap: 40px;
}

.header-contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-contact-icon {
    background-color: var(--gray-medium);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}

.header-contact-icon::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    border-left: 10px solid var(--gray-medium);
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
}

.header-contact-icon i {
    color: var(--primary-color);
    font-size: 24px;
}

.header-contact-info {
    display: flex;
    flex-direction: column;
}

.header-contact-title {
    font-size: 12px;
    color: var(--text-color);
    font-weight: 600;
}

.header-contact-link {
    font-size: 13px;
    color: var(--text-color);
    font-weight: 400;
}

/* Main Navigation */
.main-nav {
    background-color: var(--primary-color);
    position: sticky;
    top: 0;
    z-index: 999;
}

.nav-content {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item a {
    display: block;
    padding: 18px 20px;
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.nav-item:hover a,
.nav-item.active a {
    border-bottom-color: var(--gray-medium);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background-color: var(--white);
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    z-index: 9999;
    transition: left 0.3s ease;
    overflow-y: auto;
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu-header {
    padding: 20px;
    border-bottom: 1px solid var(--gray-light);
    display: flex;
    justify-content: flex-end;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--secondary-color);
}

.mobile-nav {
    padding: 20px 0;
}

.mobile-nav a {
    display: block;
    padding: 15px 20px;
    color: var(--secondary-color);
    font-weight: 600;
    border-bottom: 1px solid var(--gray-light);
    transition: background-color 0.3s ease;
}

.mobile-nav a:hover,
.mobile-nav a.active {
    background-color: var(--gray-light);
    color: var(--primary-color);
}

/* ===================================
   HERO SLIDER
   =================================== */

.hero-slider {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    align-items: center;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 800px;
}

.slide-title {
    font-size: 50px;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 700;
    color: #ffffff;
    animation: slideInLeft 0.6s ease forwards;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8),
                 0 0 20px rgba(0, 0, 0, 0.6),
                 3px 3px 8px rgba(0, 0, 0, 0.9);
}

.slide-subtitle {
    font-size: 18px;
    line-height: 1.6;
    color: #ffffff;
    animation: slideInLeft 0.6s ease 0.2s forwards;
    opacity: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8),
                 0 0 15px rgba(0, 0, 0, 0.7);
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    z-index: 10;
    transition: all 0.3s ease;
}

.slider-arrow:hover {
    background: var(--primary-color);
}

.slider-arrow-prev {
    left: 30px;
}

.slider-arrow-next {
    right: 30px;
}

/* ===================================
   SERVICES SECTION
   =================================== */

.services-section {
    padding: 50px 0 30px;
}

.section-header {
    text-align: left;
    margin-bottom: 40px;
}

.section-subtitle {
    color: rgba(0, 0, 0, 0.4);
    font-size: 14px;
    margin-bottom: 10px;
}

.section-title {
    font-size: 24px;
    line-height: 1.2;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--heading-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.service-icon {
    background-color: var(--primary-color);
    width: 70px;
    height: 70px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.service-icon i {
    color: var(--white);
    font-size: 36px;
}

.service-title {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--heading-color);
}

.service-description {
    color: var(--text-color);
    line-height: 1.6;
}

/* ===================================
   QUOTE SECTION
   =================================== */

.quote-section {
    padding: 50px 0;
    background: var(--black) url('../images/uploads/revslider/homepage-02/slider-home02-037bf47bf4.jpg') center/cover no-repeat;
    position: relative;
}

.quote-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
}

.quote-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.quote-intro {
    font-size: 22px;
    color: #cccccc;
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.6;
}

.quote-text {
    font-size: 16px;
    color: var(--white);
    font-weight: 700;
    line-height: 1.6;
    margin: 20px 0;
    padding: 0;
    border: none;
}

.quote-author {
    font-size: 16px;
    color: var(--white);
    font-weight: 300;
    letter-spacing: 5px;
}

/* ===================================
   ABOUT SECTION
   =================================== */

.about-section {
    padding: 50px 0;
    border-top: 50px solid var(--gray-light);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text {
    margin: 20px 0;
}

.about-text p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.about-text strong {
    color: var(--heading-color);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #f2f2f2;
    border-color: rgba(0, 0, 0, 0.01);
}

.btn-primary:hover {
    background-color: #bf0900;
    color: var(--white);
}

/* ===================================
   CONTACT INFO SECTION
   =================================== */

.contact-info-section {
    padding: 50px 0;
    background-color: var(--gray-dark);
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.contact-info-card {
    background-color: rgba(10, 10, 10, 0.42);
    padding: 30px;
    border-radius: 5px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-info-icon {
    background-color: rgba(0, 0, 0, 0.62);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-info-icon i {
    color: var(--primary-color);
    font-size: 32px;
}

.contact-info-title {
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
    margin-bottom: 10px;
    font-weight: 700;
}

.contact-info-text {
    color: var(--white);
    font-size: 14px;
    line-height: 1.6;
}

.contact-info-text a {
    color: var(--white);
}

.contact-info-text a:hover {
    color: var(--primary-color);
}

/* ===================================
   FOOTER
   =================================== */

.footer {
    background-color: var(--black);
    color: rgba(255, 255, 255, 0.5);
}

.footer-widgets {
    padding: 60px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-widget-title {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 700;
}

.footer-logo img {
    width: 70%;
    margin-bottom: 15px;
}

.footer-widget p {
    line-height: 1.8;
}

.footer-menu {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 20px;
}

.footer-menu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.footer-menu a {
    display: block;
    padding: 10px 0;
    transition: color 0.3s ease;
}

.footer-menu a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    padding: 20px 0;
}

.footer-bottom-content {
    text-align: center;
}

.footer-copyright p {
    font-size: 13px;
}

/* ===================================
   SCROLL TO TOP BUTTON
   =================================== */

.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 18px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

/* ===================================
   GALLERY LIGHTBOX
   =================================== */

.gallery-item {
    cursor: pointer;
}

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 5px;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 40px;
    color: var(--white);
    cursor: pointer;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: var(--primary-color);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 30px;
    color: var(--white);
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: var(--primary-color);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

@media (max-width: 768px) {
    .lightbox-prev,
    .lightbox-next {
        font-size: 20px;
        padding: 10px 15px;
    }

    .lightbox-close {
        font-size: 30px;
        top: -35px;
    }
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background-color: var(--primary-color);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media screen and (max-width: 992px) {
    .header-contacts {
        display: none;
    }

    .nav-menu {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
        position: absolute;
        left: 15px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .contact-info-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-slider {
        height: 400px;
    }

    .slide-title {
        font-size: 30px;
    }

    .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .slider-arrow-prev {
        left: 15px;
    }

    .slider-arrow-next {
        right: 15px;
    }
}

@media screen and (max-width: 768px) {
    .topbar {
        display: none;
    }

    .logo img {
        height: 50px;
    }

    .header-middle {
        padding: 15px 0;
    }

    .section-title {
        font-size: 20px;
    }

    .slide-subtitle {
        display: none;
    }
}

@media screen and (max-width: 480px) {
    .slide-title {
        font-size: 24px;
    }

    .hero-slider {
        height: 350px;
    }

    .service-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
}
