/* Transportes Transfeli - Style Sheet */

:root {
    --primary-red: #e30613;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #ffffff;
    --bg-off-white: #f5f5f5;
    --font-primary: 'Montserrat', sans-serif;
    --transition-speed: 0.3s;
}

/* API Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
}

h1,
h2,
h3,
h4,
h5,
h6,
.section-title {
    font-family: 'Raleway', sans-serif;
    margin-bottom: 15px;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed);
}

ul {
    list-style: none;
}

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

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

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--primary-red);
    color: white;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    text-decoration: none;
    text-align: center;
    max-width: 100%;
}

.btn:hover {
    background-color: #c20510;
}

/* Header & Navigation */
header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo img {
    height: 60px;
    /* Adjust based on actual logo aspect ratio */
}

nav ul {
    display: flex;
    gap: 30px;
    align-items: center;
}

nav a {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-dark);
}

nav a:hover,
nav a.active {
    color: var(--primary-red);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    margin-left: auto;
}

/* Hero Section */
.hero {
    /* Background handled inline or via utility */
    height: 40vh;
    /* Reduced from 80vh as per user request */
    min-height: 400px;
    /* Ensure content fits comfortably */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Overlay */
    z-index: 1;
}

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

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Services Summary */
.services-summary {
    padding: 80px 0;
    background-color: var(--bg-light);
    text-align: center;
}

.section-title {
    font-size: 50px;
    margin-bottom: 50px;
    color: #333333;
    font-weight: 300;
}

.section-title span {
    font-weight: 700;
    color: #333333;
}

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

.service-card {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card h3 {
    margin: 20px 0;
    font-size: 1.5rem;
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: white;
    padding: 60px 0 20px;
}

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

.footer-col h4 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    border-bottom: 2px solid var(--primary-red);
    display: inline-block;
    padding-bottom: 10px;
}

.footer-col p {
    color: #cccccc;
    margin-bottom: 10px;
}

.copyright {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 20px;
    color: #666;
    font-size: 0.9rem;
}

/* Responsive */
/* Responsive Layout Helpers (New) */
.responsive-row {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
    align-items: center;
    flex-wrap: wrap;
}

.responsive-row.reverse {
    flex-direction: row-reverse;
}

.responsive-col {
    flex: 1;
    min-width: 300px;
}

.responsive-col img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Contact Page Grid (Moved from inline) */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

/* Contact Page Specifics */
.contact-info-item {
    margin-bottom: 30px;
    display: flex;
    align-items: flex-start;
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--primary-red);
    margin-right: 15px;
    width: 30px;
}

form input,
form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

form textarea {
    height: 150px;
    resize: vertical;
}

form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

/* Homepage Services Specifics */
.services-home-section {
    padding: 80px 0;
    background-color: #fcfcfc;
    text-align: center;
}

#nosotros {
    padding: 80px 0;
}

.services-home-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 50px;
}

.service-box {
    text-align: center;
    padding: 20px;
}

.service-icon-circle {
    width: 80px;
    height: 80px;
    border: 2px solid var(--primary-red);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.service-box:hover .service-icon-circle {
    background-color: var(--primary-red);
}

.service-box:hover .service-icon-svg {
    fill: white;
}

.service-icon-svg {
    width: 35px;
    height: 35px;
    fill: var(--primary-red);
    transition: fill 0.3s ease;
}

.service-box h3 {
    color: #dd3333;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.service-box p {
    color: #7a7a7a;
    font-size: 0.95rem;
    line-height: 1.8;
}

/* Responsive Media Queries */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    /* Header & Nav */
    .mobile-menu-btn {
        display: block;
    }

    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        text-align: center;
        border-top: 1px solid #eee;
    }

    nav ul.active {
        display: flex;
    }

    nav ul li {
        margin: 15px 0;
    }

    /* Hero */
    .hero {
        height: auto;
        min-height: 50vh;
        padding: 10px 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    /* Layout Helpers Stacking */
    .responsive-row {
        flex-direction: column !important;
        gap: 30px;
        margin-bottom: 20px;
    }

    #nosotros {
        padding: 40px 0;
        text-align: center;
    }

    #nosotros .responsive-col {
        text-align: center;
    }

    .services-home-section {
        padding: 40px 0;
    }

    .responsive-col {
        min-width: 100%;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    /* Grids */
    .contact-grid,
    .footer-grid,
    .services-grid,
    .services-home-grid {
        grid-template-columns: 1fr;
        /* Force single column on mobile */
        gap: 30px;
    }

    .footer-grid {
        text-align: center;
    }

    /* Prevent horizontal overflow on small devices */
    html,
    body {
        overflow-x: hidden;
        position: relative;
        width: 100%;
    }

    .contact-grid {
        gap: 20px;
        overflow-x: hidden;
    }

    .btn {
        white-space: normal;
        word-break: break-word;
        padding: 12px 20px;
    }

    .service-card {
        padding: 30px;
    }
}

/* Values Section (Calidad, Confianza, Precio) */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
}

.value-item {
    position: relative;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
    color: white;
}

.value-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    transition: background 0.3s;
}

.value-content {
    position: relative;
    z-index: 2;
    max-width: 400px;
}

.value-item h3 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    font-family: 'Raleway', sans-serif;
}

.value-item p {
    font-size: 1rem;
    line-height: 1.6;
}

/* Specific Items */
.value-item.quality {
    background-image: url('../img/service-1.jpg');
    color: #333;
}

.value-item.quality::before {
    background: rgba(255, 255, 255, 0.7);
}

.value-item.quality h3 {
    color: #000;
}

.value-item.trust {
    background-image: url('../img/service-2.jpg');
    color: white;
}

.value-item.trust::before {
    background: rgba(227, 6, 19, 0.7);
    /* Primary Red tint */
}

.value-item.trust h3 {
    color: white;
}

.value-item.price {
    background-image: url('../img/service-mix.jpg');
    color: white;
}

.value-item.price::before {
    background: rgba(0, 0, 0, 0.6);
}

.value-item.price h3 {
    color: white;
}

/* Responsive Values */
@media (max-width: 768px) {
    .values-grid {
        grid-template-columns: 1fr;
    }

    .value-item {
        min-height: 300px;
        padding: 30px;
    }
}

#goog-gt-tt {
    display: none !important;
}

.goog-te-banner-frame {
    display: none !important;
}

.goog-te-menu-value:hover {
    text-decoration: none !important;
}

.goog-text-highlight {
    background-color: transparent !important;
    box-shadow: none !important;
}

body {
    top: 0 !important;
}

#google_translate_element2 {
    display: none !important;
}

.skiptranslate {
    display: none;
}