:root {
    /* Nueva Paleta Formal y Elegante */
    --primary-color: #2a4d69;    /* Steel Blue */
    --accent-color: #b6afa5;     /* Muted Gold/Bronze */
    --secondary-color: #6c757d; /* Slate Gray */
    --light-bg: #f8f9fa;        /* Very Light Gray */
    --dark-text: #343a40;       /* Dark Charcoal Gray */
    --light-text: #ffffff;      /* White */
    --border-color: #ced4da;    /* Light Gray Border */
    --shadow-color: rgba(0, 0, 0, 0.07); /* Subtle Shadow */
}

/* --- General Body & Typography --- */
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.8;
    margin: 0;
    padding: 0;
    background-color: var(--light-bg);
    color: var(--dark-text);
    font-size: 16px;
    scroll-behavior: smooth;
    padding-top: 80px; /* Adjusted for fixed header height */
}

ul {
    list-style-type: '✓ ';
    padding-left: 20px;
    margin-left: 0;
}

ul li {
    margin-bottom: 0.5rem;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

/* --- Preloader --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    z-index: 1002;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--light-text);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* --- Scroll Animations --- */
.fade-in-section-initial {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-section-initial.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Header --- */
.site-header {
    background-color: #f2f2f2; /* Consider using a variable if this color is reused */
    padding: 15px 40px; /* Adjusted padding */
    border-bottom: 1px solid #ccc; /* Consider var(--border-color) */
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-sizing: border-box;
    height: 80px; /* Explicit height for consistent padding-top on body */
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-logo {
    height: 40px; /* Can be up to 50px if header padding allows */
    width: auto;
    transition: transform 0.3s ease;
}

.title-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.1rem; /* Reduced gap */
}

.small-text {
    font-size: 12px;
    color: #333; /* Consider var(--dark-text) or a variation */
    letter-spacing: 1px;
    font-weight: 400;
}

.main-text {
    font-size: 24px;
    font-weight: 700;
    color: #111; /* Consider var(--dark-text) */
}

.nav ul {
    list-style: none;
    display: flex;
    gap: 25px; /* Adjusted gap */
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav a {
    text-decoration: none;
    color: #222; /* Consider var(--dark-text) */
    font-weight: 500;
    letter-spacing: 0.3px; /* Adjusted spacing */
    transition: all 0.3s ease;
    padding: 0.5rem 0; /* Add some padding for better click area */
    position: relative;
    font-size: 0.85rem; /* Reducido de 1rem */
}

.nav a:hover, .nav a.active {
    color: var(--accent-color);
}

.nav a::before { /* Underline effect for nav links */
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav a:hover::before, .nav a.active::before {
    width: 100%;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-trigger {
    cursor: pointer;
}

.dropdown-content {
    position: absolute;
    top: calc(100% + 10px); /* Position below trigger with a small gap */
    left: 0;
    background: white;
    min-width: 220px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12); /* Softer shadow */
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 1001; /* Ensure it's above other elements */
    border: 1px solid var(--border-color);
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content a {
    display: block;
    padding: 0.8rem 1.2rem; /* Consistent padding */
    color: var(--dark-text);
    white-space: nowrap;
    font-weight: 400; /* Normal weight for dropdown items */
    font-size: 0.8rem; /* Reducido el tamaño del texto del dropdown */
}

.dropdown-content a:hover {
    background-color: var(--light-bg);
    color: var(--accent-color); /* Keep accent color for hover */
}

.dropdown-content a::before { /* Remove main nav underline from dropdown links */
    display: none;
}

/* Estilos para el botón de Tienda Nube */
.btn-tienda {
    color: var(--dark-text) !important;
    padding: 0.8rem 1.4rem;
    border-radius: 25px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    animation: pulse-cart 2s infinite;
}

.btn-tienda i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.btn-tienda:hover {
    animation: none;
}

.btn-tienda:hover i {
    transform: rotate(20deg) scale(1.2);
}

@keyframes pulse-cart {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(44, 62, 80, 0.3);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 8px rgba(44, 62, 80, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(44, 62, 80, 0);
    }
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    height: 60vh;
    overflow: hidden;
    /* margin-top: 80px; Removed as body has padding-top */
}

.background-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.background-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 1s ease-in-out; /* JS will handle this */
}

.background-slider .slide::before { /* Overlay */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay for text readability */
}

/* Animation for background slider - can be controlled by JS too */
/* Using the one from the original CSS that seemed most complete */
.slide:nth-child(1) {
    /* opacity: 1; /* JS will handle initial opacity */
    animation: fadeInOut 10s infinite; /* Increased duration from 8s */
}

.slide:nth-child(2) {
    animation: fadeInOut 10s infinite 5s; /* Delay second slide start */
}

@keyframes fadeInOut {
    0%, 45% { opacity: 1; }
    50%, 95% { opacity: 0; }
    100% { opacity: 1; }
}


.hero-content {
    position: relative; /* Changed from absolute to relative for simpler centering */
    z-index: 2;
    text-align: center;
    display: flex; /* Use flexbox for centering */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%; /* Take full height of hero-section */
    padding: 2rem;
    box-sizing: border-box;
}

.hero-content h1 {
    color: var(--light-text);
    font-size: 2rem; /* Reducido de 2.8rem a 2rem */
    font-weight: 600; /* Reducido de 700 a 600 para que no sea tan pesado */
    line-height: 1.4;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    max-width: 800px; /* Limitar el ancho máximo */
}

/* --- Main Content & Sections --- */
main {
    padding: 2rem 1rem;
    max-width: 1200px;
    margin: 2rem auto;
    background-color: transparent;
}

section {
    padding: 2.5rem 1.5rem; /* Consistent padding */
    margin-bottom: 2.5rem; /* Space between sections */
    background-color: var(--light-text); /* White background for sections */
    border-radius: 12px; /* Rounded corners for sections */
    box-shadow: 0 6px 20px var(--shadow-color); /* Subtle shadow for depth */
}

section h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--dark-text);
    margin-bottom: 2rem;
    text-align: center;
    letter-spacing: 0.3px;
    opacity: 0.85;
}

section h2::after {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background: var(--accent-color);
    margin: 0.8rem auto 0;
    opacity: 0.4;
}

/* --- Tables --- */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
    box-shadow: 0 2px 8px var(--shadow-color);
    border-radius: 8px;
    overflow: hidden; /* To make border-radius work on table */
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background-color: var(--light-bg);
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    font-size: 0.9em;
}

td {
    color: var(--dark-text);
}

tbody tr:last-child td {
    border-bottom: none;
}

tbody tr:nth-child(even) {
    background-color: #fdfdfd; /* Very subtle striping */
}

tbody tr:hover {
    background-color: #f1f1f1; /* Hover effect for rows */
}

/* --- Images --- */
.section-image {
    width: 100%;
    max-width: 250px; /* Reducido de 300px */
    height: 250px; /* Reducido de 300px */
    object-fit: cover; /* Mantiene la proporción y cubre el contenedor */
    border-radius: 8px;
    box-shadow: 0 4px 8px var(--shadow-color);
    margin: 1rem auto 1.5rem auto;
    display: block;
}

.image-row {
    display: flex;
    justify-content: center;
    align-items: center; /* Centrado vertical */
    gap: 30px; /* Aumentado el espacio entre imágenes */
    margin: 1rem 0; /* Reducido de 1.5rem */
    flex-wrap: wrap;
}

.image-row .section-image {
    max-width: 250px; /* Igual que .section-image */
    margin: 0;
    flex: 0 1 250px; /* Ajustado a nuevo tamaño */
}


.quienes-somos-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: justify; /* Justified text for paragraphs */
}
.quienes-somos-text p {
    font-size: 1rem;
    color: var(--dark-text);
    line-height: 1.7; /* Slightly more line height */
    margin-bottom: 1rem;
}
#quienes-somos ul { /* Specific list style for this section if needed */
    list-style-type: '✨ ';
    padding-left: 10px;
}

