body {
    font-family: 'Georgia', serif;
    background-color: #ECF0F1; /* Fondo general de la página */
    color: #34495E;
    margin: 0;
    padding: 0;
}

/* Navbar y Encabezado */
.header {
    background-color: #2C3E50; /* Fondo del encabezado principal */
    color: #ffffff;
}

/* Fondo de la sección de Héroe (Hero Section) */
.wrapper {
    background-color: #2C3E50; /* Color de fondo que complementa la imagen */
}

/* Fondo de la sección "Sobre mí" */
#sobre-mi {
    background-color: #BDC3C7; /* Fondo gris claro para un look profesional */
    padding: 40px;
    border-radius: 10px;
}

/* Fondo de la sección "Servicios" */
#servicios {
    background-color: #34495E; /* Fondo oscuro que resalta los servicios */
    color: #ffffff;
    padding: 40px;
    border-radius: 10px;
}

/* Fondo de la sección "Contacto" */
#contacto {
    background-color: #BDC3C7; /* Fondo gris claro */
    padding: 40px;
    border-radius: 10px;
}

/* Estilos de las tarjetas interactivas de servicios */
.interactive-card {
    background-color: #ECF0F1; /* Fondo claro para destacar sobre el fondo oscuro */
    border: 1px solid #2C3E50;
    transition: transform 0.3s ease-in-out;
}

.interactive-card:hover {
    transform: scale(1.05);
}

.card-title {
    color: #2C3E50; /* Título de la tarjeta en azul marino oscuro */
}

.card-body p {
    color: #fdfeff; /* Texto de la tarjeta en azul grisáceo */
}

.btn-primary {
    background-color: #E74C3C; /* Botón rojo coral */
    border-color: #E74C3C;
}

.btn-primary:hover {
    background-color: #C0392B; /* Oscurecer botón en hover */
    border-color: #C0392B;
}

/* Footer */
.footer {
    background-color: #2C3E50; /* Fondo del pie de página */
    color: #ffffff;
    padding: 20px 0;
}

.footer a {
    color: #BDC3C7; /* Color de los enlaces en el pie de página */
}

.footer a:hover {
    text-decoration: underline;
    color: #ECF0F1;
}

/* Animación de aparición */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.appear {
    opacity: 1;
    animation: fadeInUp 1s ease-out forwards;
}

.appear-on-scroll {
    opacity: 0;
    transition: opacity 0.5s ease-out;
}
.photo-container {
    position: relative;
    width: 250px;
    /* Adjust width as needed */
    height: 400px;
    /* Increased height for a more prominent vertical appearance */
    overflow: hidden;
    border-radius: 15px;
    /* Rounded corners */
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 60%, rgba(255, 255, 255, 0.7) 100%);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Photo */
.photo-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease-in-out;
}

/* Overlay */
.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    /* Slightly darker background for contrast */
    color: #ffffff;
    text-align: center;
    padding: 10px;
    font-size: 1.2rem;
    font-weight: bold;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
}

/* Hover Effect for Image */
.photo-container:hover img {
    opacity: 0.9;
    /* Slight opacity change on hover */
}
 .professional-details {
     background: #f8f9fa;
     /* Light grey background */
     padding: 20px;
     border-radius: 10px;
     box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
 }
.text-primary {
    color: #8f5442;
}

.btn-outline-primary {
    border-color: #8f5442;
    color: #8f5442;
}

.btn-outline-primary:hover {
    background-color: #8f5442;
    color: #fff;
}

.timeline {
    position: relative;
    padding: 2rem 0;
    margin-top: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #8f5442;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 40px;
}

.timeline-dot {
    position: absolute;
    left: 10px;
    width: 20px;
    height: 20px;
    background: #8f5442;
    border-radius: 50%;
    box-shadow: 0 0 0 3px #fff;
    top: 0;
}

