:root {
    --color-primary: #e30613;
    --color-secondary: #1a3e75;
    --color-light: #f8f9fa;
    --color-dark: #343a40;
    --color-gray: #6c757d;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0; /*Antes 15px*/
}

.logo {
    display: flex;
    align-items: center;
}

.logo-placeholder {
    width: 200px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-primary) 70%, var(--color-secondary) 30%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    border-radius: 4px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    font-weight: 600;
    color: var(--color-dark);
    transition: var(--transition);
    position: relative;
}

nav ul li a:hover, nav ul li a.active {
    color: var(--color-primary);
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--color-primary);
    transition: var(--transition);
}

nav ul li a:hover::after, nav ul li a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding-top: 100px;
    background: var(--color-primary);
    color: white;
    text-align: center;
    padding-bottom: 10px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    animation: fadeIn 1.5s ease;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    margin-top: 40px; /*esto para que no quede tan pegado al header*/
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--color-secondary);
    color: white;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #c10510;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    display: inline-block;
    padding: 10px 25px;
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: white;
    transform: translateY(-3px);
}

/* Secciones */
.section {
    padding: 25px 0; /*Antes 80px*/
}

.section-title {
    text-align: center;
    margin-bottom: 20px; /*antes 50px*/
}

.section-title h2 {
    font-size: 2.2rem;
    color: var(--color-primary);
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-title p{
    padding-top: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 70px;
    height: 3px;
    background-color: var(--color-secondary);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.about-preview {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 0;
}

.about-preview p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.services-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-preview-card {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.service-preview-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-preview-icon {
    width: 70px;
    height: 70px;
    background-color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 30px;
}

.service-preview-card h3 {
    color: var(--color-primary);
    margin-bottom: 15px;
}

.service-preview-card p {
    margin-bottom: 20px;
    color: var(--color-gray);
}

.service-preview-card a {
    color: var(--color-secondary);
    font-weight: 600;
    transition: var(--transition);
}

.service-preview-card a:hover {
    color: var(--color-primary);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-text h2{
    text-align: center;
    margin-bottom: 30px;
}

.about-text {
    flex: 1;
    text-align: justify;
}

.about-image {
    margin-top: 20px;
    margin-bottom: 20px;
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: auto;
    transition: var(--transition);
}

.about-image:hover img {
    transform: scale(1.05);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-image {
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-content {
    padding: 20px;
}

.service-content h3 {
    color: var(--color-primary);
    margin-bottom: 10px;
}

.service-content p {
    text-align: justify;
}

.gallery-category {
  margin-top: 50px; 
}

.gallery-title {
  text-align: center;
  margin-bottom: 15px; 
  color: var(--color-primary); 
  font-size: 1.5rem;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  display: inline-block;
  padding-bottom: 10px;
}

.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.gallery-item{
    position: relative;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    flex: 0 0 280px;
    height: 200px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.contact {
    background-color: var(--color-light);
    padding: 40px 0;
}

.contact-container{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.contact-icon svg {
    fill: white;
    transition: var(--transition);
    display: block;
}

.contact-item:hover .contact-icon svg {
    fill: var(--color-secondary);
    transform: scale(1.1);
}

.contact-info p a:hover{
    color: var(--color-secondary);
    padding-left: 5px; 
}

.contact-form {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

.form-group textarea {
    min-height: 120px;
}

footer {
    background-color: var(--color-primary);
    color: white;
    padding: 50px 0 20px;
}

.footer-logo a:hover{
  color: var(--color-secondary);
  padding-left: 5px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-logo h2 {
    font-size: 24px;
    margin-bottom: 15px;
}

.footer-links h3,
.footer-contact h3 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3::after,
.footer-contact h3::after {
    content: "";
    position: absolute;
    width: 40px;
    height: 3px;
    background-color: var(--color-secondary);
    bottom: 0;
    left: 0;
    border-radius: 5px;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--color-secondary);
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact a {
    transition: var(--transition);
}

.footer-contact p a:hover {
    color: var(--color-secondary);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-svg-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: #e30613;
    border-radius: 50%;
    margin-right: 10px;
    vertical-align: middle;
    transition: transform 0.3s ease;
}

.footer-svg-link:hover {
    transform: scale(1.1);
}

.footer-svg-icon {
    width: 16px;
    height: 16px;
    fill: white;
}

.footer-svg-icon:hover {
    fill: var(--color-secondary);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate.animated {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }
    
    .about-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .header-container {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 10px 15px;
    }

    .mobile-menu-btn {
        width: 40px;
        height: 40px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1001;
    }

    .mobile-menu-btn svg {
        width: 30px; 
        height: 30px;
        fill: var(--color-dark);
        display: block;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    
    nav.show {
        max-height: 500px; 
    }

    nav ul {
        flex-direction: column;
        padding: 20px 0;
        display: flex;
    }
    
    nav ul li {
        margin: 15px 0;
        text-align: center;
        margin-left: 0;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero {
        padding-top: 100px;
    }
    
    .services-grid {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .section {
        padding: 60px 0;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .services-preview {
        grid-template-columns: 1fr;
    }
    .carousel-item {
        height: 250px;
    }
    .carousel-caption {
        padding: 10px 15px !important;
    }

    .carousel-caption h1 {
        font-size: 17px !important;
        line-height: 1.4 !important;
    }
}