
/* Reset y Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary-black: #23262f;
    --secondary-black: #3a3d46;
    --light-gray: #f7f7f7;
    --medium-gray: #7b8494;
    --dark-gray: #23262f;
    --white: #fff;
    --accent-gray: #d1d5db;
    --shadow-light: 0 2px 8px rgba(35, 38, 47, 0.04);
    --shadow-medium: 0 4px 16px rgba(35, 38, 47, 0.08);
    --shadow-dark: 0 8px 32px rgba(35, 38, 47, 0.12);
    --transition: all 0.18s cubic-bezier(.4, 0, .2, 1);
    /*--font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-secondary: 'Georgia', 'Times New Roman', Times, serif;*/
    --radius: 4px;
    --radius-lg: 8px;
    --radius-full: 32px;
}

/* Tipografía */
body {
    font-family: var(--font-primary);
    line-height: 1.7;
    color: var(--primary-black);
    background-color: var(--white);
    font-size: 17px;
    overflow-x: hidden;
    letter-spacing: 0.01em;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-light);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid var(--accent-gray);
    min-height: 100px;
}


/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.7rem 0 0.7rem 0;
    height: 100px;
}



.logo {
    display: flex;
    align-items: center;
}

.logo-icon {
    height: 84px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links li {
    position: relative;
}

/* Nav links */
.nav-links a {
    text-decoration: none;
    color: var(--primary-black);
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.03em;
    text-transform: none;
    transition: var(--transition);
    padding: 0.4rem 0.8rem;
    position: relative;
    border-radius: var(--radius);
    font-family: var(--font-primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background-color: var(--primary-black);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Nav link hover */
.nav-links a:hover,
.nav-links a:focus {
    color: var(--secondary-black);
    background: var(--accent-gray);
    box-shadow: none;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

/* Dropdown menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: var(--shadow-light);
    border-radius: var(--radius-lg);
    padding: 0.5rem 0;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 1000;
    list-style: none;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
    list-style: none;
}

/* Dropdown menu links */
.dropdown-menu a {
    display: block;
    padding: 0.6rem 1.2rem;
    color: var(--dark-gray);
    font-size: 1rem;
    text-transform: none;
    border-bottom: 1px solid var(--accent-gray);
    border-radius: var(--radius);
    transition: var(--transition);
    font-family: var(--font-primary);
}

/* Dropdown menu link hover */
.dropdown-menu a:hover,
.dropdown-menu a:focus {
    background-color: var(--accent-gray);
    color: var(--primary-black);
    box-shadow: none;
}

.dropdown-menu a::after {
    display: none;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-black);
}

/* Hero Section */

.hero {
    position: relative; /* Necesario para posicionar el contenido y el overlay */
    width: 100%;
    height: 1000px; /* Ajusta la altura según tus preferencias */
    background: url('../../img/constructor-servicios-reformas-casa.jpg') no-repeat center center/cover; /* Reemplaza 'path/to/your/imagen.jpg' con la ruta real de tu imagen */
    display: flex;
    align-items: center; /* Centra verticalmente el contenido */
    justify-content: center; /* Centra horizontalmente el contenido */
    text-align: center;
    color: #fff; /* Color de texto claro para contraste con la imagen de fondo */
    overflow: hidden; /* Asegura que nada se desborde */
}

/* Overlay para mejorar la legibilidad del texto */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Overlay oscuro con 50% de opacidad */
    z-index: 1; /* Asegura que el overlay esté detrás del contenido pero sobre la imagen */
}

/* Contenedor del contenido del Hero */
.hero .container {
    position: relative; /* Asegura que el contenido esté sobre el overlay */
    z-index: 2;
    max-width: 960px; /* Limita el ancho del contenido para mejor lectura */
    padding: 20px;
}

/* Contenido principal del Hero */
.hero-content {
    animation: fadeIn 1.5s ease-out forwards; /* Animación de aparición suave */
}

/* Título principal */
.hero-title {
    font-size: 6em; /* Tamaño de fuente grande para el título */
    margin-bottom: 20px;
    font-weight: 700; /* Negrita */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6); /* Sombra para el texto para mejor legibilidad */
    line-height: 1.2;
    letter-spacing: 1px;
}

/* Subtítulo (opcional, si quieres añadir uno para dar más contexto) */
.hero-subtitle {
    font-size: 2.5em;
    margin-bottom: 30px;
    font-weight: 300;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}


/* Botón de llamada a la acción */
.btn-primary {
    display: inline-block;
    background-color: #FFC107; /* Un color vibrante para el botón, puedes ajustar este color a tu marca */
    color: #333; /* Color de texto oscuro para el botón */
    padding: 15px 40px;
    border-radius: 50px; /* Bordes redondeados para un aspecto moderno */
    text-decoration: none;
    font-size: 1.3em;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease; /* Transición suave al pasar el ratón */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); /* Sombra para dar profundidad al botón */
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #FFA000; /* Color más oscuro al pasar el ratón */
    transform: translateY(-3px); /* Pequeño efecto de elevación */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

/* Animación de aparición */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.highlight {
    background: linear-gradient(45deg, var(--white), var(--accent-gray));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
/* Buttons */
.btn {
    display: inline-block;
    padding: 0.7rem 2.1rem;
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 1rem;
    text-transform: none;
    letter-spacing: 0.02em;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid var(--accent-gray);
    text-align: center;
    box-shadow: none;
    outline: none;
}

/* Primary button */
.btn-primary {
    background: var(--white);
    color: var(--primary-black);
    border-color: var(--accent-gray);
    box-shadow: none;
}

/* Primary button hover */
.btn-primary:hover,
.btn-primary:focus {
    background: var(--accent-gray);
    color: var(--primary-black);
    border-color: var(--primary-black);
    transform: none;
    box-shadow: none;
}

/* Outline button */
.btn-outline {
    background: transparent;
    color: var(--primary-black);
    border-color: var(--primary-black);
    box-shadow: none;
}

/* Outline button hover */
.btn-outline:hover,
.btn-outline:focus {
    background: var(--accent-gray);
    color: var(--primary-black);
    transform: none;
    box-shadow: none;
}

/* Secondary button */
.btn-secondary {
    background: var(--primary-black);
    color: var(--white);
    border-color: var(--primary-black);
    box-shadow: none;
}

/* Secondary button hover */
.btn-secondary:hover,
.btn-secondary:focus {
    background: var(--secondary-black);
    transform: none;
    box-shadow: none;
}

/* Sections */
section {
    padding: 80px 0;
}

.section-title {
    font-family: var(--font-secondary);
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-black);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-black);
}

