/* =========================================================
   Global reset & variables
   ========================================================= */
:root {
    --orange:   #cc1717;
    --orange-dark: #a81212;
    --dark:     #1c1c1c;
    --dark-2:   #2a2a2a;
    --dark-3:   #333333;
    --grey-light: #f5f5f5;
    --text:     #444444;
    --white:    #ffffff;
    --font-main: 'Open Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: var(--font-main);
    color: var(--text);
    margin: 0;
    padding: 0;
    font-size: 15px;
    line-height: 1.7;
}

a { color: var(--orange); text-decoration: none; }
a:hover { color: var(--orange-dark); }

img { max-width: 100%; height: auto; }

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--dark);
    line-height: 1.3;
}

/* =========================================================
   Top bar
   ========================================================= */
#topbar {
    background: var(--dark);
    color: #ccc;
    font-size: 13px;
    padding: 7px 0;
    border-bottom: 1px solid #333;
}

#topbar a { color: #ccc; }
#topbar a:hover { color: var(--orange); }

#topbar .topbar-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 20px;
}

#topbar .topbar-item i {
    color: var(--orange);
    font-size: 14px;
}

/* =========================================================
   Header / Navigation
   ========================================================= */
#main-header {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    border-bottom: 1px solid #e8e8e8;
}

#main-header .navbar-brand img {
    height: 58px;
    width: 58px;
    object-fit: contain;
    border-radius: 50%;
}

#main-header .navbar-nav .nav-link {
    color: #222;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 12px;
    transition: color 0.2s;
}

#main-header .navbar-nav .nav-link:hover {
    color: var(--orange);
}

#main-header .navbar-nav .nav-link.active {
    color: var(--orange);
    font-weight: 700;
}

#main-header .dropdown-menu {
    background: var(--white);
    border: 1px solid #e8e8e8;
    border-top: 2px solid var(--orange);
    border-radius: 0;
    min-width: 230px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

#main-header .dropdown-item {
    color: #222;
    font-size: 13px;
    padding: 8px 18px;
}

#main-header .dropdown-item:hover {
    background: var(--orange);
    color: var(--white);
}

.navbar-toggler {
    border-color: #ccc;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280,0,0,0.6%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* =========================================================
   Hero Slider
   ========================================================= */
#hero-slider {
    position: relative;
}

#hero-slider .carousel-item {
    height: 520px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

#hero-slider .slide-1 { background-image: url('../img/slider-1.jpg'); }
#hero-slider .slide-2 { background-image: url('../img/slider-2.jpg'); }
#hero-slider .slide-3 { background-image: url('../img/slider-3.jpg'); }

#hero-slider .carousel-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: flex;
    align-items: center;
}

#hero-slider .slide-content {
    max-width: 700px;
}

#hero-slider .slide-content h2 {
    color: var(--white);
    font-size: clamp(1.6rem, 4vw, 2.8rem);
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.2;
    margin-bottom: 15px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
}

#hero-slider .slide-content h2 span {
    color: var(--orange);
}

#hero-slider .slide-content p {
    color: #ddd;
    font-size: 15px;
    margin-bottom: 25px;
}

#hero-slider .slide-content .btn-slide {
    background: var(--orange);
    color: var(--white);
    border: none;
    padding: 12px 30px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 2px;
    transition: background 0.2s;
}

#hero-slider .slide-content .btn-slide:hover {
    background: var(--orange-dark);
    color: var(--white);
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(232,112,10,0.7);
    border-radius: 2px;
    opacity: 1;
}

.carousel-control-prev { left: 15px; }
.carousel-control-next { right: 15px; }

/* =========================================================
   Features strip  (Calidad / Equipo Tecnico / Equipo Humano)
   ========================================================= */
#features {
    background: var(--dark);
    padding: 50px 0;
}

.feature-card {
    text-align: center;
    padding: 25px 20px;
    border-right: 1px solid #333;
}

.feature-card:last-child { border-right: none; }