/* Servicios (Cards) */
.servicios-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin-top: 2rem;
}

.servicio-card {
    flex: 1 1 calc(33.333% - 2rem); /* Three cards per row, accounting for gap */
    min-width: 280px; /* Minimum width before stacking */
    max-width: 320px; /* Max width */
    background: white; /* Ensure it's white if section bg changes */
    border-radius: 12px;
    padding: 2.5rem 2rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08); /* Slightly more pronounced shadow */
    transition: all 0.3s ease-out;
    border: 1px solid transparent; /* For hover effect */
    text-align: center;
}

.servicio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.1);
    border-color: var(--accent-color);
}

.servicio-card h3 {
    font-size: 1.4rem; /* Adjusted size */
    color: var(--dark-text); /* Cambiado a gris oscuro */
    margin: 1rem 0;
    font-weight: 600;
}

.servicio-card p {
    font-size: 0.95rem; /* Adjusted size */
    color: var(--dark-text); /* Cambiado a gris oscuro */
    line-height: 1.6;
    opacity: 0.85; /* Para hacerlo ligeramente más sutil */
}

.service-icon { /* New styles for Font Awesome icons */
    font-size: 2.5rem; /* Larger icon size */
    margin-bottom: 1rem;
    color: var(--primary-color); /* Use primary color for icons */
    display: block; /* Ensure it's on its own line for centering */
    transition: transform 0.3s ease;
}