.timeline-content {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.timeline-title {
    font-weight: bold;
    color: #8f5442;
    margin-bottom: 0.5rem;
}

.text-muted {
    color: #6c757d;
}

.display-4 {
    font-size: 2.5rem;
    font-weight: 300;
}

.font-weight-bold {
    font-weight: 700;
}

 .card-body i {
     color: #007bff;
     /* Color de iconos */
 }

 .card {
     background-color: #f8f9fa;
     /* Fondo de tarjetas ligeramente más claro */
 }

 .blockquote {
     background-color: #ffffff;
     /* Fondo blanco para citas */
     border-left: 5px solid #8f5442;
     /* Borde izquierdo azul para citas */
     border-radius: 5px;
     color: #343a40;
     /* Color del texto de las citas */
 }

 .blockquote-footer {
     color: #6c757d;
     /* Color del autor de la cita */
 }

 .card-title {
     color: #343a40;
     /* Color de títulos de tarjetas */
 }

 .card-text {
     color: #495057;
     /* Texto de las tarjetas */
 }
  .btn-social {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 200px;
      background-color: #8f5442;
      color: #fff;
      border: none;
      border-radius: 5px;
      padding: 10px 20px;
      font-size: 1.25rem;
      font-weight: bold;
      transition: background-color 0.3s ease;
  }

  .btn-social i {
      margin-right: 8px;
      font-size: 1.5rem;
  }

  .btn-social:hover {
      background-color: #744233;
      text-decoration: none;
      color: #fff;
  }

  .form-control {
      border-radius: 0.25rem;
      border: 1px solid #ced4da;
      padding: 0.75rem 1.25rem;
  }

  .btn-primary {
      background-color: #8f5442;
      border-color: #8f5442;
  }

  .btn-primary:hover {
      background-color: #0056b3;
  }

  .appear-on-scroll {
      opacity: 0;
      transition: opacity 0.5s ease-in-out;
  }

  .appear-on-scroll.is-visible {
      opacity: 1;
  }

/* General Media Query for Mobile Adjustments */
@media (max-width: 768px) {

    /* Body and General Padding Adjustments */
    body {
        padding: 10px;
        margin: 0;
    }
        header.wrapper {
            height: 1300px;
        }
        
        .row {
            display: flex;
            flex-direction: column;
            align-items: center;
        }
    
        .card-img-top {
            width: 100%;
            /* Ensure the image scales to fit within the container */
            max-width: 300px;
            /* Limit the max width for small screens */
        }
    
        .card {
            margin-bottom: 20px;
            /* Add spacing between the stacked cards */
        }
    
        .col-md-6 {
            width: 100%;
            /* Ensure each card takes up full width */
        }
    /* Header Section */
    .header {
        text-align: center;
        padding: 20px;
    }

    .header h1 {
        font-size: 1.8rem;
        line-height: 1.2;
    }

    .header h2 {
        font-size: 1.2rem;
        line-height: 1.4;
    }

 
    /* About Me Section */
    #sobre-mi {
        padding: 20px;
        border-radius: 8px;
    }
    
                #servicios {
                    padding: 20px 10px;
                    /* Reducir padding para que todo quede más ajustado en móviles */
                }
        
                #servicios h2 {
                    font-size: 1.8rem;
                    text-align: center;
                    margin-bottom: 20px;
                    /* Ajuste de tamaño del título y centrado en pantallas pequeñas */
                }
        
                #servicios p {
                    font-size: 1rem;
                    text-align: center;
                    margin-bottom: 20px;
                    /* Ajustar el texto de introducción de los servicios */
                }
        
                .interactive-card {
                    margin-bottom: 20px;
                    /* Dar margen inferior a las tarjetas para evitar que se peguen entre sí */
                }
        
                .interactive-card img {
                    width: auto;
                    height: auto;
                    /* Ajustar las imágenes al ancho completo de la tarjeta y mantener la proporción */
                }
        
                /* Hacer que las tarjetas ocupen toda la pantalla en dispositivos pequeños */
                .col-md-6 {
                    width: 100%;
                    padding-left: 0;
                    padding-right: 0;
                    /* Remover los paddings laterales en móviles */
                }
        
                /* Ajustar el texto dentro de la tarjeta */
                .interactive-card .card-title {
                    font-size: 1.5rem;
                    text-align: center;
                    /* Aseguramos que el título se vea bien en pantallas pequeñas */
                }
        
                .interactive-card .card-text {
                    font-size: 1rem;
                    text-align: center;
                    /* Ajuste del tamaño del texto de las tarjetas */
                }
        
                .interactive-card .btn {
                    display: block;
                    width: 100%;
                    margin-top: 15px;
                    /* Hacer que el botón ocupe todo el ancho disponible y darle un margen superior */
                }
    
        .card-title {
            font-size: 1.5rem;
            margin-bottom: 10px;
        }
    
        .card-body p {
            font-size: 1rem;
            margin-bottom: 15px;
        }
    
        /* Ajustar botón de la tarjeta */
        .btn-primary {
            font-size: 1rem;
            padding: 10px 20px;
            width: 100%;
        }
    
        /* Contacto Section */
        #contacto {
            padding: 40px 15px;
            text-align: center;
            border-radius: 12px;
            background-color: #f8f9fa;
        }

        /* Formulario Contacto */
        #contacto .form-control {
            width: 100%;
            margin-bottom: 15px;
            padding: 12px;
            border-radius: 8px;
            border: 1px solid #ccc;
            box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
            transition: border-color 0.3s ease;
        }

        #contacto .form-control:focus {
            border-color: #007bff;
            box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
        }

        /* Ajustar el botón del formulario */
        #contacto .btn-primary {
            width: 100%;
            padding: 15px;
            font-size: 1.1rem;
            background-color: #007bff;
            border-color: #007bff;
            border-radius: 8px;
            transition: background-color 0.3s ease;
        }

        #contacto .btn-primary:hover {
            background-color: #0056b3;
            border-color: #0056b3;
        }

        /* Redes Sociales */
        #contacto .btn-social {
            font-size: 1.2rem;
            padding: 12px 24px;
            color: #fff;
            background-color: #007bff;
            border-radius: 50px;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
        }

        #contacto .btn-social i {
            margin-right: 8px;
        }

        /* Información de Contacto */
        #contacto .contact-info {
            margin-bottom: 20px;
        }

        #contacto .contact-info i {
            margin-right: 10px;
        }

        /* Responsive adjustments */
        @media (max-width: 768px) {
            #contacto .btn-social {
                margin-bottom: 15px;
            }
        }

    /* Footer */
    .footer {
        padding: 20px;
        text-align: center;
    }

    /* Timeline */
    .timeline {
        padding: 1rem;
    }

    .timeline-item {
        margin-bottom: 1.5rem;
    }

    .timeline-content {
        padding: 1rem;
    }

  

    .photo-overlay {
        font-size: 1rem;
    }

        .d-flex {
            flex-direction: column;
            /* Stack buttons vertically on small screens */
            align-items: center;
            /* Center the buttons */
        }
    
        .btn-social {
            width: 100%;
            /* Make buttons take full width */
            max-width: 300px;
            /* Limit max width so buttons don't get too wide */
            margin-bottom: 10px;
            /* Add bottom margin between buttons */
            font-size: 1.15rem;
            /* Adjust font size slightly */
        }
    
        

    /* Forms */
    .form-control {
        padding: 10px 15px;
    }

    /* Adjust the form button */
    .btn-primary {
        width: 100%;
        padding: 12px 15px;
    }

}

