﻿html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  background-color: rgb(248, 248, 248);
  font-family: 'Poppins', sans-serif;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* Custom Styles based on soscia.pe */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.5s ease-out forwards;
}

.section-container {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.section-title-special {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title-special::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #007bff;
    margin: 10px auto 0;
}

.custom-card {
    background: white;
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 30px;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.custom-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.custom-card .card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #0056b3;
    margin-bottom: 1rem;
}

.custom-card .card-text {
    color: #555;
    font-size: 1rem;
}

.img-overlay-container {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    color: white;
}

.img-overlay-container img {
    width: 100%;
    display: block;
}

.img-overlay-container .overlay-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 86, 179, 0.7); /* Deep blue overlay */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.img-overlay-container:hover .overlay-content {
    opacity: 1;
}

.img-overlay-container .overlay-content h3 {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.img-overlay-container .overlay-content p {
    font-size: 1.1rem;
}

.service-row-item {
    display: flex;
    align-items: center;
    margin-bottom: 5rem;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden; /* To keep child elements within rounded corners */
}

.service-row-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.service-row-item .service-img {
    flex: 0 0 40%;
}

.service-row-item .service-img img {
    width: 100%;
    border-radius: 10px;
    height: auto;
    object-fit: cover;
}

.service-row-item .service-content {
    flex: 1;
    padding-left: 2rem;
}

.service-row-item .service-content h3 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #0056b3;
}

.service-row-item .service-content p {
    color: #555;
}


/* For alternating rows */
.service-row-item:nth-child(even) {
    flex-direction: row-reverse;
}

.service-row-item:nth-child(even) .service-content {
    padding-left: 0;
    padding-right: 2rem;
}

.navbar {
    background-color: #fff;
    padding: 20px 40px;
}

/* Opciones del menú */
.navbar-nav .nav-link {
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: #222 !important;
    margin-left: 25px;
    letter-spacing: 1px; /* 👈 clave estilo moderno */
    text-transform: uppercase; /* 👈 tipo SOSCIA */
    position: relative;
    transition: all 0.3s ease;
}

    /* Hover elegante */
    .navbar-nav .nav-link::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -5px;
        width: 0;
        height: 2px;
        background-color: #000;
        transition: width 0.3s ease;
    }

    .navbar-nav .nav-link:hover::after {
        width: 100%;
    }

    /* Hover color */
    .navbar-nav .nav-link:hover {
        color: #000 !important;
    }


/* Adding Poppins font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');