/* Reformas Section */
.reformas-header {
    text-align: center;
    margin-top: 5vh;
    margin-bottom: 4rem;
}

.small-heading {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--medium-gray);
    margin-bottom: 1rem;
}

.main-heading {
    font-family: var(--font-secondary);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-black);
    margin-bottom: 1.5rem;
}

.divider {
    width: 80px;
    height: 3px;
    background: var(--primary-black);
    margin: 0 auto;
}
.reformas-section {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 0; /* Container handles padding */
}

.reformas-container { /* Specific class for this section's container */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.reformas-header {
    text-align: center;
    margin-bottom: 40px; /* Space below the header before the main content starts */
    width: 100%;
}


.reformas-header p {
    line-height: 1.6;
    color: #555;
    max-width: 800px; /* Limit width of descriptive text */
    margin: 0 auto; /* Center the descriptive text */
}

/* --- Main Layout Content Styling (previously .hero-container-modified and its children) --- */
.main-layout-content {
    width: 100%; /* Ensure this section takes full width within its parent */
    display: flex;
    flex-direction: column;
    align-items: center;
    /* No background/shadow here, as it's now handled by .container */
}

.layout-title { /* Styles for the "TITULO" within this layout */
    font-size: 3em;
    margin-bottom: 30px;
    text-align: center;
    color: #333;
    padding-top: 10px; /* Small padding from the top of this content block */
}

.content-wrapper {
    display: flex;
    gap: 30px; /* Space between left and right sections */
    width: 100%;
}

.left-section {
    flex: 1; /* Takes up 1 part of the available space */
}

.image-placeholder {
    width: 100%;
    height: 350px; /* Adjust height as needed */
    background-color: #e0e0e0; /* A light grey background for when no image is loaded */
    border: 1px solid #ccc; /* Optional border */
    display: flex; /* Use flexbox to center the image if it's smaller */
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Hide parts of the image that go outside */
}

.main-image {
    width: 100%; /* Make the image fill its container horizontally */
    height: 100%; /* Make the image fill its container vertically */
    object-fit: cover; /* This is crucial: it covers the area, cropping if necessary, while maintaining aspect ratio */
    display: block; /* Remove extra space below image */
}


.right-section {
    flex: 1; /* Takes up 1 part of the available space */
    display: flex;
    flex-direction: column;
}

.right-section p {
    margin-top: 0;
    margin-bottom: 20px;
    line-height: 1.6;
    text-align: justify;
    color: #555;
}

.boxes-container {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin: 2.5rem 0 1.5rem 0;
}
.card-flip {
    width: 150px;
    height: 200px;
    perspective: 700px;
    cursor: pointer;
    outline: none;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(35,38,47,0.08);
    background: transparent;
    position: relative;
    transition: box-shadow 0.2s;
}
.card-flip:focus {
    box-shadow: 0 0 0 3px var(--accent-gray);
}
.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--primary-black);
    background: var(--white);
    box-shadow: 0 2px 12px rgba(35,38,47,0.08);
    transition: transform 0.5s, opacity 0.3s;
    padding: 0.7rem;
    text-align: center;
}
.card-front {
    z-index: 2;
}
.card-back p{
    align-items: center;
    text-align: center;
}
.card-back {
    transform: rotateY(180deg);
    z-index: 1;
    color: var(--primary-black);
    background: var(--accent-gray);
    font-size: 0.9rem;
}
.card-flip:hover .card-front,
.card-flip:focus .card-front,
.card-flip.flipped .card-front {
    transform: rotateY(180deg);
    opacity: 0;
}
.card-flip:hover .card-back,
.card-flip:focus .card-back,
.card-flip.flipped .card-back {
    transform: rotateY(0deg);
    opacity: 1;
}
.card-flip i {
    color: var(--primary-black);
    font-size: 2.8em;
    transition: color 0.2s, font-size 0.2s;
}
.card-flip:hover i,
.card-flip:focus i {
    color: var(--secondary-black);
}