.servicio-card:hover .service-icon {
    transform: scale(1.1); /* Slight scale effect on hover */
}

/* Ayuda y Consultas - Estilo Refinado y Compacto */
#ayuda {
    background: linear-gradient(to right, #f8fafd, #ffffff);
    border-left: 2px solid var(--accent-color);
    padding: 2.5rem 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

#ayuda p, #ayuda ul {
    text-align: left;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: var(--secondary-color);
}

#ayuda p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

#ayuda ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem auto;
}

#ayuda ul li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.95rem;
    color: var(--dark-text);
    line-height: 1.5;
}

#ayuda ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-size: 1.1rem;
}

#ayuda .call-to-action {
    text-align: center;
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 400;
    margin-top: 2rem;
    font-style: italic;
    letter-spacing: 0.2px;
}

/* Ubicación */
#ubicacion iframe {
    width: 100%; /* Make iframe responsive */
    max-width: 100%; /* Ensure it doesn't overflow */
    height: 450px; /* Default height */
    border-radius: 8px;
    box-shadow: 0 4px 8px var(--shadow-color);
    border:0; /* Remove default border */
}

/* Compramos Chatarra */
#compramos-chatarra {
    background-color: #64778a; /* Versión más clara del #2c3e50 */
    background: linear-gradient(135deg, #34495e, #445565); /* Gradiente sutil para más profundidad */
    color: var(--light-text);
    border-left: none; /* Remove previous border */
    text-align: center;
    padding: 3rem 1.5rem; /* More padding */
}

#compramos-chatarra h2 {
    color: var(--light-text); /* White title */
}

#compramos-chatarra p {
    font-size: 1.1rem;
    color: var(--light-bg); /* Lighter text for contrast */
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.compramos-chatarra-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* --- Buttons --- */
.btn, .btn-cotizacion, .btn-chatarra { /* Common button styles */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem; /* Slightly more padding */
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 25px; /* Pill shape */
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-cotizacion { /* Specific for header button */
    background: linear-gradient(135deg, #2c3e50, #8a92a3);
    color: var(--light-text) !important;
    padding: 1rem 3.5rem; /* Aumentado el padding horizontal */
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    box-shadow: 0 4px 15px rgba(172, 176, 187, 0.3);
    min-width: 200px; /* Asegurar un ancho mínimo */
}

/* Ajuste responsivo para el botón */
@media (max-width: 768px) {
    .btn-cotizacion {
        padding: 0.8rem 2.5rem; /* Mantener proporción en móviles */
        min-width: 180px;
    }
}

.btn-chatarra {
    background-color: var(--accent-color); /* Or a different color if needed */
    color: var(--light-text);
    border: 1px solid var(--light-text); /* Border for contrast on dark bg */
}

.btn-chatarra i {
    font-size: 1.2rem;
}

.btn-chatarra:hover {
    background-color: var(--light-text); /* Invert colors on hover */
    color: var(--primary-color);
    transform: translateY(-3px);
    border-color: var(--primary-color);
}

.btn-comprar {
    background-color: #2c3e50; /* Cambiado de #3498db a #2c3e50 */
    color: var(--light-text) !important;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.3); /* Ajustado el color de la sombra */
}

.btn-comprar:hover {
    background-color: #34495e; /* Color hover más claro */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.4); /* Ajustado el color de la sombra */
}

/* --- Footer --- */
.site-footer-detailed {
    background-color: #2c3e50; /* Cambiado de var(--dark-text) al color solicitado */
    color: var(--light-bg);
    padding: 3rem 1.5rem 1.5rem 1.5rem;
    margin-top: 3rem;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto 2rem auto;
    gap: 2rem;
}

.footer-column {
    flex: 1;
    min-width: 220px; /* Min width before wrapping */
    margin-bottom: 1.5rem;
}

.footer-column h4 {
    color: var(--light-text);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-bottom: 1px solid var(--accent-color); /* Use accent for underline */
    padding-bottom: 0.5rem;
    display: inline-block;
}

.footer-column p {
    margin-bottom: 0.6rem; /* Slightly more space */
    display: flex;
    align-items: center;
    gap: 0.7em; /* More gap for icon */
    color: var(--light-bg); /* Ensure text is light */
}

.footer-column p i {
    color: var(--accent-color); /* Accent color for icons */
    width: 18px; /* Fixed width for alignment */
    text-align: center;
    font-size: 1.1em; /* Slightly larger icons */
}

.footer-column a {
    color: var(--light-bg); /* Links in footer */
}

.footer-column a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.15); /* More visible separator */
    padding-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--light-bg);
}

