/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Open+Sans:wght@400;600&display=swap');

/* Variables */
:root {
    --primary-color: #e71012;
    --primary-hover: #b51d2a;
    --secondary-color: #000000;
    --light-color: #f8f9fa;
    --dark-color: #000000;
    --gray-color: #6c757d;
    --light-gray: #e9ecef;
}

/* General Styles */
body {
    font-family: 'Open Sans', sans-serif;
    color: var(--secondary-color);
    padding-top: 56px;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

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

/* Header y Navegación */
.navbar {
    background-color: rgba(0, 0, 0, 0.9);
    padding: 15px 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar.scrolled {
    background-color: rgba(0, 0, 0, 0.95);
    padding: 10px 0;
}

.navbar-brand {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
}

.logo-text {
    color: white;
}

.logo-red {
    color: var(--primary-color);
}

.nav-link {
    font-weight: 600;
    padding: 8px 15px !important;
    color: white !important;
}

.nav-link:hover, .nav-link:focus {
    color: var(--primary-color) !important;
}

.dropdown-menu {
    background-color: rgba(0, 0, 0, 0.9);
    border: none;
}

.dropdown-item {
    color: white !important;
    padding: 8px 20px;
}

.dropdown-item:hover, .dropdown-item:focus {
    background-color: var(--primary-color);
    color: white !important;
}

/* Estilos para submenú anidado */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu:hover > .dropdown-menu {
    display: block;
    left: 100%;
    top: 0;
    margin-top: -6px;
    margin-left: -1px;
    border-radius: 0 6px 6px 6px;
}

.dropdown-submenu .dropdown-toggle::after {
    transform: rotate(-90deg);
    position: absolute;
    right: 10px;
    top: 50%;
}

/* Estilos para el logo en el navbar */
.navbar-logo {
    height: 100px;
    width: auto;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1486496572940-2bb2341fdbdf?ixlib=rb-4.0.3');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
    margin-bottom: 50px;
}

/* Secciones */
.section-title {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 30px;
}

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

/* Cards de servicios */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Formulario de contacto */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(231, 16, 18, 0.25);
}

/* Estilos imagen contacto */
.img-contact {
    height: 500px; 
    width: auto;
    transition: all 0.3s ease;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 50px 0 20px;
    margin-top: 50px;
}

footer h5 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

footer a {
    color: #ddd;
    text-decoration: none;
}

footer a:hover {
    color: white;
}

.social-icons a {
    display: inline-block;
    margin-right: 15px;
    font-size: 1.5rem;
    color: white;
}

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

/* Estilos específicos para el cotizador */
.cotizador-transferencia {
    background-color: #f8f9fa;
    padding: 0;
}

.cotizador-paso {
    display: none;
}

.cotizador-paso.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.patente-display {
    background-color: white;
    border: 4px solid var(--dark-color);
    border-radius: 5px;
    padding: 10px 20px;
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    font-size: 1.8rem;
    text-align: center;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--dark-color);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    display: inline-block;
    position: relative;
}

.procelog-text {
    font-size: 0.7rem;
    color: var(--dark-color);
    opacity: 0.7;
    text-transform: none;
    font-weight: bold;
    letter-spacing: normal;
    margin-top: 5px;
    font-weight: normal;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

.btn-info {
    background-color: #e71012;
    border-color: #e71012;
}

.btn-info:hover {
    background-color: #e71012;
    border-color: #e71012;
}

.gap-3 {
    gap: 1rem;
}

.form-container {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.results-container {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    height: 100%;
}

.table-details {
    width: 100%;
    margin-bottom: 20px;
}

.table-details th {
    background-color: var(--light-gray);
    padding: 10px;
    text-align: left;
}

.table-details td {
    padding: 10px;
    border-bottom: 1px solid var(--light-gray);
}

.table-details tr:last-child td {
    border-bottom: none;
}

.total-cost {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-top: 20px;
}

.toggle-tag {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(30px);
}

.btn-whatsapp {
    background-color: #25d366;
    color: white;
    font-weight: 600;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    color: white;
}

.whatsapp-icon {
    margin-right: 8px;
}

/* Estilos para el resumen */
.resumen-container {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.resumen-subtitulo {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--light-gray);
}

.resumen-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px dashed var(--light-gray);
}

.resumen-item.total {
    border-top: 2px solid var(--primary-color);
    padding-top: 10px;
    margin-top: 10px;
    font-weight: bold;
}

.resumen-label {
    font-weight: 600;
}

.resumen-valor {
    font-weight: 500;
}

.resumen-datos {
    background-color: var(--light-gray);
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.fecha-hora {
    color: var(--gray-color);
    font-size: 0.9rem;
}

/* Captcha */
.captcha-container {
    background-color: var(--light-gray);
    padding: 15px;
    border-radius: 5px;
}

.captcha-code {
    font-family: 'Courier New', monospace;
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 3px;
    color: var(--dark-color);
    background-color: white;
    padding: 5px 15px;
    border-radius: 5px;
    user-select: none;
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-xl {
    max-width: 1000px;
}

/* Ajustes para el logo en diferentes dispositivos */
@media (max-width: 991.98px) {
    .navbar-logo {
        height: 100px;
    }
    
    .hero-section {
        padding: 80px 0;
    }
}

@media (max-width: 767.98px) {
    .navbar-logo {
        height: 100px;
    }
    
    .hero-section {
        padding: 60px 0;
    }
    
    .patente-display {
        font-size: 1.5rem;
        padding: 8px 15px;
    }
    
    .section-title:after {
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
    }
}