.reformas-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 20px 40px var(--shadow-light);
}

.reformas-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--dark-gray);
    margin-bottom: 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.feature-item {
    display: block;
}

.feature-icon {
    background: var(--light-gray);
    padding: 1rem;
    border-radius: 10px;
    color: var(--primary-black);
    margin: 1.2rem 0 1.2rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    align-self: center;
}

.feature-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-black);
    text-align: left;
}

.feature-content p {
    color: var(--dark-gray);
    line-height: 1.6;
    text-align: left;
}

/* Para icono a la derecha del título en features */
.feature-content-row {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 2.2rem;
}
.feature-content-row h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-black);
    text-align: left;
}
.feature-content-row .feature-icon {
    margin: 0;
    align-self: center;
}
/* Portfolio Slider Styles */
.portfolio-slider {
  position: relative;
  width: 100%;
  max-width: 1400px;
  max-height: 1200px;
  margin: 2rem auto 0 auto;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.portfolio-slides {
  position: relative;
  width: 100%;
  height: 100%;
}
.portfolio-slide {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s;
}
.portfolio-slide.active {
  display: flex;
  position: relative;
  opacity: 1;
  z-index: 1;
}
.portfolio-slide img {
  width: 100%;
  max-width: 1500px;
  max-height: 750px;
  object-fit: cover;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
  margin: 0 auto;
  display: block;
}
.portfolio-overlay {
  background: rgba(0,0,0,0.55);
  color: #fff;
  padding: 1.5rem 1rem 1rem 1rem;
  border-radius: 0 0 12px 12px;
  width: 100%;
  position: absolute;
  left: 0;
  bottom: 0;
  box-sizing: border-box;
}
.portfolio-prev,
.portfolio-next {
  background: none !important;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  transition: background 0.2s;
}
.portfolio-prev:hover,
.portfolio-next:hover {
  color: #ccc;
}
.portfolio-prev {
  left: 10px;
}
.portfolio-next {
  right: 10px;
}

/* About Section */
.about {
    background: var(--light-gray);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 3rem;
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 20px 40px var(--shadow-light);
}

.about-text h3 {
    font-family: var(--font-secondary);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--primary-black);
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
}

.about-mission {
    text-align: center;
    background: var(--white);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 20px 40px var(--shadow-light);
}

.about-mission h3 {
    font-family: var(--font-secondary);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--primary-black);
}

.about-mission p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--dark-gray);
}

/* Services Grid */
.services-grid {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    justify-content: center;
    justify-items: center;
}

/* Center single service card */
.services-grid .service-card:only-child {
    max-width: 525px;
    width: 100%;
    margin: 0 auto;
}

/* Alternative for single card using grid */
.services-grid:has(.service-card:only-child) {
    display: flex;
    justify-content: center;
}

/* Service card */
.service-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: none;
    transition: var(--transition);
    border: 1px solid var(--accent-gray);
}

/* Service card hover */
.service-card:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--primary-black);
}

.service-img {
    height: 250px;
    overflow: hidden;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .service-img img {
    transform: scale(1.1);
}

.service-content {
    padding: 2rem;
}

.service-content h3 {
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-black);
}

.service-content p {
    color: var(--dark-gray);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Portfolio Section */
.portfolio {
    background: var(--light-gray);
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.portfolio-filter {
    padding: 0.8rem 1.5rem;
    background: var(--white);
    border: 2px solid var(--accent-gray);
    border-radius: 2px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    color: var(--dark-gray);
}

.portfolio-filter:hover,
.portfolio-filter.active {
    background: var(--primary-black);
    color: var(--white);
    border-color: var(--primary-black);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

/* Portfolio item */
.portfolio-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: none;
    transition: var(--transition);
    border: 1px solid var(--accent-gray);
}

/* Portfolio item hover */
.portfolio-item:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--primary-black);
}

