/* Base Styles */
:root {
    --primary: #a43420;
    --primary-light: rgba(164, 52, 32, 0.1);
    --primary-dark: #8a2c1a;
    --text: #1a1a1a;
    --text-light: #555555;
    --background: #ffffff;
    --background-alt: #f8f8f8;
    --border: #e0e0e0;
    --border-dark: #cccccc;
    --transition: all 0.3s ease;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--background);
    overflow-x: hidden;
    cursor: none; /* Hide default cursor */
}

/* Custom Cursor */
.cursor {
    position: fixed;
    width: 8px;
    height: 8px;
    background-color: var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
    will-change: transform;
}

.cursor-follower {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 1px solid var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background-color 0.3s, border-color 0.3s;
    will-change: transform;
}

.cursor-active {
    width: 0;
    height: 0;
}

.follower-active {
    width: 60px;
    height: 60px;
    border-color: rgba(164, 52, 32, 0.5);
    background-color: rgba(164, 52, 32, 0.1);
}

/* Hide cursor on mobile */
@media (max-width: 768px) {
    .cursor, .cursor-follower {
        display: none;
    }
    body {
        cursor: auto;
    }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--text);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary);
}

.overline {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    display: block;
    margin-bottom: 1rem;
}

/* Layout */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 6rem 0;
}

.section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.section-grid.reverse {
    direction: rtl;
}

.section-grid.reverse .section-content {
    direction: ltr;
}