.feature-card .icon-wrap {
    width: 70px;
    height: 70px;
    background: var(--orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}

.feature-card .icon-wrap i {
    color: var(--white);
    font-size: 28px;
}

.feature-card h3 {
    color: var(--white);
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.feature-card p {
    color: #aaa;
    font-size: 14px;
    margin: 0;
}

/* =========================================================
   Section titles
   ========================================================= */
.section-title {
    text-align: center;
    margin-bottom: 45px;
}

.section-title h2 {
    font-size: clamp(1.4rem, 3vw, 2rem);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
    margin-bottom: 0;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--orange);
}

/* =========================================================
   Services section
   ========================================================= */
#services {
    padding: 70px 0;
    background: var(--white);
}

.service-card {
    background: var(--white);
    border: 1px solid #e8e8e8;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 25px;
    transition: box-shadow 0.2s, transform 0.2s;
    display: block;
    color: var(--text);
}

.service-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    transform: translateY(-3px);
    color: var(--text);
    text-decoration: none;
}

.service-card .card-img-wrap {
    height: 180px;
    overflow: hidden;
    background: #eee;
}

.service-card .card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.service-card:hover .card-img-wrap img {
    transform: scale(1.05);
}

.service-card .card-body {
    padding: 18px 20px;
}

.service-card h3 {
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 8px;
    color: var(--dark);
}

.service-card p {
    font-size: 13px;
    color: #777;
    margin: 0;
}

.service-card .read-more {
    display: inline-block;
    margin-top: 10px;
    font-size: 12px;
    font-weight: 700;
    color: var(--orange);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* =========================================================
   CTA banner
   ========================================================= */
#cta-banner {
    background: var(--dark-2);
    padding: 60px 0;
    text-align: center;
    border-top: 3px solid var(--orange);
    border-bottom: 3px solid var(--orange);
}

#cta-banner blockquote {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: var(--white);
    font-style: italic;
    font-weight: 600;
    max-width: 800px;
    margin: 0 auto 25px;
    line-height: 1.5;
}

#cta-banner p {
    color: #bbb;
    font-size: 15px;
    max-width: 700px;
    margin: 0 auto 30px;
}

.btn-primary-orange {
    background: var(--orange);
    color: var(--white);
    border: 2px solid var(--orange);
    padding: 12px 35px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 2px;
    display: inline-block;
    transition: background 0.2s, color 0.2s;
}

.btn-primary-orange:hover {
    background: transparent;
    color: var(--orange);
}

/* =========================================================
   Contact form section
   ========================================================= */
#contact-section {
    padding: 70px 0;
    background: var(--grey-light);
}

#contact-section .contact-form {
    background: var(--white);
    padding: 35px;
    border-radius: 3px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
}

#contact-section .form-control {
    border-radius: 2px;
    border: 1px solid #ddd;
    padding: 10px 14px;
    font-size: 14px;
}

#contact-section .form-control:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 0.15rem rgba(232,112,10,0.2);
}

#contact-section .btn-submit {
    background: var(--orange);
    color: var(--white);
    border: none;
    padding: 12px 35px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
    border-radius: 2px;
    width: 100%;
    cursor: pointer;
    transition: background 0.2s;
}

#contact-section .btn-submit:hover {
    background: var(--orange-dark);
}

#contact-section .required-note {
    font-size: 12px;
    color: #999;
    margin-bottom: 15px;
}

.form-check-input:checked {
    background-color: var(--orange);
    border-color: var(--orange);
}

/* =========================================================
   Visit / info section
   ========================================================= */
#visit-section {
    background: var(--dark);
    padding: 60px 0;
}

.visit-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    align-items: flex-start;
}

.visit-item .icon-wrap {
    width: 42px;
    height: 42px;
    background: var(--orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.visit-item .icon-wrap i {
    color: var(--white);
    font-size: 16px;
}

.visit-item .info h5 {
    color: var(--white);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.visit-item .info p,
.visit-item .info a {
    color: #bbb;
    font-size: 14px;
    margin: 0;
    line-height: 1.6;
}

.visit-item .info a:hover { color: var(--orange); }

/* =========================================================
   Footer
   ========================================================= */
#main-footer {
    background: #111;
    padding: 50px 0 20px;
    color: #aaa;
    font-size: 14px;
}

#main-footer h4 {
    color: var(--white);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #333;
}

#main-footer p { color: #aaa; line-height: 1.7; }

#main-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#main-footer ul li {
    margin-bottom: 8px;
}