.flag-icons .fi {
    font-size: 24px;
    /* Increase the size of the flags */
    border-radius: 3px;
    /* Add subtle rounded corners */
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    /* Add a soft shadow */
    margin-right: 8px;
    /* Add space between flags */
    transition: transform 0.3s ease-in-out;
    /* Smooth hover effect */
    vertical-align: middle;
    /* Align flags vertically centered */
}

.flag-icons .fi:hover {
    transform: scale(1.1);
    /* Slightly enlarge the flag on hover */
}
.cookie-consent {
    background-color: #2d2f33;
    color: #ffffff;
    border-radius: 10px;
    padding: 15px;
    font-family: 'Arial', sans-serif;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    position: fixed;
    /* Fijo respecto a la ventana */
    bottom: 0;
    /* Pegado al borde inferior de la ventana */
    left: 0;
    right: 0;
    margin: 0 auto;
    z-index: 9999;
    /* Aseguramos que esté encima de otros elementos */
    max-width: 100%;
    /* Aseguramos que ocupe toda la anchura posible */
    text-align: center;
    display: block;
    /* Aseguramos que no esté en modo flex */
    width: 100%;
    /* Ocupa el 100% del ancho */
}

/* Botón Aceptar Cookies */
.cookie-consent .btn-warning {
    background-color: #f1c40f;
    border: none;
    color: #000;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    margin-left: 10px;
}

.cookie-consent .btn-warning:hover {
    background-color: #e1b50d;
    transform: scale(1.05);
}

