/* 
   Estilos personalizados para la página web empresarial
   Colores principales: Negro (#000000) y Naranja (#FF6600)
*/

/* Variables de colores */
:root {
    --primary-color: #FF6600;
    --dark-color: #000000;
    --light-color: #FFFFFF;
    --gray-color: #F8F9FA;
    --dark-gray: #343A40;
}

/* Estilos generales */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

.section-title {
    position: relative;
    margin-bottom: 30px;
    color: var(--dark-color);
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    margin-top: 10px;
}

.text-center .section-title::after {
    margin-left: auto;
    margin-right: auto;
}

/* Colores personalizados */
.text-orange {
    color: var(--primary-color) !important;
}

.bg-orange {
    background-color: var(--primary-color) !important;
}

.btn-orange {
    background-color: var(--primary-color);
    color: var(--light-color);
    border: none;
    transition: all 0.3s ease;
}

.btn-orange:hover {
    background-color: #e55a00;
    color: var(--light-color);
}

.btn-outline-orange {
    color: var(--primary-color);
    border-color: var(--primary-color);
    transition: all 0.3s ease;
}

.btn-outline-orange:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
}

/* Navbar */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.nav-link.active {
    color: var(--primary-color) !important;
}

/* Carousel */
.carousel-item {
    height: 600px;
}

.carousel-item img {
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.carousel-caption {
    bottom: 20%;
    padding: 20px;
}

.carousel-caption h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

/* About Section */
.about-section {
    background-color: var(--light-color);
}

/* Services Preview */
.service-card {
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

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

/* Latest News */
.news-card {
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.news-card img {
    height: 200px;
    object-fit: cover;
}

/* CTA Section */
.cta-section {
    background-color: var(--dark-color);
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../img/cta-bg.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.3;
}

/* Footer */
footer {
    background-color: var(--dark-color);
}

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

footer a:hover {
    color: var(--primary-color) !important;
    text-decoration: none;
}

.social-icons a {
    display: inline-block;
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--primary-color);
}

/* Page Header */
.page-header {
    background-color: var(--dark-color);
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../img/header-bg.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.3;
}

/* Contact Form */
.contact-form {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin: 0 auto;
}

.contact-form .form-control {
    border-radius: 4px;
    border: 1px solid #ddd;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

.contact-form .btn {
    margin-top: 10px;
    padding: 10px 30px;
}

.contact-icon {
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background-color: var(--primary-color);
    color: var(--light-color);
    border-radius: 50%;
}

/* Services Page */
.service-img-container img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.service-features {
    list-style: none;
    padding-left: 0;
    margin-top: 20px;
}

.service-features li {
    margin-bottom: 10px;
}

.feature-card {
    background-color: var(--light-color);
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.testimonial-card {
    background-color: var(--light-color);
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.testimonial-text {
    position: relative;
    padding-left: 20px;
}

.testimonial-text::before {
    content: '\201C';
    font-size: 60px;
    color: var(--primary-color);
    position: absolute;
    left: -10px;
    top: -20px;
    opacity: 0.2;
}

/* News Detail Page */
.noticia-title {
    font-size: 2.2rem;
    font-weight: 700;
}

.noticia-meta {
    color: #6c757d;
}

.noticia-featured-img img {
    width: 100%;
    height: auto;
}

.noticia-content {
    line-height: 1.8;
}

.social-share a {
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    transition: all 0.3s ease;
}

.social-share a:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
    border-color: var(--primary-color);
}

.widget-title {
    position: relative;
    margin-bottom: 20px;
    padding-bottom: 10px;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.recent-post a {
    color: var(--dark-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.recent-post a:hover {
    color: var(--primary-color);
}

/* Responsive Styles */
/* Large Devices (Desktops) */
@media (max-width: 1199.98px) {
    .carousel-item {
        height: 500px;
    }
    
    .service-icon {
        font-size: 2.5rem;
    }
}

/* Medium Devices (Tablets) */
@media (max-width: 991.98px) {
    .carousel-item {
        height: 450px;
    }
    
    .carousel-caption {
        bottom: 15%;
    }
    
    .carousel-caption h2 {
        font-size: 2rem;
    }
    
    /* Ajustes para servicios */
    .service-card {
        margin-bottom: 20px;
    }
    
    /* Ajustes para footer */
    footer .col-md-4 {
        margin-bottom: 30px;
    }
    
    /* Ajustes para about section */
    .about-section .col-lg-6:first-child {
        margin-bottom: 30px;
    }
}

/* Small Devices (Landscape Phones) */
@media (max-width: 767.98px) {
    .carousel-item {
        height: 350px;
    }
    
    .carousel-caption h2 {
        font-size: 1.5rem;
    }
    
    .carousel-caption .btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.875rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    /* Ajustes para noticias */
    .news-card {
        margin-bottom: 20px;
    }
    
    .news-card img {
        height: 180px;
    }
    
    /* Ajustes para servicios */
    .service-img-container img {
        height: 250px;
    }
    
    /* Ajustes para contacto */
    .contact-info {
        margin-bottom: 30px;
    }
}

/* Extra Small Devices (Portrait Phones) */
@media (max-width: 575.98px) {
    .carousel-item {
        height: 250px;
    }
    
    .carousel-caption {
        bottom: 10%;
        padding: 10px;
    }
    
    .carousel-caption h2 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    
    .carousel-caption p {
        display: none;
    }
    
    .carousel-caption .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
    
    /* Ajustes para secciones */
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    /* Ajustes para cards */
    .card-title {
        font-size: 1.2rem;
    }
    
    .service-icon {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    /* Ajustes para página de noticias */
    .noticia-title {
        font-size: 1.5rem;
    }
    
    /* Ajustes para navbar */
    .navbar-brand {
        font-size: 1.2rem;
    }
}

/* Ajustes específicos para dispositivos muy pequeños */
@media (max-width: 320px) {
    .carousel-item {
        height: 200px;
    }
    
    .carousel-caption h2 {
        font-size: 1rem;
    }
    
    .btn {
        padding: 0.2rem 0.4rem;
        font-size: 0.7rem;
    }
}

/* Botón Volver Arriba */
.scroll-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    padding: 0;
    line-height: 40px;
}