.portfolio-img {
    height: 300px;
    overflow: hidden;
}

.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    color: var(--white);
    padding: 2rem;
    transform: translateY(50%);
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
}

.portfolio-item:hover .portfolio-img img {
    transform: scale(1.1);
}

.portfolio-overlay h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.portfolio-overlay p {
    margin-bottom: 1rem;
    opacity: 0.9;
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h3 {
    font-family: var(--font-secondary);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-black);
}

.contact-info>p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--dark-gray);
    margin-bottom: 2rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    background: var(--primary-black);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-text h4 {
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: var(--primary-black);
}

.contact-text p {
    color: var(--dark-gray);
}

/* Form Styles */
/* Contact form */
.contact-form {
    background: var(--light-gray);
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: none;
    border: 1px solid var(--accent-gray);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-black);
}

/* Form control */
.form-control {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--accent-gray);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
    box-shadow: none;
}

/* Form control focus */
.form-control:focus {
    outline: none;
    border-color: var(--primary-black);
    box-shadow: none;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* Footer */
footer {
    background: var(--primary-black);
    color: var(--white);
    padding: 3rem 0 1.5rem 0;
    box-shadow: none;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* Footer container */
.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 1.2rem;
    margin-bottom: 1rem;
    border-radius: var(--radius);
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 6px;
    padding-right: 6px;
}

.logo-icon-footer {
    height: 100px;
    width: auto;
    display: block;
    margin: 0 auto 1rem auto;
    transition: height 0.3s;
}
.footer-about p {
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.7rem;
    color: var(--white);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

/* Footer links */
.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    border-radius: var(--radius);
    padding: 0.2rem 0.6rem;
}

/* Footer link hover */
.footer-links a:hover,
.footer-links a:focus {
    color: var(--secondary-black);
    background: var(--accent-gray);
    box-shadow: none;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-top: 2rem;
    border-top: none;
}

/* Social link */
.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.10);
    color: var(--white);
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.13);
    font-size: 1.1rem;
}

/* Social link hover */
.social-link:hover,
.social-link:focus {
    background: var(--accent-gray);
    color: var(--primary-black);
    border-color: var(--primary-black);
    transform: none;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: none;
    color: rgba(255, 255, 255, 0.6);
}

.copyright a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.copyright a:hover {
    color: var(--white);
}

@media (max-width: 1600px) {
  .portfolio-slide img {
    max-width: 100vw;
  }
}


@media (max-width: 900px) {
  .hero-title {
    font-size: 2.2rem;
    letter-spacing: -1px;

    }

    .services-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-filters {
        justify-content: center;
        gap: 0.3rem;
    }

    .portfolio-filter {
        padding: 0.5rem 0.7rem;
        font-size: 0.9rem;
    }

    section {
        padding: 32px 0;
    }

    .section-title {
        font-size: 1.1rem;
    }

    .main-heading {
        font-size: 1.1rem;
    }

    .features-grid {
        gap: 0.8rem;
    }

    .feature-item {
        flex-direction: column;
        text-align: center;
    }
    .features-3col {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .features-col-center .reformas-image img {
        max-width: 100%;
        height: 220px;
    }
    .features-col {
        align-items: center;
    }
    .boxes-container {
        gap: 0.7rem;
    }
    .card-flip {
        width: 110px;
        height: 110px;
    }
    .card-front, .card-back {
        font-size: 1rem;
        padding: 0.5rem;
    }
    .card-flip i {
        font-size: 2em;
    }
}
/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 8px;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu {
        display: block;
    }

    .hero {
        padding: 70px 0 40px;
    }

}

@media (max-width: 700px) {
  .portfolio-slider {
    max-width: 100%;
  }
  .portfolio-slide img {
    max-height: 220px;
    max-width: 100vw;
  }
  .portfolio-overlay {
    font-size: 0.95rem;
    padding: 1rem 0.5rem 0.5rem 0.5rem;
  }
  .portfolio-prev, .portfolio-next {
    font-size: 2rem;
    width: 38px;
    height: 38px;
  }
}
@media (max-width: 480px) {
    .hero-title {
        font-size: 1rem;
    }

    .btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }

    .service-card,
    .portfolio-item {
        margin: 0 2px;
    }

    .contact-form {
        padding: 0.7rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 0.7rem;
        border-radius: var(--radius);
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
.btn:focus,
.form-control:focus,
.nav-links a:focus {
    outline: 2px solid var(--primary-black);
    outline-offset: 2px;
}

/* Print styles */
@media print {

    header,
    .hero,
    footer {
        display: none;
    }

    body {
        font-size: 12pt;
        line-height: 1.7;
        color: rgba(255, 255, 255, 0.8);
        margin-bottom: 0.7rem;

        .container {
            max-width: none;
            padding: 0;
        }
    }

}