/* General Styles */
:root {
    --primary-color: #2ecc71; /* Modern green */
    --secondary-color: #27ae60; /* Darker green */
    --light-color: #ffffff; /* Pure white */
    --dark-color: #2c3e50; /* Dark blue for contrast */
    --hover-transition: all 0.3s ease;
}

body {
    font-family: 'Roboto', 'Segoe UI', sans-serif;
    color: #333;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', 'Arial', sans-serif;
    font-weight: 600;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('../images/Astillero Front.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 80vh; /* Ajuste para mostrar toda la imagen */
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    color: white;
    padding: 0;
}

.hero .container {
    padding: 2rem;
    background-color: rgba(0,0,0,0.2);
    border-radius: 8px;
    backdrop-filter: blur(2px);
}

.hero::before {
    display: none;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hero .lead {
    margin-bottom: 2rem;
    font-size: 1.25rem;
}

/* Navbar */
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: 700;
    display: flex;
    align-items: center;
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-weight: 700;
}

.navbar-brand i {
    color: white;
    margin-right: 8px;
}

.nav-link {
    font-weight: 500;
    transition: var(--hover-transition);
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Cards */
.card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: var(--hover-transition);
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.card-title {
    color: var(--primary-color);
    font-weight: 600;
}

/* Buttons */
.btn {
    border-radius: 4px;
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    transition: var(--hover-transition);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: scale(1.05);
}

.btn-light:hover {
    background-color: #e2e6ea;
    transform: scale(1.05);
}

/* Gallery */
#gallery .col-md-4 {
    display: flex;
    align-items: center;
    justify-content: center;
}

#gallery img {
    border-radius: 8px;
    transition: var(--hover-transition);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    aspect-ratio: 4/3;
    object-fit: cover;
    width: 100%;
    max-height: 220px;
}

#gallery a {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 8px;
}

#gallery a::after {
    content: attr(data-caption);
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: center;
}

#gallery a:hover::after {
    opacity: 1;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

#gallery img:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

/* Contact Form */
#contactForm {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.form-control {
    border-radius: 4px;
    padding: 0.75rem;
    border: 1px solid #ced4da;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(0, 128, 128, 0.25);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
}

.social-icons a {
    display: inline-block;
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    margin-right: 8px;
    transition: var(--hover-transition);
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: scale(1.1);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero .lead {
        font-size: 1.1rem;
    }
    
    #gallery img {
        max-height: 180px;
    }
}

@media (max-width: 576px) {
    #gallery .col-md-4 {
        width: 50%;
        float: left;
    }
    
    #gallery img {
        max-height: 150px;
    }
}

@media (max-width: 400px) {
    #gallery .col-md-4 {
        width: 100%;
        float: none;
    }
}

/* Print Styles */
@media print {
    .navbar, .hero, #gallery, #contact, footer {
        display: none;
    }
    
    #features, #benefits {
        page-break-inside: avoid;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* Accessibility */
:focus {
    outline: 3px solid rgba(0, 128, 128, 0.5);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Service Icons Hover Effect */
.service-icon {
    overflow: hidden;
    transition: var(--hover-transition);
}

.service-icon img {
    transition: transform 0.3s ease;
}

.service-icon:hover img {
    transform: scale(1.3);
}