.footer-bottom p {
    margin: 0.3rem 0;
    color: var(--light-bg);
}

.footer-bottom a {
    color: var(--accent-color); /* Accent for links in bottom */
}

.footer-bottom a:hover {
    color: var(--light-text);
    text-decoration: underline;
}

/* --- Swiper Carousel (If used, e.g., for a gallery) --- */
/* Assuming .gallery-swiper is a class for a Swiper instance */
.gallery-swiper {
    width: 100%;
    /* height: 300px; /* Adjust as needed */
    margin-top: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 12px var(--shadow-color);
}

.gallery-swiper .swiper-slide {
    text-align: center;
    background: var(--light-bg); /* Background for slides */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.gallery-swiper .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover ensures image fills slide */
}

.slide-caption { /* If captions are used */
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(var(--primary-color-rgb, 42, 77, 105), 0.8); /* Use RGB for opacity */
    color: var(--light-text);
    padding: 10px 15px;
    font-size: 0.9rem;
    text-align: center;
    box-sizing: border-box;
    font-weight: 400;
}

/* Swiper Navigation/Pagination (Customize as needed) */
.gallery-swiper .swiper-button-next,
.gallery-swiper .swiper-button-prev {
    color: var(--light-text);
    background-color: rgba(var(--primary-color-rgb, 42, 77, 105), 0.6);
    border-radius: 50%;
    width: 44px; /* Standard size */
    height: 44px;
    transition: background-color 0.3s ease;
}
.gallery-swiper .swiper-button-next::after,
.gallery-swiper .swiper-button-prev::after {
    font-size: 1.1rem; /* Adjust arrow icon size */
}

.gallery-swiper .swiper-button-next:hover,
.gallery-swiper .swiper-button-prev:hover {
    background-color: rgba(var(--primary-color-rgb, 42, 77, 105), 0.9);
}

.gallery-swiper .swiper-pagination-bullet {
    background: rgba(var(--primary-color-rgb, 42, 77, 105), 0.5);
    opacity: 1;
}
.gallery-swiper .swiper-pagination-bullet-active {
    background: var(--accent-color);
}


/* --- WhatsApp Floating Button --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 25px;
    right: 25px;
    background-color: #25d366; /* WhatsApp Green */
    color: var(--light-text);
    border-radius: 50%;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.25); /* Enhanced shadow */
    z-index: 998;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
    animation: bounce 2.5s infinite ease-in-out 1s;
}

.whatsapp-float i { /* Style for Font Awesome icon */
    font-size: 1.8rem; /* Adjust icon size */
}

.whatsapp-float:hover {
    animation-play-state: paused;
    background-color: #1da851; /* Darker green */
    transform: scale(1.1) translateY(-3px); /* Scale and lift */
}

.whatsapp-float::before { /* Tooltip */
    content: '¿Necesitás ayuda?';
    position: absolute;
    bottom: 115%; /* Position above */
    right: 50%;
    transform: translateX(50%); /* Center tooltip */
    background-color: var(--dark-text);
    color: var(--light-text);
    padding: 6px 12px;
    border-radius: 5px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.whatsapp-float:hover::before {
    opacity: 1;
    visibility: visible;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-12px); }
  60% { transform: translateY(-6px); }
}