#main-footer ul li a {
    color: #aaa;
    font-size: 14px;
    transition: color 0.2s;
}

#main-footer ul li a:hover { color: var(--orange); }

#main-footer ul li a::before {
    content: '\f054';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 10px;
    color: var(--orange);
    margin-right: 7px;
}

#main-footer .footer-logo img {
    height: 70px;
    width: 70px;
    object-fit: contain;
    border-radius: 50%;
}

#main-footer .footer-contact p {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 10px;
}

#main-footer .footer-contact p i {
    color: var(--orange);
    margin-top: 3px;
    flex-shrink: 0;
}

#main-footer .footer-bottom {
    border-top: 1px solid #222;
    margin-top: 35px;
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
    color: #666;
}

#main-footer .footer-bottom a { color: #888; }
#main-footer .footer-bottom a:hover { color: var(--orange); }

/* =========================================================
   Cookie banner
   ========================================================= */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--dark-2);
    color: #ccc;
    padding: 14px 20px;
    font-size: 13px;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    border-top: 2px solid var(--orange);
    box-shadow: 0 -2px 15px rgba(0,0,0,0.3);
}

#cookie-banner a { color: var(--orange); }

#cookie-banner .btn-accept-cookies {
    background: var(--orange);
    color: var(--white);
    border: none;
    padding: 7px 20px;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    border-radius: 2px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}

#cookie-banner .btn-accept-cookies:hover { background: var(--orange-dark); }

/* =========================================================
   Privacy modal
   ========================================================= */
#privacy-modal .modal-header {
    background: var(--dark);
    color: var(--white);
    border-bottom: 2px solid var(--orange);
}

#privacy-modal .modal-title { color: var(--white); }

#privacy-modal .modal-body { font-size: 13px; line-height: 1.7; }

#privacy-modal .modal-body table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-bottom: 0;
}

#privacy-modal .modal-body table td {
    border: 1px solid #ddd;
    padding: 8px 12px;
    vertical-align: top;
}

#privacy-modal .modal-body table td:first-child {
    font-weight: 700;
    background: #f8f8f8;
    white-space: nowrap;
    width: 140px;
}

/* =========================================================
   Inner pages
   ========================================================= */
.page-hero {
    background: var(--dark);
    padding: 50px 0;
    margin-bottom: 0;
}

.page-hero h1 {
    color: var(--white);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.page-hero .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: 13px;
}

.page-hero .breadcrumb-item a { color: #bbb; }
.page-hero .breadcrumb-item a:hover { color: var(--orange); }
.page-hero .breadcrumb-item.active { color: var(--orange); }
.page-hero .breadcrumb-item + .breadcrumb-item::before { color: #666; }

.page-content {
    padding: 60px 0;
}

.page-content h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--orange);
    display: inline-block;
}

.page-content p { margin-bottom: 18px; }

.page-content ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.page-content ul li { margin-bottom: 8px; }

.page-content ul li::marker { color: var(--orange); }

/* =========================================================
   Nosotros page
   ========================================================= */
.about-body {
    overflow: hidden;
}

.about-img-float {
    float: right;
    width: 45%;
    margin: 0 0 25px 35px;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    display: block;
}

@media (max-width: 767px) {
    .about-img-float {
        float: none;
        width: 100%;
        margin: 0 0 25px 0;
    }
}

/* =========================================================
   Contact page standalone
   ========================================================= */
.contact-info-card {
    background: var(--dark);
    border-radius: 3px;
    padding: 30px;
    height: 100%;
}

.contact-info-card h3 {
    color: var(--white);
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--orange);
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 991px) {
    #topbar { display: none; }

    #hero-slider .carousel-item { height: 380px; }

    #main-header .navbar-collapse {
        background: var(--white);
        border-top: 1px solid #e8e8e8;
        padding: 15px;
        margin-top: 10px;
    }

    .feature-card { border-right: none; border-bottom: 1px solid #333; }
    .feature-card:last-child { border-bottom: none; }
}

@media (max-width: 575px) {
    #hero-slider .carousel-item { height: 300px; }
    #hero-slider .slide-content h2 { font-size: 1.3rem; }
    #cookie-banner { flex-direction: column; text-align: center; }
    #contact-section .contact-form { padding: 20px; }
}