/* Estilo de enlaces en la tarjeta de cookies */
.cookie-consent a {
    color: #f1c40f;
    text-decoration: underline;
    font-weight: bold;
    transition: color 0.3s ease;
}

.cookie-consent a:hover {
    color: #d4a109;
    text-decoration: none;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .cookie-consent {
        padding: 10px;
        font-size: 14px;
    }

    .cookie-consent .btn-warning {
        padding: 8px 16px;
    }
}


/* Small mobile devices (portrait mode, less than 576px) */
@media (max-width: 575.98px) {

    /* Body */
    body {
        font-size: 14px;
    }
    
    .header {
        padding: 15px;
        text-align: center;
    }

    .header h1 {
        font-size: 1.5rem;
    }

    .header h2 {
        font-size: 1rem;
    }

    /* Hero section adjustments */
    .wrapper {
        padding: 20px;
    }

    
    /* Sections */
    #sobre-mi,
    #servicios,
    #contacto {
        padding: 20px;
        border-radius: 8px;
    }

    /* Cards and Buttons */
    .interactive-card {
        margin-bottom: 15px;
    }

    .btn-primary {
        padding: 10px 15px;
        font-size: 1rem;
    }

    /* Timeline */
    .timeline {
        padding: 1rem 0;
    }

    .timeline-content {
        padding: 1rem;
    }

    /* Footer */
    .footer {
        padding: 10px;
    }
}

/* Tablets in portrait mode (576px - 767px) */
@media (min-width: 576px) and (max-width: 767.98px) {

    /* Body */
    body {
        font-size: 15px;
    }

    .header {
        padding: 20px;
        text-align: center;
    }

    .header h1 {
        font-size: 1.75rem;
    }

    .header h2 {
        font-size: 1.1rem;
    }

    /* Sections */
    #sobre-mi,
    #servicios,
    #contacto {
        padding: 25px;
        border-radius: 10px;
    }

    /* Cards and Buttons */
    .interactive-card {
        margin-bottom: 20px;
    }

    .btn-primary {
        padding: 12px 18px;
        font-size: 1.1rem;
    }

    /* Footer */
    .footer {
        padding: 15px;
    }
}

/* Tablets in landscape mode and small desktops (768px - 991px) */
@media (min-width: 768px) and (max-width: 991.98px) {

    /* Body */
    body {
        font-size: 16px;
    }

    .header {
        padding: 30px;
    }

    .header h1 {
        font-size: 2rem;
    }

    .header h2 {
        font-size: 1.25rem;
    }

    /* Sections */
    #sobre-mi,
    #servicios,
    #contacto {
        padding: 30px;
        border-radius: 12px;
    }

    /* Cards and Buttons */
    .interactive-card {
        margin-bottom: 25px;
    }

    .btn-primary {
        padding: 15px 20px;
        font-size: 1.15rem;
    }

    /* Footer */
    .footer {
        padding: 20px;
    }
}

/* Medium to large desktops (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199.98px) {

    /* Body */
    body {
        font-size: 17px;
        
    }

    .header {
        padding: 40px;
    }

    .header h1 {
        font-size: 2.25rem;
    }

    .header h2 {
        font-size: 1.4rem;
    }

    /* Sections */
    #sobre-mi,
    #servicios,
    #contacto {
        padding: 35px;
        border-radius: 15px;
    }

    /* Cards and Buttons */
    .interactive-card {
        margin-bottom: 30px;
    }

    .btn-primary {
        padding: 15px 25px;
        font-size: 1.2rem;
    }

    /* Footer */
    .footer {
        padding: 25px;
    }
}

/* Large desktops and wide screens (1200px and above) */
@media (min-width: 1200px) {

    /* Body */
    body {
        font-size: 18px;
        
    }

    .header {
        padding: 50px;
    }

    .header h1 {
        font-size: 2.5rem;
    }

    .header h2 {
        font-size: 1.5rem;
    }

    /* Sections */
    #sobre-mi,
    #servicios,
    #contacto {
        padding: 40px;
        border-radius: 15px;
    }

    /* Cards and Buttons */
    .interactive-card {
        margin-bottom: 35px;
    }

    .btn-primary {
        padding: 20px 30px;
        font-size: 1.25rem;
    }

    /* Footer */
    .footer {
        padding: 30px;
    }
}