.section-grid.reverse .section-image {
    direction: ltr;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

@media (max-width: 992px) {
    .section-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .section-padding {
        padding: 4rem 0;
    }
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    font-weight: 500;
    padding: 0.875rem 2rem;
    border-radius: 4px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
}

.btn-primary.get-in-toch {
	color: #b03821;
	background-color: transparent;
	border: 1px solid #b03821;
}

.btn-outline {
    display: inline-block;
    background-color: transparent;
    color: var(--text);
    font-weight: 500;
    padding: 0.875rem 2rem;
    border-radius: 4px;
    border: 1px solid var(--border-dark);
    transition: var(--transition);
    cursor: pointer;
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-outline.contact-hero {
	color: #ffffff;
}

.btn-outline.contact-hero:hover {
	color: #b03821;
}

.btn-text {
    display: inline-block;
    color: var(--text);
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

.btn-text::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--primary);
    transition: var(--transition);
}

.btn-text:hover {
    color: var(--primary);
}

.btn-text:hover::after {
    width: 100%;
}

.btn-full {
    width: 100%;
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1.5rem 0;
    transition: var(--transition);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header.scrolled {
    background-color: transparent;
    backdrop-filter: blur(20px);
    padding: 1rem 0;
    box-shadow: var(--shadow);
}

.logo {
    display: flex;
    align-items: center;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 1.5rem;
}

.logo-square {
    width: 24px;
    height: 24px;
    background-color: var(--primary);
    margin-right: 0.75rem;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-link {
    position: relative;
    font-weight: 500;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-actions .btn-primary {
    padding: 0.75rem 1.5rem;
}

.header.scrolled .nav-actions .btn-primary {
    background-color: transparent;
    color: var(--text);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(164, 52, 32, 0.3);
}

.header.scrolled .nav-actions .btn-primary:hover {
    background-color: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text);
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    transform: translateY(-9px) rotate(-45deg);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--background);
    z-index: 99;
    transition: var(--transition);
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    padding: 2rem;
}

.close-menu-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: transparent;
    border: none;
    font-size: 2rem;
    color: var(--text);
    cursor: pointer;
    z-index: 102;
}

.mobile-nav ul {
    list-style: none;
    margin-bottom: 2rem;
}

.mobile-nav-link {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 600;
    padding: 1rem 0;
    transition: var(--transition);
}

.mobile-contact {
    margin-top: 2rem;
}

.mobile-contact p {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.mobile-contact-info {
    margin-top: 2rem;
}

.mobile-contact-info a {
    display: block;
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.no-scroll {
    overflow: hidden;
}

@media (max-width: 992px) {
    .main-nav, .nav-actions .btn-text {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .nav-actions {
        gap: 1rem;
    }

	.get-in-toch {
		display: none;
	}
}

/* Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-logo {
    display: flex;
    align-items: center;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 2rem;
    animation: fadeIn 1s ease;
}

.loader-square {
    width: 32px;
    height: 32px;
    background-color: var(--primary);
    margin-right: 1rem;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    will-change: transform;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4));
}

.hero-content {
    color: white;
    max-width: 700px;
}

.hero-content h1 {
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    font-size: 0.875rem;
    opacity: 0.7;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background-color: white;
    margin-bottom: 0.5rem;
    animation: scrollLine 2s infinite;
}

@keyframes scrollLine {
    0% {
        transform: scaleY(0);
        transform-origin: top;
    }
    50% {
        transform: scaleY(1);
        transform-origin: top;
    }
    50.1% {
        transform-origin: bottom;
    }
    100% {
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

@media (max-width: 768px) {
    .hero {
        height: 90vh;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* About Section */
.about {
    background-color: var(--background);
}

.section-content {
    max-width: 600px;
}

.content-block {
    margin-bottom: 2rem;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-light);
}

.section-image {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: var(--shadow);
}

.section-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.section-image:hover img {
    transform: scale(1.03);
}

.image-caption {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    background-color: rgba(255, 255, 255, 0.2); 
    backdrop-filter: blur(8px);
	color: #ffffff;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 4px;
}

.image-caption i {
    margin-right: 0.5rem;
    font-size: 1rem;
    vertical-align: middle;
}

@media (max-width: 768px) {
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .stats-container {
        grid-template-columns: 1fr;
    }
}

/* Services Section */
.services {
    background-color: var(--background-alt);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.service-card {
    background-color: var(--background);
    padding: 2.5rem;
    border-radius: 4px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.service-number {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: rgba(164, 52, 32, 0.1);
    position: absolute;
    top: 1rem;
    right: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.card-link {
    display: flex;
    align-items: center;
    font-weight: 500;
    color: var(--primary);
}

.card-link svg {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.card-link:hover svg {
    transform: translateX(5px);
}

@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* Approach Section */
.approach {
    background-color: var(--background);
}

.features {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.feature {
    display: flex;
    gap: 1.5rem;
}

.feature-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.feature-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.feature-content p {
    color: var(--text-light);
    margin-bottom: 0;
}

/* Testimonial Section */
.testimonial {
    background-color: var(--background-alt);
}

.testimonial-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.testimonial-quote {
    font-family: 'Playfair Display', serif;
    font-size: 8rem;
    line-height: 0;
    color: var(--primary);
    opacity: 0.2;
    position: absolute;
    top: -2rem;
    left: 50%;
    transform: translateX(-50%);
}

blockquote {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: 2rem;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.author-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.author-title {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* CTA Section */
.cta {
    background-color: #712316;
    color: white;
}

.cta-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.cta-content h2 {
    margin-bottom: 1.5rem;
}

.cta-content p {
    opacity: 0.9;
    margin-bottom: 0;
}

.cta-action .btn-primary {
    background-color: white;
    color: var(--primary);
}

.cta-action .btn-primary:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 992px) {
    .cta-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
}

/* Contact Section */
.contact {
    background-color: var(--background);
}

.contact-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 4rem;
}

.contact-form {
    background-color: var(--background);
    padding: 2.5rem;
    border-radius: 4px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-light);
}

.form-privacy {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.form-privacy input {
    margin-top: 0.25rem;
}

.form-privacy label {
    font-size: 0.875rem;
    color: var(--text-light);
}

.form-privacy a {
    color: var(--primary);
    text-decoration: underline;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.info-group h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.info-group ul {
    list-style: none;
}

.info-group li {
    margin-bottom: 0.75rem;
    display: flex;
}

.info-group li span {
    font-weight: 500;
    min-width: 80px;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
}

address {
    font-style: normal;
    line-height: 1.8;
}

/* Estilos para intl-tel-input */
.iti {
	width: 100%;
	margin-bottom: 0;
}

.iti__flag {
	background-image: url("https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/17.0.19/img/flags.png");
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
	.iti__flag {
		background-image: url("https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/17.0.19/img/flags@2x.png");
	}
}

.iti--allow-dropdown input {
	padding-left: 52px;
}

.iti--separate-dial-code .iti__selected-flag {
	background-color: rgba(0, 0, 0, 0.02);
}

.iti__selected-flag:hover {
	background-color: rgba(0, 0, 0, 0.05);
}

  /* Estilos para el estado de validación del teléfono */
input.phone-valid {
	border-color: #4CAF50;
}

input.phone-error {
	border-color: #F44336;
}

  /* Estilos para el mensaje de estado del formulario */
.form-status {
	margin-top: 1rem;
	padding: 1rem;
	border-radius: 4px;
	text-align: center;
	display: none;
}

.form-status.success {
	display: block;
	background-color: rgba(0, 128, 0, 0.1);
	color: green;
	border: 1px solid rgba(0, 128, 0, 0.3);
}

.form-status.error {
	display: block;
	background-color: rgba(255, 0, 0, 0.1);
	color: #d32f2f;
	border: 1px solid rgba(255, 0, 0, 0.3);
}

  /* Estilos para el estado de carga del formulario */
.form-loading {
	position: relative;
	pointer-events: none;
}

.form-loading::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(255, 255, 255, 0.7);
	z-index: 10;
}

.form-loading::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 30px;
	height: 30px;
	border: 3px solid var(--border);
	border-top: 3px solid var(--primary);
	border-radius: 50%;
	animation: spin 1s linear infinite;
	z-index: 11;
}

	@keyframes spin {
	0% { transform: translate(-50%, -50%) rotate(0deg); }
	100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* Footer */
.footer {
    background-color: var(--background-alt);
    padding: 5rem 0 2rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-nav-group h3 {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.footer-nav-group ul {
    list-style: none;
}

.footer-nav-group li {
    margin-bottom: 0.75rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    margin-bottom: 0;
    font-size: 0.875rem;
    color: var(--text-light);
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--background);
    color: var(--text);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-3px);
}

@media (max-width: 992px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .footer-nav {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .footer-nav {
        grid-template-columns: 1fr;
    }
}

/* Animation Classes */
.reveal-text, .reveal-image, .reveal-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-text.active, .reveal-image.active, .reveal-card.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}