/* --- Responsive Adjustments --- */
@media (max-width: 992px) { /* Medium devices (tablets) */
    .hero-content h1 {
        font-size: 2.4rem;
    }
    .nav ul {
        gap: 20px;
    }
    .nav a {
        font-size: 0.9rem;
    }
    .btn, .btn-cotizacion, .btn-chatarra {
        padding: 0.7rem 1.5rem;
        font-size: 0.95rem;
    }
    .servicio-card {
        flex-basis: calc(50% - 1rem); /* Two cards per row */
        max-width: calc(50% - 1rem);
    }
}

@media (max-width: 768px) { /* Small devices (landscape phones, large portrait phones) */
    body {
        padding-top: 70px; /* Adjust if header height changes */
        font-size: 15px;
    }
    .site-header {
        padding: 10px 20px;
        height: 70px; /* Adjust header height */
    }
    .header-container {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .title-wrapper {
        align-items: center; /* Center title text */
    }
    .main-text {
        font-size: 20px;
    }
    .nav {
        width: 100%; /* Make nav take full width */
        justify-content: center; /* Center nav items */
    }
    .nav ul {
        gap: 10px; /* Reduce gap */
        flex-wrap: wrap; /* Allow nav items to wrap */
        justify-content: center;
        padding: 5px 0; /* Add padding when wrapped */
    }
    .nav a {
        padding: 0.4rem 0.8rem;
    }
    .hero-section {
        height: 50vh;
    }
    .hero-content h1 {
        font-size: 1.5rem; /* Reducido para móviles */
    }
    section {
        padding: 2rem 1rem;
        margin-bottom: 2rem;
    }
    section h2 {
        font-size: 1.8rem;
    }
    .image-row .section-image {
        max-width: 100%; /* Single image per row */
    }
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-column {
        min-width: 100%;
    }
    .footer-column h4 {
        display: block; /* Center heading */
        border-bottom: none;
        padding-bottom: 0;
    }
    .footer-column h4::after { /* Add underline effect for centered heading */
        content: '';
        display: block;
        width: 50px;
        height: 1px;
        background: var(--accent-color);
        margin: 0.5rem auto 0;
    }
    .footer-column p {
        justify-content: center; /* Center paragraph content */
    }
}

@media (max-width: 480px) { /* Extra small devices (portrait phones) */
    .hero-content h1 {
        font-size: 1.8rem;
    }
    .nav ul {
        gap: 5px;
    }
    .nav a {
        font-size: 0.85rem;
        padding: 0.3rem 0.6rem;
    }
    .btn, .btn-cotizacion, .btn-chatarra {
        width: 100%; /* Full width buttons */
        margin-bottom: 0.5rem;
    }
    .compramos-chatarra-actions .btn-chatarra:last-child {
        margin-bottom: 0;
    }
    .servicio-card {
        flex-basis: 100%; /* One card per row */
        max-width: 100%;
    }
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
    }
    .whatsapp-float i {
        font-size: 1.5rem;
    }
}

/* Nuevos estilos para tarjetas de producto */
.product-section {
    padding: 2rem;
    margin-bottom: 1rem; /* Reducido de 3rem */
}

.product-header {
    text-align: center;
    margin-bottom: 1rem; /* Reducido de 2.5rem */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.product-specs {
    max-width: 800px;
    margin: 1rem auto; /* Reducido de 2rem */
    background: var(--light-bg);
    padding: 1.5rem; /* Reducido de 2rem */
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.product-specs p {
    color: var(--secondary-color);
    font-size: 0.95rem;
    margin-bottom: 0.5rem; /* Reducido de 1.5rem */
}

/* Ajustes para tables en productos */
.product-specs table {
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.product-specs th {
    font-weight: 500;
    color: var(--secondary-color);
    font-size: 0.85rem;
    text-transform: none;
    letter-spacing: 0.3px;
}

/* Botón Volver Arriba */
.scroll-top {
    position: fixed;
    bottom: 100px; /* Por encima del botón de WhatsApp */
    right: 25px;
    width: 40px; /* Reducido de 45px */
    height: 40px; /* Reducido de 45px */
    background-color: var(--accent-color);
    color: var(--light-text);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 997;
    box-shadow: 0 2px 8px rgba(205, 212, 228, 0.1); /* Sombra más sutil */
    font-size: 0.9rem; /* Icono más pequeño */
}

.scroll-top.visible {
    opacity: 0.8; /* Más transparente */
    visibility: visible;
}

.scroll-top:hover {
    opacity: 1;
    background-color: var(--accent-color);
    transform: translateY(-2px); /* Menos movimiento */
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
